[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kwin/kcmkwin/kwinscreenedges
From:       Martin Gräßlin <ubuntu () martin-graesslin ! com>
Date:       2009-03-31 21:39:09
Message-ID: 1238535549.937959.31648.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 947615 by graesslin:

Show tooltip for screen edges containing selected action

 M  +5 -0      monitor.cpp  


--- trunk/KDE/kdebase/workspace/kwin/kcmkwin/kwinscreenedges/monitor.cpp #947614:947615
@@ -136,7 +136,10 @@
     popup_actions[ edge ].append( act );
     grp[ edge ]->addAction( act );
     if( popup_actions[ edge ].count() == 1 )
+        {
         act->setChecked( true );
+        items[ edge ]->setToolTip( item );
+        }
     setEdge( edge, !popup_actions[ edge ][ 0 ]->isChecked());
     }
 
@@ -154,6 +157,7 @@
     {
     popup_actions[ edge ][ index ]->setChecked( true );
     setEdge( edge, !popup_actions[ edge ][ 0 ]->isChecked());
+    items[ edge ]->setToolTip( popup_actions[ edge ][ index ]->text() );
     }
 
 int Monitor::selectedEdgeItem( int edge ) const
@@ -179,6 +183,7 @@
                 selectEdgeItem( i, popup_actions[ i ].indexOf( a ));
                 emit changed();
                 emit edgeSelectionChanged( i, popup_actions[ i ].indexOf( a ));
+                c->setToolTip( a->text() );
                 }
             return;
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic