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:
Dirk Hohndel 2014-06-28 08:41:10 -07:00
parent 0ea86d83c1
commit 3179e0f722

View file

@ -300,6 +300,7 @@ DateWidget::DateWidget(QWidget *parent) : QWidget(parent),
calendarWidget->setWindowFlags(Qt::FramelessWindowHint);
calendarWidget->setWindowFlags(Qt::WindowStaysOnTopHint);
calendarWidget->setFirstDayOfWeek(getLocale().firstDayOfWeek());
calendarWidget->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
connect(calendarWidget, SIGNAL(activated(QDate)), calendarWidget, SLOT(hide()));
connect(calendarWidget, SIGNAL(clicked(QDate)), calendarWidget, SLOT(hide()));