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

Dennis Nienhüser earthwings at gentoo.org
Sun Sep 12 22:39:53 CEST 2010


SVN commit 1174562 by nienhueser:

Set a minimum size in the list view (~ one item). Change the scroll mode back to the default. It is nicer especially for small sizes and does not influence the scroll wheel speed.
CCBUG: 175548
Hide some labels in small screen device mode.

 M  +6 -3      MapViewWidget.ui  
 M  +6 -0      MarbleControlBox.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MapViewWidget.ui #1174561:1174562
@@ -119,15 +119,18 @@
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
+     <property name="minimumSize">
+      <size>
+       <width>0</width>
+       <height>140</height>
+      </size>
+     </property>
      <property name="whatsThis">
       <string>Here you can choose the preferred map view from different topics.</string>
      </property>
      <property name="autoFillBackground">
       <bool>true</bool>
      </property>
-     <property name="verticalScrollMode">
-      <enum>QAbstractItemView::ScrollPerPixel</enum>
-     </property>
     </widget>
    </item>
   </layout>
--- trunk/KDE/kdeedu/marble/src/lib/MarbleControlBox.cpp #1174561:1174562
@@ -114,6 +114,12 @@
 
     d->m_mapViewWidget = new QWidget( this );
     d->m_mapViewUi.setupUi( d->m_mapViewWidget );
+    if ( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
+        d->m_mapViewUi.projectionLabel_2->setVisible( false );
+        d->m_mapViewUi.line->setVisible( false );
+        d->m_mapViewUi.celestialBodyLabel->setVisible( false );
+        d->m_mapViewUi.mapThemeLabel->setVisible( false );
+    }
     addItem( d->m_mapViewWidget, d->m_mapViewWidget->windowTitle() );
 
     d->m_fileViewWidget = new QWidget( this );


More information about the Marble-commits mailing list