[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.5/kdeedu/marble/src/lib
From: Dennis Nienhüser <earthwings () gentoo ! org>
Date: 2010-09-01 16:57:34
Message-ID: 20100901165734.2CB21AC857 () svn ! kde ! org
[Download RAW message or body]
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@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 )),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic