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

Dennis Nienhüser earthwings at gentoo.org
Fri Dec 31 16:34:51 CET 2010


SVN commit 1210470 by nienhueser:

Connect the activated signal to map theme changes instead of the pressed signal. The latter is also invoked when grabbing an item for scrolling, resulting in unwanted theme changes. Fixes sluggish menu behavior on Maemo. Lazy theme change in dialog mode (change theme when accept()ing the dialog) tbd.

 M  +1 -1      MarbleThemeSelectView.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleThemeSelectView.cpp #1210469:1210470
@@ -116,7 +116,7 @@
     setEditTriggers( QAbstractItemView::NoEditTriggers );
     setSelectionMode( QAbstractItemView::SingleSelection );
 
-    connect( this, SIGNAL( pressed( QModelIndex ) ),
+    connect( this, SIGNAL( activated( QModelIndex ) ),
                    SLOT( selectedMapTheme( QModelIndex ) ) );
     connect( this, SIGNAL( customContextMenuRequested( QPoint ) ),
                    SLOT( showContextMenu( QPoint ) ) );


More information about the Marble-commits mailing list