20 explicit DateIcon(QWidget* parent =
nullptr);
45 bool darkMode =
false);
A widget that displays a date in an icon-like format.
Definition DateIcon.h:13
int heightForWidth(int width) const override
Calculates height for a given width.
Definition DateIcon.cpp:14
static QPixmap generateCalendarIcon(int width, int height, const QDate &date, bool darkMode=false)
Generates a calendar icon pixmap.
Definition DateIcon.cpp:18
QSize sizeHint() const override
Gets the recommended size for the widget.
Definition DateIcon.cpp:89
void paintEvent(QPaintEvent *event) override
Handles paint events.
Definition DateIcon.cpp:59
void setHandleDate(const QDate &date)
Sets the date to display.
Definition DateIcon.h:51
QDate handleDate() const
Gets the current display date.
Definition DateIcon.h:57