Schedule calendar widget. More...
#include <bpsschedulecalendarwidget.h>
Public Member Functions | |
| BpsScheduleCalendarWidget (QWidget *aParent=0) | |
| bool | gotoNextScheduleDate (const QDate &aDate) |
| Set the current date to the next schedule date after the given date. | |
| bool | isScheduleDate (const QDate &aDate) const |
| Convenience function to check if a certain date is a schedule date. | |
| BpsSchedule * | schedule () const |
| QDateTime | selectedDateTime () const |
| void | setCronText (const QString &aCronText) |
| Set the CRON text defining the schedule. | |
Schedule calendar widget.
A extended QCalendarWidget where schedule dates are painted with a light green background, and the current date is painted with dark green background if it is on a schedule date.
| BpsScheduleCalendarWidget::BpsScheduleCalendarWidget | ( | QWidget * | aParent = 0 | ) |
| [in] | aParent | The parent widget. |
| bool BpsScheduleCalendarWidget::gotoNextScheduleDate | ( | const QDate & | aDate | ) |
Set the current date to the next schedule date after the given date.
| [in] | aDate | The given date to start searching after. |
| bool BpsScheduleCalendarWidget::isScheduleDate | ( | const QDate & | aDate | ) | const |
Convenience function to check if a certain date is a schedule date.
| [in] | aDate | The date to check. |
| BpsSchedule* BpsScheduleCalendarWidget::schedule | ( | ) | const |
| QDateTime BpsScheduleCalendarWidget::selectedDateTime | ( | ) | const |
| void BpsScheduleCalendarWidget::setCronText | ( | const QString & | aCronText | ) |
Set the CRON text defining the schedule.
| [in] | aCronText | The schedule expressed as CRON text. |