Skip to content

Commit 913ef68

Browse files
qthotkey: Use different class name than GTK plugin
1 parent bcffdba commit 913ef68

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/qthotkey/plugin.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ typedef long filter_result_t;
7070
namespace GlobalHotkeys
7171
{
7272

73-
class GlobalHotkeys : public GeneralPlugin
73+
class GlobalHotkeysQt : public GeneralPlugin
7474
{
7575
public:
7676
static const char about[];
7777

7878
static constexpr PluginInfo info = {N_("Global Hotkeys"), PACKAGE, about,
7979
&hotkey_prefs, PluginQtOnly};
8080

81-
constexpr GlobalHotkeys() : GeneralPlugin(info, false) {}
81+
constexpr GlobalHotkeysQt() : GeneralPlugin(info, false) {}
8282

8383
bool init() override;
8484
void cleanup() override;
@@ -101,7 +101,7 @@ unsigned int numlock_mask = 0;
101101
unsigned int scrolllock_mask = 0;
102102
unsigned int capslock_mask = 0;
103103

104-
const char GlobalHotkeys::about[] =
104+
const char GlobalHotkeysQt::about[] =
105105
N_("Global Hotkey Plugin\n"
106106
"Control the player with global key combinations or multimedia keys.\n\n"
107107
"Copyright (C) 2020 i.Dark_Templar "
@@ -420,7 +420,7 @@ void save_config()
420420
aud_set_int("globalHotkey", "NumHotkeys", max);
421421
}
422422

423-
bool GlobalHotkeys::init()
423+
bool GlobalHotkeysQt::init()
424424
{
425425
audqt::init();
426426

@@ -458,7 +458,7 @@ bool GlobalHotkeys::init()
458458
return true;
459459
}
460460

461-
void GlobalHotkeys::cleanup()
461+
void GlobalHotkeysQt::cleanup()
462462
{
463463
QCoreApplication::instance()->removeNativeEventFilter(&event_filter);
464464
ungrab_keys();
@@ -738,4 +738,4 @@ void ungrab_keys()
738738

739739
} /* namespace GlobalHotkeys */
740740

741-
EXPORT GlobalHotkeys::GlobalHotkeys aud_plugin_instance;
741+
EXPORT GlobalHotkeys::GlobalHotkeysQt aud_plugin_instance;

0 commit comments

Comments
 (0)