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:
parent
f486d1f4d2
commit
f05aee7628
@ -116,6 +116,7 @@ void Window::createControls(const QString &title)
|
|||||||
|
|
||||||
void Window::resizeEvent(QResizeEvent *e)
|
void Window::resizeEvent(QResizeEvent *e)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(e);
|
||||||
if (width() == 0 || height() == 0)
|
if (width() == 0 || height() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user