diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 20:39:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 20:39:18 +0200 |
commit | 33a54cf6cc1083ab4f9325d261f76d6018c34726 (patch) | |
tree | dca2ee9ee466d1f1e1952b58dd872fbdc30c444b | |
parent | - Fix default font size to 16 pt (diff) | |
parent | more aesthetic popups (again) (diff) | |
download | rekonq-33a54cf6cc1083ab4f9325d261f76d6018c34726.tar.xz |
Merge branch 'POPUS'
-rw-r--r-- | src/mainwindow.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cebb7454..27ed8e37 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -931,13 +931,18 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) break; } - m_popup->setView(msg); - + m_popup->setFrameShape(QFrame::NoFrame); + QLabel *label = new QLabel(msg); + m_popup->setLineWidth(0); + m_popup->setView(label); + m_popup->setFixedSize(0, 0); + m_popup->layout()->setAlignment(Qt::AlignTop); + m_popup->layout()->setMargin(4); int h = KGlobalSettings::generalFont().pointSize(); // setting popus in bottom-left position int x = geometry().x(); - int y = geometry().y() + height() - h*4; + int y = geometry().y() + height() - h*3; QPoint p(x,y); m_popup->show(p); |