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>
This commit is contained in:
Axel Spoerl 2023-01-04 08:32:37 +01:00 committed by Shawn Rutledge
parent f486d1f4d2
commit f05aee7628

View File

@ -116,6 +116,7 @@ void Window::createControls(const QString &title)
void Window::resizeEvent(QResizeEvent *e)
{
Q_UNUSED(e);
if (width() == 0 || height() == 0)
return;