summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Tröscher <fritz_van_tom@hotmail.com>2011-09-21 15:47:08 +0200
committerJohannes Tröscher <fritz_van_tom@hotmail.com>2011-09-21 15:48:10 +0200
commitd1e60939e0717f4973452edf0fabc79620da4147 (patch)
tree61981e3104c2c4b3e6cc99d6a767671ead4ce5b1 /src
parentrekonq 0.7.92 (diff)
downloadrekonq-d1e60939e0717f4973452edf0fabc79620da4147.tar.xz
add margin for notifyLabel
REVIEWED-BY: trustMe
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 12ecf7a8..7954bb63 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -236,6 +236,7 @@ void MainWindow::postLaunch()
// setting popup notification
connect(rApp, SIGNAL(focusChanged(QWidget*, QWidget*)), m_popup, SLOT(hide()));
m_popup->setAutoFillBackground(true);
+ m_popup->setMargin(4);
m_popup->raise();
m_popup->hide();
connect(m_hidePopupTimer, SIGNAL(timeout()), m_popup, SLOT(hide()));
@@ -1194,7 +1195,7 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status)
labelSize.setWidth(halfWidth);
m_popup->setFixedSize(labelSize);
- m_popup->setText(fm.elidedText(msg, Qt::ElideMiddle, labelSize.width()));
+ m_popup->setText(fm.elidedText(msg, Qt::ElideMiddle, labelSize.width() - 2 * margin));
const bool horizontalScrollbarIsVisible = tab->page()->currentFrame()->scrollBarMaximum(Qt::Horizontal);
const bool verticalScrollbarIsVisible = tab->page()->currentFrame()->scrollBarMaximum(Qt::Vertical);