From 78c674674f2670133437e4d1a17489b4db4c2948 Mon Sep 17 00:00:00 2001 From: megabigbug Date: Sat, 1 Aug 2009 11:23:29 +0200 Subject: more aesthetic popups (again) --- src/mainwindow.cpp | 11 ++++++++--- 1 file 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); -- cgit v1.2.1