diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-05-10 11:08:11 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-05-15 19:56:50 +0000 |
commit | ef3b585ddf0b5bb81c05eb034830d114843ba536 (patch) | |
tree | 71a677432e5837b9cd7fc870e4177b733c6422ca /tests/auto/widgets/kernel/qapplication/modal/base.h | |
parent | d441f6bba7b2aaf1e11b95c1ad4c785e6939f6ba (diff) |
Brush up tst_QApplication
- Use nullptr
- Fix C-style casts
- Use range-based for
- Use correct static invocation
- Set a title on shown windows to make it possible to identify
slow tests
- Fix the class declarations, use override, member initializations
- Use Qt 5 connection syntax; use lambdas where applicable
to remove helper slots
- Streamline code in some cases
- Replace helper function to convert touch points by the one in
QWindowSystemInterfacePrivate
- Use a logging category for the debug outpt, silencing some output
Change-Id: Ia46c7ad7c08f3afc8e5869ea99b66e406de97781
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qapplication/modal/base.h')
-rw-r--r-- | tests/auto/widgets/kernel/qapplication/modal/base.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/modal/base.h b/tests/auto/widgets/kernel/qapplication/modal/base.h index 95eb427e61..153d9ca420 100644 --- a/tests/auto/widgets/kernel/qapplication/modal/base.h +++ b/tests/auto/widgets/kernel/qapplication/modal/base.h @@ -37,12 +37,10 @@ class base : public QWidget { Q_OBJECT QTimer *m_timer; - bool m_modalStarted; - QDialog *m_modalDialog; + bool m_modalStarted = false; + QDialog *m_modalDialog = nullptr; public: - explicit base(QWidget *parent = 0); - -signals: + explicit base(QWidget *parent = nullptr); public slots: void periodicTimer(); |