forked from qt-creator/qt-creator
Avoid overloading superclass method
IOutputPane has an updateFilter method now, so rename the one in the TODO output pane. Change-Id: I0e6291372c83373b82d0d9911feffe032df8af5e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -91,7 +91,7 @@ int TodoOutputPane::priorityInStatusBar() const
|
||||
|
||||
void TodoOutputPane::clearContents()
|
||||
{
|
||||
clearFilter();
|
||||
clearKeywordFilter();
|
||||
}
|
||||
|
||||
void TodoOutputPane::visibilityChanged(bool visible)
|
||||
@@ -190,7 +190,7 @@ void TodoOutputPane::updateTodoCount()
|
||||
emit setBadgeNumber(m_todoTreeView->model()->rowCount());
|
||||
}
|
||||
|
||||
void TodoOutputPane::updateFilter()
|
||||
void TodoOutputPane::updateKeywordFilter()
|
||||
{
|
||||
QStringList keywords;
|
||||
for (const QToolButton *btn: qAsConst(m_filterButtons)) {
|
||||
@@ -208,12 +208,12 @@ void TodoOutputPane::updateFilter()
|
||||
updateTodoCount();
|
||||
}
|
||||
|
||||
void TodoOutputPane::clearFilter()
|
||||
void TodoOutputPane::clearKeywordFilter()
|
||||
{
|
||||
for (QToolButton *btn: qAsConst(m_filterButtons))
|
||||
btn->setChecked(false);
|
||||
|
||||
updateFilter();
|
||||
updateKeywordFilter();
|
||||
}
|
||||
|
||||
void TodoOutputPane::createTreeView()
|
||||
@@ -282,7 +282,7 @@ void TodoOutputPane::createScopeButtons()
|
||||
QToolButton *button = createCheckableToolButton(keyword.name, tooltip.arg(keyword.name), toolBarIcon(keyword.iconType));
|
||||
button->setProperty(Constants::FILTER_KEYWORD_NAME, keyword.name);
|
||||
button->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
||||
connect(button, &QToolButton::clicked, this, &TodoOutputPane::updateFilter);
|
||||
connect(button, &QToolButton::clicked, this, &TodoOutputPane::updateKeywordFilter);
|
||||
|
||||
m_filterButtons.append(button);
|
||||
}
|
||||
|
@@ -80,8 +80,8 @@ private:
|
||||
void scopeButtonClicked(QAbstractButton *button);
|
||||
void todoTreeViewClicked(const QModelIndex &index);
|
||||
void updateTodoCount();
|
||||
void updateFilter();
|
||||
void clearFilter();
|
||||
void updateKeywordFilter();
|
||||
void clearKeywordFilter();
|
||||
|
||||
void createTreeView();
|
||||
void freeTreeView();
|
||||
|
Reference in New Issue
Block a user