Author: tgoettlicher Date: Thu Dec 11 17:02:26 2008 New Revision: 54067 URL: http://svn.opensuse.org/viewcvs/yast?rev=54067&view=rev Log: Fixed layout for rtl languages Modified: trunk/qt/src/YQMainWinDock.cc Modified: trunk/qt/src/YQMainWinDock.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMainWinDock.cc?rev=54067&r1=54066&r2=54067&view=diff ============================================================================== --- trunk/qt/src/YQMainWinDock.cc (original) +++ trunk/qt/src/YQMainWinDock.cc Thu Dec 11 17:02:26 2008 @@ -84,14 +84,19 @@ YQDialog * dialog = *it; QRect rect = QRect( QPoint( 0, 0 ), size() ); - + YQWizard * wizard = dialog->findWizard(); if ( wizard ) yuiDebug() << dialog << " with " << wizard << " isSecondary: " << boolalpha << wizard->isSecondary() << endl; if ( wizard && wizard->isSecondary() ) - rect.setLeft( _sideBarWidth ); + { + if ( QApplication::isLeftToRight() ) + rect.setLeft( _sideBarWidth ); + else + rect.setWidth( rect.width() - _sideBarWidth ); + } if ( dialog->rect() != rect ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org