summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/sliders
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-01-04 08:32:37 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2023-01-05 05:21:43 +0000
commitf05aee76288f2cbf021b80ee1b1961bd183cbfbe (patch)
tree0bd62a1e8201677c2b7c7081188bb21507118e8a /examples/widgets/widgets/sliders
parentf486d1f4d2dd5340c6ca84815abc12618e648c04 (diff)
Fix unused variable compiler warning in slider example
The example overrides QWidget::resizeEvent() without using the QResizeEvent * argument. This results in a compiler warning. This patch marks the argument unused. Pick-to: 6.5 Change-Id: I647d0eda7d895e70ed6f232960aec992f5e37b6c Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/widgets/widgets/sliders')
-rw-r--r--examples/widgets/widgets/sliders/window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/widgets/sliders/window.cpp b/examples/widgets/widgets/sliders/window.cpp
index 4a3520716d..a2c2fe89eb 100644
--- a/examples/widgets/widgets/sliders/window.cpp
+++ b/examples/widgets/widgets/sliders/window.cpp
@@ -116,6 +116,7 @@ void Window::createControls(const QString &title)
void Window::resizeEvent(QResizeEvent *e)
{
+ Q_UNUSED(e);
if (width() == 0 || height() == 0)
return;