diff options
author | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-21 15:47:08 +0200 |
---|---|---|
committer | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-21 15:48:10 +0200 |
commit | d1e60939e0717f4973452edf0fabc79620da4147 (patch) | |
tree | 61981e3104c2c4b3e6cc99d6a767671ead4ce5b1 | |
parent | rekonq 0.7.92 (diff) | |
download | rekonq-d1e60939e0717f4973452edf0fabc79620da4147.tar.xz |
add margin for notifyLabel
REVIEWED-BY: trustMe
-rw-r--r-- | src/mainwindow.cpp | 3 |
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); |