summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/gradients/gradients.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-12-07 14:17:02 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-01-06 17:07:59 +0000
commitcf27d9e8a5e14ebe083f4b0fa2204d0646e7ed5e (patch)
tree56ab889591e8cdb919f9b5b3ac6a46af6126a2da /examples/widgets/painting/gradients/gradients.cpp
parent283008e123e5eacb83869682528b2024186634f8 (diff)
Cleanup Widgets examples - new signal/slot syntax
Cleanup the Widget examples - use the new signal/slot syntax where possible - painting and richtext subdirectory Change-Id: If0e365ab1cabf9184076595494cfca151406fddf Reviewed-by: Luca Beldi <v.ronin@yahoo.it> Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/widgets/painting/gradients/gradients.cpp')
-rw-r--r--examples/widgets/painting/gradients/gradients.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/painting/gradients/gradients.cpp b/examples/widgets/painting/gradients/gradients.cpp
index 004f6710cd..fd6eaeb0d9 100644
--- a/examples/widgets/painting/gradients/gradients.cpp
+++ b/examples/widgets/painting/gradients/gradients.cpp
@@ -421,7 +421,7 @@ GradientWidget::GradientWidget(QWidget *parent)
m_renderer->loadSourceFile(":res/gradients/gradients.cpp");
m_renderer->loadDescription(":res/gradients/gradients.html");
- QTimer::singleShot(50, this, SLOT(setDefault1()));
+ QTimer::singleShot(50, this, &GradientWidget::setDefault1);
}
void GradientWidget::setDefault(int config)