diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-28 08:35:59 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-28 08:38:16 -0700 |
commit | 0ea86d83c14dde31b36eb6d3ad3a8dcf10706e22 (patch) | |
tree | fc36852ab53d9768c10d312a0a04e4747034cfce /qt-ui/simplewidgets.cpp | |
parent | 48a3d1b79cd94b872e4aa974f0954d42c7c64d09 (diff) | |
download | subsurface-0ea86d83c14dde31b36eb6d3ad3a8dcf10706e22.tar.gz |
Calendar Widget: set the locale appropriate first day of the week
Also adjust the minimum size, given I changed this in commit
26855234acef ("Make date widget easier to read").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index e87f324de..e14e61552 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -295,10 +295,11 @@ DateWidget::DateWidget(QWidget *parent) : QWidget(parent), calendarWidget(new QCalendarWidget()) { setDate(QDate::currentDate()); - setMinimumSize(QSize(64,64)); + setMinimumSize(QSize(80,64)); setFocusPolicy(Qt::StrongFocus); calendarWidget->setWindowFlags(Qt::FramelessWindowHint); calendarWidget->setWindowFlags(Qt::WindowStaysOnTopHint); + calendarWidget->setFirstDayOfWeek(getLocale().firstDayOfWeek()); connect(calendarWidget, SIGNAL(activated(QDate)), calendarWidget, SLOT(hide())); connect(calendarWidget, SIGNAL(clicked(QDate)), calendarWidget, SLOT(hide())); |