|
|
| DDateTable (const QDate &dt, QWidget *const parent=nullptr) |
| |
|
| DDateTable (QWidget *const parent=nullptr) |
| |
| const QDate & | date () const |
| |
| bool | popupMenuEnabled () const |
| |
|
void | setCustomDatePainting (const QDate &date, const QColor &fgColor, BackgroundMode bgMode=NoBgMode, const QColor &bgColor=QColor()) |
| | Makes a given date be painted with a given foregroundColor, and background (a rectangle, or a circle/ellipse) in a given color.
|
| |
|
bool | setDate (const QDate &date) |
| | Select and display this date.
|
| |
|
void | setFontSize (int size) |
| | Set the font size of the date table.
|
| |
| void | setPopupMenuEnabled (bool enable) |
| | Enables a popup menu when right clicking on a date.
|
| |
| QSize | sizeHint () const override |
| |
|
void | unsetCustomDatePainting (const QDate &dt) |
| | Unsets the custom painting of a date so that the date is painted as usual.
|
| |
|
| virtual QDate | dateFromPos (int pos) |
| | Calculate the date that is displayed at a given cell in the matrix.
|
| |
|
bool | event (QEvent *e) override |
| | Cell highlight on mouse hovering.
|
| |
|
void | focusInEvent (QFocusEvent *e) override |
| |
|
void | focusOutEvent (QFocusEvent *e) override |
| |
|
void | keyPressEvent (QKeyEvent *e) override |
| |
|
void | mousePressEvent (QMouseEvent *e) override |
| | React on mouse clicks that select a date.
|
| |
|
void | paintEvent (QPaintEvent *e) override |
| |
| virtual int | posFromDate (const QDate &dt) |
| | Calculate the position of the cell in the matrix for the given date.
|
| |
|
void | wheelEvent (QWheelEvent *e) override |
| |
It just draws the calendar table without titles, but could theoretically be used as a standalone.
When a date is selected by the user, it emits a signal: dateSelected(QDate)