summaryrefslogtreecommitdiffstats
path: root/src/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 02e3b20..3e23385 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -204,12 +204,16 @@ Widget::Widget(QWidget *parent) :
_ui->comboBox->setCurrentIndex(index);
// Remove borders and stuff
- setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint);
+ setWindowFlags(Qt::Widget | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint);
//setStyleSheet("background:transparent;");
//setAttribute(Qt::WA_TranslucentBackground);
// Resize widget to its content
resize(sizeHint());
+ show();
+ QTimer *timer = new QTimer(this);
+ connect(timer, SIGNAL(timeout()), this, SLOT(bringToTopTimer()));
+ timer->start(1000);
// Center dialog on screenbottom
const QRect desktopRect = QApplication::desktop()->screenGeometry();
@@ -238,6 +242,11 @@ Widget::Widget(QWidget *parent) :
/*************************************************************************/
}
+void Widget::bringToTopTimer()
+{
+ raise();
+}
+
//______________________________________________________________________________
void Widget::updateScreenResources()
{