mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Calendar Widget: set the locale appropriate first day of the week
Also adjust the minimum size, given I changed this in commit
26855234ac
("Make date widget easier to read").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
48a3d1b79c
commit
0ea86d83c1
3 changed files with 8 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue