summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/shared/hoverpoints.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2019-09-06 23:24:56 +0200
committerChristian Ehrlicher <[email protected]>2019-10-11 06:32:30 +0200
commit4af00753fad57989a6ae366cc3dbfc56d88508f4 (patch)
tree1afa2fef01d285f85c13b814cbfaa95376b442ea /examples/widgets/painting/shared/hoverpoints.cpp
parent65fcd8524da628c99e8cd28f983f0c17fbe157f0 (diff)
Cleanup QtWidgets examples
Cleanup QtWidgets examples: - use nullptr (clang-tidy) - use member-initialization - adjust the style - fix includes Change-Id: Ic5448606aacc525ea60b615a69227017aa2b821a Reviewed-by: Paul Wicking <[email protected]>
Diffstat (limited to 'examples/widgets/painting/shared/hoverpoints.cpp')
-rw-r--r--examples/widgets/painting/shared/hoverpoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/painting/shared/hoverpoints.cpp b/examples/widgets/painting/shared/hoverpoints.cpp
index 2032fb5a2cc..2bf3963e9e4 100644
--- a/examples/widgets/painting/shared/hoverpoints.cpp
+++ b/examples/widgets/painting/shared/hoverpoints.cpp
@@ -262,8 +262,8 @@ bool HoverPoints::eventFilter(QObject *object, QEvent *event)
case QEvent::Paint:
{
QWidget *that_widget = m_widget;
- m_widget = 0;
- QApplication::sendEvent(object, event);
+ m_widget = nullptr;
+ QCoreApplication::sendEvent(object, event);
m_widget = that_widget;
paintPoints();
return true;