[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Mon Nov 1 12:40:59 CET 2010
SVN commit 1191896 by nienhueser:
Don't show the Apply button on Maemo since it is only useful in modal dialogs.
CCBUG: 254804
M +4 -0 DownloadRegionDialog.cpp
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1191895:1191896
@@ -192,6 +192,10 @@
QDialogButtonBox * const buttonBox = new QDialogButtonBox;
m_okButton = buttonBox->addButton( QDialogButtonBox::Ok );
m_applyButton = buttonBox->addButton( QDialogButtonBox::Apply );
+ if ( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
+ buttonBox->removeButton( m_applyButton );
+ m_applyButton->setVisible( false );
+ }
buttonBox->addButton( QDialogButtonBox::Cancel );
connect( buttonBox, SIGNAL( accepted() ), m_dialog, SLOT( accept() ) );
connect( buttonBox, SIGNAL( rejected() ), m_dialog, SLOT( reject() ) );
More information about the Marble-commits
mailing list