summaryrefslogtreecommitdiffstats
path: root/kcontrol/hwmanager/hwdevicetray.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-02-04 12:19:24 +0900
committerMichele Calgaro <[email protected]>2023-02-06 17:58:43 +0900
commit8410f6bd00068b31a221e24ee619404ce8b6343a (patch)
tree73e90f16fbe3aa35137bbe4dadc957d8b20f8c3e /kcontrol/hwmanager/hwdevicetray.h
parentba7c5fa56a12b4105ca2f6cb958d3358e00f7f31 (diff)
downloadtdebase-8410f6bd00068b31a221e24ee619404ce8b6343a.tar.gz
tdebase-8410f6bd00068b31a221e24ee619404ce8b6343a.zip
hwmanager: remove current LMB menu. Rearrange code of RMB menu. Use MMB click to
show the Device Manager dialog directly. Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.h')
-rw-r--r--kcontrol/hwmanager/hwdevicetray.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/kcontrol/hwmanager/hwdevicetray.h b/kcontrol/hwmanager/hwdevicetray.h
index c0465f2bf..54382cb8c 100644
--- a/kcontrol/hwmanager/hwdevicetray.h
+++ b/kcontrol/hwmanager/hwdevicetray.h
@@ -1,8 +1,8 @@
/*
* Copyright 2015 Timothy Pearson <[email protected]>
- *
+ *
* This file is part of hwdevicetray, the TDE Hardware Device Monitor System Tray Application
- *
+ *
* hwdevicetray is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3
@@ -45,7 +45,7 @@ public:
~HwDeviceSystemTray();
TDEGlobalAccel *globalKeys;
- virtual void contextMenuAboutToShow(TDEPopupMenu* menu);
+ virtual void contextMenuAboutToShow(TDEPopupMenu *menu);
void configChanged();
@@ -80,8 +80,6 @@ private slots:
private:
static bool isMonitoredDevice(TDEStorageDevice *sdevice);
-private:
- void populateMenu(TDEPopupMenu* menu);
void resizeTrayIcon();
bool m_popupUp;
@@ -98,7 +96,7 @@ private:
TQStringMap m_ejectMenuIndexMap;
TQStringMap m_safeRemoveMenuIndexMap;
TQStringMap m_propertiesMenuIndexMap;
- TDEPopupMenu* m_menu;
+ TDEPopupMenu* m_RMBMenu;
KSimpleConfig *r_config;
struct KnownDiskDeviceInfo