From 0ea86d83c14dde31b36eb6d3ad3a8dcf10706e22 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 28 Jun 2014 08:35:59 -0700 Subject: 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 --- qt-ui/simplewidgets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui') 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())); -- cgit v1.2.3-70-g09d2