From 48a3d1b79cd94b872e4aa974f0954d42c7c64d09 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 28 Jun 2014 09:18:25 +0200 Subject: Make calendar stay on top This patch makes tha calendar stay on top at all times. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/simplewidgets.cpp') diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 643efd450..e87f324de 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -298,6 +298,7 @@ DateWidget::DateWidget(QWidget *parent) : QWidget(parent), setMinimumSize(QSize(64,64)); setFocusPolicy(Qt::StrongFocus); calendarWidget->setWindowFlags(Qt::FramelessWindowHint); + calendarWidget->setWindowFlags(Qt::WindowStaysOnTopHint); connect(calendarWidget, SIGNAL(activated(QDate)), calendarWidget, SLOT(hide())); connect(calendarWidget, SIGNAL(clicked(QDate)), calendarWidget, SLOT(hide())); -- cgit v1.2.3-70-g09d2