CalendarSupport::CalPrinter Class
| Header: | #include <CalendarSupport/CalPrinter> |
| CMake: | find_package(KPim6CalendarSupport REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::CalendarSupport) |
| Inherits: | QObject |
Public Functions
| CalPrinter(QWidget *par, const KCalendarCore::Calendar::Ptr &calendar, bool uniqItem = false) | |
| void | init(const KCalendarCore::Calendar::Ptr &calendar) |
| void | setDateRange(QDate start, QDate end) |
Public Slots
| void | updateConfig() |
Private Slots
| void | doPrint(CalendarSupport::PrintPlugin *selectedStyle, CalendarSupport::CalPrinter::ePrintOrientation dlgorientation, bool preview = false) |
Detailed Description
CalPrinter is a class for printing Calendars. It can print in several different formats (day, week, month). It also provides a way for setting up the printer and remembering these preferences.
Member Function Documentation
CalPrinter::CalPrinter(QWidget *par, const KCalendarCore::Calendar::Ptr &calendar, bool uniqItem = false)
par parent widget for dialogs cal calendar to be printed uniqItem if true, indicates the calendar print dialog will only provide the option to print an single incidence; else, all possible types of print types will be shown
[private slot] void CalPrinter::doPrint(CalendarSupport::PrintPlugin *selectedStyle, CalendarSupport::CalPrinter::ePrintOrientation dlgorientation, bool preview = false)
void CalPrinter::init(const KCalendarCore::Calendar::Ptr &calendar)
void CalPrinter::setDateRange(QDate start, QDate end)
Set date range to be printed.
start Start date end End date