[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkde-baseapps=5D_konq-plugins/searchbar=3A_make_the_?=
From:       Burkhard_Lück <lueck () hube-lueck ! de>
Date:       2011-05-31 19:42:09
Message-ID: 20110531194209.3BAB6A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 7fd2209d8c110c9fb08d383a12cbf957a85daf53 by Burkhard Lück.
Committed on 31/05/2011 at 21:40.
Pushed by lueck into branch 'master'.

make the add search engine window right aligned to the search bar

using locales with long translations of the window strings like eg fr part of the \
window to add the search engine is outside the screen, because the window is left \
aligned to the left side of the search bar. Right aligned to the right side of the \
search bar ensure that even with translated strings longer than the search bar the \
window is always visible in konquerors main window.
REVIEW:101475
CCBUG:253879
(cherry picked from commit 3a0cfafc3bb7695a8ce2ae3f2f3b85e80f705180)

M  +1    -1    konq-plugins/searchbar/searchbar.cpp     

http://commits.kde.org/kde-baseapps/7fd2209d8c110c9fb08d383a12cbf957a85daf53

diff --git a/konq-plugins/searchbar/searchbar.cpp \
b/konq-plugins/searchbar/searchbar.cpp index 5afb48f..2e78e7d 100644
--- a/konq-plugins/searchbar/searchbar.cpp
+++ b/konq-plugins/searchbar/searchbar.cpp
@@ -516,7 +516,7 @@ void SearchBarPlugin::openSearchEngineAdded(const QString &name, \
                const QString &
                 this, SLOT(webShortcutSet(const QString &, const QString &, const \
QString &)));  }
 
-    QPoint pos = m_searchCombo->mapToGlobal(QPoint(0, m_searchCombo->height() + 1));
+    QPoint pos = m_searchCombo->mapToGlobal(QPoint(m_searchCombo->width()-m_addWSWidget->width(), \
m_searchCombo->height() + 1));  m_addWSWidget->setGeometry(QRect(pos, \
m_addWSWidget->size()));  m_addWSWidget->show(name, fileName);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic