QToolbar: Un-hide the QLayout::indexOf non-virtual

Breaks the build with QT6_VIRTUAL

qtoolbarlayout_p.h:99:9: error: 'QToolBarLayout::indexOf' hides overloaded virtual function [-Werror,-Woverloaded-virtual]

Change-Id: I6efb28c3145047559ec0fffd15386c39739b42f9
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Thiago Macieira 2018-06-15 12:31:07 -07:00
parent 150b9327a4
commit 40d528d9fd

View File

@ -97,7 +97,7 @@ public:
void insertAction(int index, QAction *action);
int indexOf(QAction *action) const;
int indexOf(QWidget *widget) const override { return QLayout::indexOf(widget); }
using QLayout::indexOf; // bring back the hidden members
bool layoutActions(const QSize &size);
QSize expandedSize(const QSize &size) const;