CalendarSupport
journalprint.cpp
94void CalPrintJournal::drawJournal(const KCalendarCore::Journal::Ptr &journal, QPainter &p, int x, int &y, int width, int pageHeight)
99 QString dateText(QLocale::system().toString(journal->dtStart().toLocalTime().date(), QLocale::LongFormat));
126 drawTextLines(p, i18n("Person: %1", journal->organizer().fullName()), x, y, width, pageHeight, false);
130 drawTextLines(p, journal->description(), x, y, width, pageHeight, journal->descriptionIsRich());
140 KCalendarCore::Journal::List journals(mCalendar->journals(KCalendarCore::JournalSortDate, KCalendarCore::SortDirectionAscending));
161 if (j && (!mExcludeConfidential || j->secrecy() != KCalendarCore::Incidence::SecrecyConfidential)
int drawHeader(QPainter &p, const QString &title, QDate month1, QDate month2, QRect box, bool expand=false, QColor backColor=QColor())
Draw the gray header bar of the printout to the QPainter.
Definition calprintpluginbase.cpp:554
bool mExcludePrivate
Whether or not to print incidences with secrecy "private".
Definition calprintpluginbase.h:546
void drawTextLines(QPainter &p, const QString &entry, int x, int &y, int width, int pageHeight, bool richTextEntry)
Draws text lines splitting on page boundaries.
Definition calprintpluginbase.cpp:1841
int drawFooter(QPainter &p, QRect box)
Draw a page footer containing the printing date and possibly other things, like a page number.
Definition calprintpluginbase.cpp:609
bool mExcludeConfidential
Whether or not to print incidences with secrecy "confidential".
Definition calprintpluginbase.h:545
bool mPrintFooter
Whether or not to print a footer at the bottoms of pages.
Definition calprintpluginbase.h:543
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition printplugin.h:172
SecrecyPrivate
SecrecyConfidential
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Journal::Ptr journal(const Akonadi::Item &item)
char * toString(const EngineQuery &query)
SortDirectionAscending
JournalSortDate
void clear()
LongFormat
QLocale system()
QRect boundingRect(const QRect &rectangle, int flags, const QString &text)
void drawLine(const QLine &line)
void drawText(const QPoint &position, const QString &text)
const QFont & font() const const
void setFont(const QFont &font)
virtual bool newPage() override
int bottom() const const
TextWordWrap
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.