[Marble-commits] KDE/kdeedu/marble/src/lib/routing

Dennis Nienhüser earthwings at gentoo.org
Wed Nov 17 22:34:40 CET 2010


SVN commit 1198222 by nienhueser:

Put the dialog button box on the right side on Maemo, which makes better use of the available space.

 M  +3 -0      RoutingProfileSettingsDialog.cpp  
 M  +4 -4      RoutingProfileSettingsDialog.ui  


--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingProfileSettingsDialog.cpp #1198221:1198222
@@ -32,6 +32,9 @@
     bool const smallScreen = MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen;
     if ( smallScreen ) {
       setMinimumHeight( 480 );
+      m_ui->gridLayout->removeWidget( m_ui->buttonBox );
+      m_ui->buttonBox->setOrientation( Qt::Vertical );
+      m_ui->gridLayout->addWidget( m_ui->buttonBox, 1, 1 );
     }
 
     QList<RunnerPlugin*> allPlugins = pluginManager->runnerPlugins();
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingProfileSettingsDialog.ui #1198221:1198222
@@ -13,8 +13,8 @@
   <property name="windowTitle">
    <string>Configure Routing Profile</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout_3">
-   <item>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="0" column="0">
     <layout class="QFormLayout" name="formLayout">
      <property name="fieldGrowthPolicy">
       <enum>QFormLayout::ExpandingFieldsGrow</enum>
@@ -31,7 +31,7 @@
      </item>
     </layout>
    </item>
-   <item>
+   <item row="1" column="0">
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <layout class="QVBoxLayout" name="verticalLayout_2">
@@ -122,7 +122,7 @@
      </item>
     </layout>
    </item>
-   <item>
+   <item row="2" column="0">
     <widget class="QDialogButtonBox" name="buttonBox">
      <property name="standardButtons">
       <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>


More information about the Marble-commits mailing list