aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-04-10 11:57:06 +0200
committerGordan Markus <gordan.markus@pelagicore.com>2017-04-19 22:38:04 +0000
commitbfa8da56b1edd77ec416c24b96d33db94368be80 (patch)
tree433259b57f052b9890cd9c34aeec0ccaaeafeab4
parent732df181cdeffa4f514c78c0d93b1541bf250273 (diff)
Fix issues reported by clazyv5.9.0-beta3
* Add missing Q_OBJECT macros * Add missing Q_DECL_OVERRIDE macro Change-Id: I07fc44cae17a1db03eb0f32b0d6fc4eb85f4b395 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/virtualkeyboard/desktopinputselectioncontrol.h2
-rw-r--r--src/virtualkeyboard/inputselectionhandle.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/virtualkeyboard/desktopinputselectioncontrol.h b/src/virtualkeyboard/desktopinputselectioncontrol.h
index b138c937..9a5ec468 100644
--- a/src/virtualkeyboard/desktopinputselectioncontrol.h
+++ b/src/virtualkeyboard/desktopinputselectioncontrol.h
@@ -44,6 +44,8 @@ class InputSelectionHandle;
class DesktopInputSelectionControl : public QObject
{
+ Q_OBJECT
+
public:
DesktopInputSelectionControl(QObject *parent, InputContext *inputContext);
~DesktopInputSelectionControl() {}
diff --git a/src/virtualkeyboard/inputselectionhandle.h b/src/virtualkeyboard/inputselectionhandle.h
index fa2f1e13..e4c3e910 100644
--- a/src/virtualkeyboard/inputselectionhandle.h
+++ b/src/virtualkeyboard/inputselectionhandle.h
@@ -42,13 +42,15 @@ class DesktopInputSelectionControl;
class InputSelectionHandle : public QRasterWindow
{
+ Q_OBJECT
+
public:
InputSelectionHandle(DesktopInputSelectionControl *control, QWindow *eventWindow);
void applyImage(const QSize &windowSize);
protected:
void paintEvent(QPaintEvent *pe) Q_DECL_OVERRIDE;
- bool event(QEvent *event);
+ bool event(QEvent *event) Q_DECL_OVERRIDE;
private:
DesktopInputSelectionControl *m_control;