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

Dennis Nienhüser earthwings at gentoo.org
Wed Oct 6 22:04:07 CEST 2010


SVN commit 1183281 by nienhueser:

do not set a style sheet on maemo since that conflicts with the maemo style

 M  +3 -0      RoutingLineEdit.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingLineEdit.cpp #1183280:1183281
@@ -13,6 +13,7 @@
 //
 
 #include "RoutingLineEdit.h"
+#include "global.h"
 
 #include <QtGui/QApplication>
 #include <QtGui/QClipboard>
@@ -48,7 +49,9 @@
 
     // Padding for clear button to avoid text underflow
     QString const direction = layoutDirection() == Qt::LeftToRight ? "right" : "left";
+    if ( !MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
     setStyleSheet( QString( ":enabled { padding-%1: %2; }").arg( direction).arg( 18 ) );
+    }
 
     connect( this, SIGNAL( textChanged( QString ) ), SLOT( updateClearButtonIcon( QString ) ) );
 }


More information about the Marble-commits mailing list