summaryrefslogtreecommitdiffstats
path: root/tests/manual/highdpi/dragwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/highdpi/dragwidget.h')
-rw-r--r--tests/manual/highdpi/dragwidget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/manual/highdpi/dragwidget.h b/tests/manual/highdpi/dragwidget.h
index 8b67b20410..06663fc74a 100644
--- a/tests/manual/highdpi/dragwidget.h
+++ b/tests/manual/highdpi/dragwidget.h
@@ -40,7 +40,7 @@ QT_END_NAMESPACE
class DragWidget : public QWidget
{
public:
- DragWidget(QString text = QString(), QWidget *parent = 0);
+ DragWidget(QString text = QString(), QWidget *parent = nullptr);
protected:
void dragEnterEvent(QDragEnterEvent *event) override;
@@ -52,12 +52,13 @@ protected:
void timerEvent(QTimerEvent *event) override;
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
+
private:
QPoint dragPos;
QPoint dropPos;
QBasicTimer dragTimer;
QBasicTimer dropTimer;
- QWidget *otherWindow;
+ QWidget *otherWindow = nullptr;
};
#endif // DRAGWIDGET_H