summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2014-06-28 09:18:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-28 08:21:07 -0700
commit48a3d1b79cd94b872e4aa974f0954d42c7c64d09 (patch)
tree796d1031597d9b50700daf3c2cbea024663fe80c /qt-ui
parenta1c933da9fad358075a2f42f3055b82cf089c197 (diff)
downloadsubsurface-48a3d1b79cd94b872e4aa974f0954d42c7c64d09.tar.gz
Make calendar stay on top
This patch makes tha calendar stay on top at all times. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/simplewidgets.cpp1
1 files changed, 1 insertions, 0 deletions
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()));