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>
This commit is contained in:
Joakim Bygdell 2014-06-28 09:18:25 +02:00 committed by Dirk Hohndel
parent a1c933da9f
commit 48a3d1b79c

View file

@ -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()));