diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-08-01 11:23:29 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-08-01 11:23:29 +0200 |
commit | 78c674674f2670133437e4d1a17489b4db4c2948 (patch) | |
tree | 9f9ada5ad5aa137de133154e67f47ed18adb9051 | |
parent | Fixing a bit enum OpenType names.. (diff) | |
download | rekonq-78c674674f2670133437e4d1a17489b4db4c2948.tar.xz |
more aesthetic popups (again)
-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); |