diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-13 23:27:06 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-13 23:30:38 +0100 |
commit | 76586d88a2e0eea15e39f0e0c12e0065a9f7066f (patch) | |
tree | 1bbfdae64079006a4a8a6d72ff7d57949843a38a /src/controllers | |
parent | 3a9048073bf045c40ae015d61634bf6248540ce2 (diff) |
Fix -Wclazy-const-signal-or-slot warnings
Fix getters mismarked as slot. See
https://github.com/KDE/clazy/blob/master/docs/checks/README-const-signal-or-slot.md
for details.
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/dlgprefcontroller.h | 4 | ||||
-rw-r--r-- | src/controllers/hid/hidcontroller.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/controllers/dlgprefcontroller.h b/src/controllers/dlgprefcontroller.h index 7f84e2fca0..d3ffada377 100644 --- a/src/controllers/dlgprefcontroller.h +++ b/src/controllers/dlgprefcontroller.h @@ -31,6 +31,8 @@ class DlgPrefController : public DlgPreferencePage { UserSettingsPointer pConfig); virtual ~DlgPrefController(); + QUrl helpUrl() const override; + public slots: /// Called when the preference dialog (not this page) is shown to the user. void slotUpdate() override; @@ -39,8 +41,6 @@ class DlgPrefController : public DlgPreferencePage { /// Called when the user clicks the global "Reset to Defaults" button. void slotResetToDefaults() override; - QUrl helpUrl() const override; - signals: void applyPreset(Controller* pController, ControllerPresetPointer pPreset, bool bEnabled); void mappingStarted(); diff --git a/src/controllers/hid/hidcontroller.h b/src/controllers/hid/hidcontroller.h index 5dbf3c6e7e..a53a268720 100644 --- a/src/controllers/hid/hidcontroller.h +++ b/src/controllers/hid/hidcontroller.h @@ -56,9 +56,10 @@ class HidController final : public Controller { int close() override; bool poll() override; - bool isPolling() const override; private: + bool isPolling() const override; + // For devices which only support a single report, reportID must be set to // 0x0. void send(QByteArray data) override; |