forked from qt-creator/qt-creator
ProjectExplorer: Fix warning about unused parameter ‘index’
Change-Id: I5a2643ceeaa262c151cad991803a425e7ad00957 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -692,7 +692,7 @@ public:
|
||||
m_projectPath->setText(displayPath);
|
||||
}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index)
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option)
|
||||
{
|
||||
const bool hovered = option.widget->isActiveWindow()
|
||||
&& option.state & QStyle::State_MouseOver;
|
||||
@@ -732,11 +732,11 @@ public:
|
||||
const override
|
||||
{
|
||||
m_itemWidget.setData(index);
|
||||
m_itemWidget.paint(painter, option, index);
|
||||
m_itemWidget.paint(painter, option);
|
||||
}
|
||||
|
||||
QSize sizeHint([[maybe_unused]] const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override
|
||||
[[maybe_unused]] const QModelIndex &index) const override
|
||||
{
|
||||
return {-1, m_itemWidget.minimumSizeHint().height() + itemSpacing()};
|
||||
}
|
||||
|
Reference in New Issue
Block a user