summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-10-28 21:42:08 +0100
committermegabigbug <megabigbug@arrakis.(none)>2009-10-28 21:42:08 +0100
commitfe13b46401594b6309976f0f07371d781c70154d (patch)
tree7b5e91beb902aec690c9ed7ee0a9ed63c1e01a71 /src/mainwindow.cpp
parentrekonq 0.2.90 (diff)
downloadrekonq-fe13b46401594b6309976f0f07371d781c70154d.tar.xz
fix maximal popup width
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f079c8b9..4a60f5f9 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -976,9 +976,9 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status)
// setting the popup
QLabel *label = new QLabel(msg);
- label->setMaximumWidth(width()-2*margin);
m_popup->setView(label);
QSize labelSize(label->fontMetrics().width(msg)+2*margin, label->fontMetrics().height()+2*margin);
+ if (labelSize.width() > width()) labelSize.setWidth(width());
m_popup->setFixedSize(labelSize);
m_popup->layout()->setAlignment(Qt::AlignTop);
m_popup->layout()->setMargin(margin);