diff options
author | Michele Calgaro <[email protected]> | 2024-01-14 14:09:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-18 22:46:01 +0900 |
commit | 278d2f50538b5465caa86fc7608d9cdfddf36cb9 (patch) | |
tree | 4a7510f5edd4198094ddd9ae4d81ca2a90da7990 /kmilo/generic | |
parent | a8bb8db5a25e70bf9de62c56c15c442883a752dc (diff) | |
download | tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.tar.gz tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit af0b8f5d1e5e00b1f3b48658d89876c2df28e71c)
Diffstat (limited to 'kmilo/generic')
-rw-r--r-- | kmilo/generic/generic_monitor.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kmilo/generic/generic_monitor.cpp b/kmilo/generic/generic_monitor.cpp index b1f00c1..b46425c 100644 --- a/kmilo/generic/generic_monitor.cpp +++ b/kmilo/generic/generic_monitor.cpp @@ -52,27 +52,27 @@ struct ShortcutInfo static const ShortcutInfo shortcuts[] = { - { "Search", TDEShortcut("XF86Search"), TQT_SLOT(launchSearch()) }, - { "Home Folder", TDEShortcut("XF86MyComputer"), TQT_SLOT(launchHomeFolder()) }, - { "Mail", TDEShortcut("XF86Mail"), TQT_SLOT(launchMail()) }, - { "Audio Media", TDEShortcut("XF86AudioMedia"), TQT_SLOT(launchMusic()) }, - { "Music", TDEShortcut("XF86Music"), TQT_SLOT(launchMusic()) }, - { "Browser", TDEShortcut("XF86WWW"), TQT_SLOT(launchBrowser()) }, - { "Calculator", TDEShortcut("XF86Calculator"), TQT_SLOT(launchCalculator()) }, - { "Terminal", TDEShortcut("XF86Terminal"), TQT_SLOT(launchTerminal()) }, - { "Eject", TDEShortcut("XF86Eject"), TQT_SLOT(eject()) }, - { "Help", TDEShortcut("XF86Launch0"), TQT_SLOT(launchHelp()) }, - { "Light Bulb", TDEShortcut("XF86LightBulb"), TQT_SLOT(lightBulb()) }, - { "Battery", TDEShortcut("XF86LaunchB"), TQT_SLOT(pmBattery()) }, - { "FastVolumeUp", TQt::Key_VolumeUp, TQT_SLOT(fastVolumeUp()) }, - { "FastVolumeDown", TQt::Key_VolumeDown, TQT_SLOT(fastVolumeDown()) }, - { "SlowVolumeUp", TQt::CTRL+TQt::Key_VolumeUp, TQT_SLOT(slowVolumeUp()) }, - { "SlowVolumeDown", TQt::CTRL+TQt::Key_VolumeDown, TQT_SLOT(slowVolumeDown()) }, - { "Mute", TDEShortcut("XF86AudioMute"), TQT_SLOT(toggleMute()) }, - { "BrightnessUp", TDEShortcut("XF86MonBrightnessUp"), TQT_SLOT(brightnessUp()) }, - { "BrightnessDown", TDEShortcut("XF86MonBrightnessDown"), TQT_SLOT(brightnessDown()) }, - { "BrightnessSlowUp", TDEShortcut("Ctrl+XF86MonBrightnessUp"), TQT_SLOT(brightnessSlowUp()) }, - { "BrightnessSlowDown", TDEShortcut("Ctrl+XF86MonBrightnessDown"), TQT_SLOT(brightnessSlowDown()) } + { "Search", TDEShortcut("XF86Search"), TQ_SLOT(launchSearch()) }, + { "Home Folder", TDEShortcut("XF86MyComputer"), TQ_SLOT(launchHomeFolder()) }, + { "Mail", TDEShortcut("XF86Mail"), TQ_SLOT(launchMail()) }, + { "Audio Media", TDEShortcut("XF86AudioMedia"), TQ_SLOT(launchMusic()) }, + { "Music", TDEShortcut("XF86Music"), TQ_SLOT(launchMusic()) }, + { "Browser", TDEShortcut("XF86WWW"), TQ_SLOT(launchBrowser()) }, + { "Calculator", TDEShortcut("XF86Calculator"), TQ_SLOT(launchCalculator()) }, + { "Terminal", TDEShortcut("XF86Terminal"), TQ_SLOT(launchTerminal()) }, + { "Eject", TDEShortcut("XF86Eject"), TQ_SLOT(eject()) }, + { "Help", TDEShortcut("XF86Launch0"), TQ_SLOT(launchHelp()) }, + { "Light Bulb", TDEShortcut("XF86LightBulb"), TQ_SLOT(lightBulb()) }, + { "Battery", TDEShortcut("XF86LaunchB"), TQ_SLOT(pmBattery()) }, + { "FastVolumeUp", TQt::Key_VolumeUp, TQ_SLOT(fastVolumeUp()) }, + { "FastVolumeDown", TQt::Key_VolumeDown, TQ_SLOT(fastVolumeDown()) }, + { "SlowVolumeUp", TQt::CTRL+TQt::Key_VolumeUp, TQ_SLOT(slowVolumeUp()) }, + { "SlowVolumeDown", TQt::CTRL+TQt::Key_VolumeDown, TQ_SLOT(slowVolumeDown()) }, + { "Mute", TDEShortcut("XF86AudioMute"), TQ_SLOT(toggleMute()) }, + { "BrightnessUp", TDEShortcut("XF86MonBrightnessUp"), TQ_SLOT(brightnessUp()) }, + { "BrightnessDown", TDEShortcut("XF86MonBrightnessDown"), TQ_SLOT(brightnessDown()) }, + { "BrightnessSlowUp", TDEShortcut("Ctrl+XF86MonBrightnessUp"), TQ_SLOT(brightnessSlowUp()) }, + { "BrightnessSlowDown", TDEShortcut("Ctrl+XF86MonBrightnessDown"), TQ_SLOT(brightnessSlowDown()) } }; GenericMonitor::GenericMonitor(TQObject *parent, const char *name, const TQStringList& args) @@ -289,7 +289,7 @@ void GenericMonitor::brightnessChange(int direction, int step) { tdepowersave->call("do_brightnessDown", step); } - TQTimer::singleShot(250, this, TQT_SLOT(brightnessValueUpdate())); + TQTimer::singleShot(250, this, TQ_SLOT(brightnessValueUpdate())); } void GenericMonitor::brightnessValueUpdate() |