Updated to version 0.5.2 from https://store.kde.org/p/1081202. Code available under GPL2 license

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 1 year ago
parent 33b2693865
commit 100a40e71a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,3 +1,9 @@
21.08.2007 Kommando v0.5.2:
-clicking with the middle mousebutton excutes commands
16.11.2006 Kommando v0.5.1:
-added a "add menu from kmenu" feature (again a patch by Sergio)
14.11.2006 Kommando v0.5.0: 14.11.2006 Kommando v0.5.0:
-added context sensitive menus -added context sensitive menus
-running as kded module (huge thanks to Sergio Cambra) -running as kded module (huge thanks to Sergio Cambra)

@ -38,7 +38,7 @@ class KShortcut;
/** /**
* @short Application Main Window * @short Application Main Window
* @author Daniel Stöckel <the_docter@gmx.net> * @author Daniel Stöckel <the_docter@gmx.net>
* @version 0.5.0 * @version 0.5.2
*/ */
class ConfigDialogImpl : public ConfigDialog class ConfigDialogImpl : public ConfigDialog

@ -33,7 +33,7 @@
static const char description[] = static const char description[] =
I18N_NOOP("A wheelmenu for KDE powerusers"); I18N_NOOP("A wheelmenu for KDE powerusers");
static const char version[] = "0.5.0"; static const char version[] = "0.5.2";
typedef KGenericFactory<KCMKommando, QWidget> kommandoFactory; typedef KGenericFactory<KCMKommando, QWidget> kommandoFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kommando, kommandoFactory("kcmkommando")) K_EXPORT_COMPONENT_FACTORY( kcm_kommando, kommandoFactory("kcmkommando"))

@ -279,4 +279,17 @@ void Kommando::selectButton( int num )
actMenu->selectButton(num); actMenu->selectButton(num);
} }
void Kommando::mousePressEvent(QMouseEvent* evt)
{
middleMouseButtonState = (evt->button() == Qt::MidButton);
}
void Kommando::mouseReleaseEvent(QMouseEvent* evt)
{
if(middleMouseButtonState && (evt->button() == Qt::MidButton)){
middleMouseButtonState = false;
slotNavClick();
}
}
#include "kommando.moc" #include "kommando.moc"

@ -65,6 +65,7 @@ class Kommando : public QWidget
Menu* actMenu; Menu* actMenu;
QPtrList<Menu> mTopLevelMenus; QPtrList<Menu> mTopLevelMenus;
RoundButton navbutton; RoundButton navbutton;
bool middleMouseButtonState;
int oldNavbuttonIconType; //holds whether the icon should be changed int oldNavbuttonIconType; //holds whether the icon should be changed
KPixmap mScreenshot; KPixmap mScreenshot;
@ -73,7 +74,8 @@ class Kommando : public QWidget
virtual void windowActivationChange ( bool oldActive ); virtual void windowActivationChange ( bool oldActive );
virtual void wheelEvent (QWheelEvent * evt); virtual void wheelEvent (QWheelEvent * evt);
virtual void keyPressEvent(QKeyEvent* evt); virtual void keyPressEvent(QKeyEvent* evt);
virtual void mousePressEvent(QMouseEvent* evt);
virtual void mouseReleaseEvent(QMouseEvent* evt);
protected slots: protected slots:
virtual void slotOnClick(); virtual void slotOnClick();

Loading…
Cancel
Save