[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Sun Aug 29 10:30:51 CEST 2010
SVN commit 1169429 by nienhueser:
Make download region dialog usable on Maemo.
M +14 -0 DownloadRegionDialog.cpp
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1169428:1169429
@@ -25,6 +25,7 @@
#include <QtGui/QShowEvent>
#include <QtGui/QVBoxLayout>
#include <QtGui/QSpinBox>
+#include <QtGui/QScrollArea>
#include <QtCore/QSet>
#include "AbstractScanlineTextureMapper.h"
@@ -253,8 +254,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