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

List:       kde-commits
Subject:    kdemultimedia/kmix
From:       Christian Esken <esken () kde ! org>
Date:       2005-05-01 14:31:45
Message-ID: 20050501143145.6BD58666 () office ! kde ! org
[Download RAW message or body]

CVS commit by esken: 

DockArea-Popup fix for the "Mixer" button (Helio) by Michael Reiher.
Also fulfills the "middle mouse button should show KMix" wish.
BUGS: 100173
BUGS: 42643


  M +4 -0      kmixdockwidget.cpp   1.64
  M +1 -9      viewdockareapopup.cpp   1.14


--- kdemultimedia/kmix/kmixdockwidget.cpp  #1.63:1.64
@@ -253,4 +253,8 @@ KMixDockWidget::mousePressEvent(QMouseEv
                 return;
         } // LeftMouseButton pressed
+        else if ( me->button() ==  MidButton ) {
+                toggleActive();
+                return;
+        }
         else {
                 KSystemTray::mousePressEvent(me);

--- kdemultimedia/kmix/viewdockareapopup.cpp  #1.13:1.14
@@ -191,13 +191,5 @@ void ViewDockAreaPopup::refreshVolumeLev
 
 void ViewDockAreaPopup::showPanelSlot() {
-        if( ! _dock->parentWidget()->isVisible() )
-        {
-                _dock->parentWidget()->show();
-        }
-        else
-        {
-                _dock->parentWidget()->hide();
-        }
-                
+        _dock->toggleActive();
         _dock->_dockAreaPopup->hide();
 }


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

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