forked from qt-creator/qt-creator
QmlDesigner: Fix unused variable
menu is not used Change-Id: I5ee685b89160fd50537c7b993f05c56ada6d0e9b Reviewed-by: Ali Kianian <ali.kianian@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -166,7 +166,7 @@ void IndicatorButtonAction::setIndicator(bool indicator)
|
|||||||
|
|
||||||
QWidget *IndicatorButtonAction::createWidget(QWidget *parent)
|
QWidget *IndicatorButtonAction::createWidget(QWidget *parent)
|
||||||
{
|
{
|
||||||
if (QMenu *menu = qobject_cast<QMenu *>(parent))
|
if (qobject_cast<QMenu *>(parent))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
IndicatorButton *button = new IndicatorButton(parent);
|
IndicatorButton *button = new IndicatorButton(parent);
|
||||||
|
Reference in New Issue
Block a user