mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Calendar Widget: get rid of week number
It puzzles me that this is the default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0ea86d83c1
commit
3179e0f722
1 changed files with 1 additions and 0 deletions
|
@ -300,6 +300,7 @@ DateWidget::DateWidget(QWidget *parent) : QWidget(parent),
|
||||||
calendarWidget->setWindowFlags(Qt::FramelessWindowHint);
|
calendarWidget->setWindowFlags(Qt::FramelessWindowHint);
|
||||||
calendarWidget->setWindowFlags(Qt::WindowStaysOnTopHint);
|
calendarWidget->setWindowFlags(Qt::WindowStaysOnTopHint);
|
||||||
calendarWidget->setFirstDayOfWeek(getLocale().firstDayOfWeek());
|
calendarWidget->setFirstDayOfWeek(getLocale().firstDayOfWeek());
|
||||||
|
calendarWidget->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
|
||||||
|
|
||||||
connect(calendarWidget, SIGNAL(activated(QDate)), calendarWidget, SLOT(hide()));
|
connect(calendarWidget, SIGNAL(activated(QDate)), calendarWidget, SLOT(hide()));
|
||||||
connect(calendarWidget, SIGNAL(clicked(QDate)), calendarWidget, SLOT(hide()));
|
connect(calendarWidget, SIGNAL(clicked(QDate)), calendarWidget, SLOT(hide()));
|
||||||
|
|
Loading…
Reference in a new issue