[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/src
From: Rafael Fernández López <ereslibre () kde ! org>
Date: 2008-08-18 21:33:33
Message-ID: 1219095213.139739.30776.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 849024 by ereslibre:
It seems people wants this toolbar to be right aligned on LTR systems (and viceversa on RTL systems)
M +8 -2 mainwindow.cpp
--- trunk/KDE/kdepim/kontact/src/mainwindow.cpp #849023:849024
@@ -782,8 +782,14 @@
KToolBar *navigatorToolBar = findToolBar( "navigatorToolBar" );
// Let the navigator toolbar be always the last one, if it's in the top dockwindow
if ( navigatorToolBar && !navigatorToolBar->isHidden() &&
- toolBarArea( navigatorToolBar ) == Qt::TopToolBarArea ) {
- addToolBar( Qt::TopToolBarArea, navigatorToolBar );
+ ( toolBarArea( navigatorToolBar ) == Qt::TopToolBarArea ||
+ toolBarArea( navigatorToolBar ) == Qt::BottomToolBarArea ) ) {
+ if ( layoutDirection() == Qt::LeftToRight ) {
+ navigatorToolBar->setLayoutDirection( Qt::RightToLeft );
+ } else {
+ navigatorToolBar->setLayoutDirection( Qt::LeftToRight );
+ }
+ addToolBar( toolBarArea( navigatorToolBar ), navigatorToolBar );
}
setCaption( i18nc( "Plugin dependent window title", "%1 - Kontact", plugin->title() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic