[Marble-commits] branches/KDE/4.5/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Wed Sep 1 18:57:34 CEST 2010
SVN commit 1170617 by nienhueser:
Make download region dialog usable on Maemo. Backport of commit 1169429, will be in Marble 0.10.2.
CCMAIL: kspt.tor at gmail.com
M +14 -0 DownloadRegionDialog.cpp
--- branches/KDE/4.5/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1170616:1170617
@@ -24,6 +24,7 @@
#include <QtGui/QRadioButton>
#include <QtGui/QShowEvent>
#include <QtGui/QVBoxLayout>
+#include <QtGui/QScrollArea>
#include "AbstractScanlineTextureMapper.h"
#include "GeoDataLatLonAltBox.h"
@@ -186,8 +187,21 @@
layout->addWidget( d->createSelectionMethodBox() );
layout->addWidget( d->m_tileLevelRangeWidget );
layout->addLayout( d->createTilesCounter() );
+
+ if ( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
+ QWidget* widget = new QWidget( this );
+ widget->setLayout( layout );
+ QScrollArea* scrollArea = new QScrollArea( this );
+ scrollArea->setFrameShape( QFrame::NoFrame );
+ scrollArea->setWidget( widget );
+ QVBoxLayout * const mainLayout = new QVBoxLayout;
+ mainLayout->addWidget( scrollArea );
+ mainLayout->addWidget( d->createOkCancelButtonBox() );
+ setLayout( mainLayout );
+ } else {
layout->addWidget( d->createOkCancelButtonBox() );
setLayout( layout );
+ }
connect( d->m_latLonBoxWidget, SIGNAL( valueChanged() ), SLOT( updateTilesCount() ));
connect( d->m_tileLevelRangeWidget, SIGNAL( topLevelChanged( int )),
More information about the Marble-commits
mailing list