Skip to content

Commit

Permalink
Fix unused variable compiler warning in slider example
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ASpoerl authored and ec1oud committed Jan 5, 2023
1 parent f486d1f commit f05aee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/widgets/widgets/sliders/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void Window::createControls(const QString &title)

void Window::resizeEvent(QResizeEvent *e)
{
Q_UNUSED(e);
if (width() == 0 || height() == 0)
return;

Expand Down

0 comments on commit f05aee7

Please sign in to comment.