forked from qt-creator/qt-creator
Todo: Use "toolbar" style icons in the toolbar
For consistency reasons (see "Debugger Console" tool bar), we should use the *_TOOLBAR icon variants for toolbars. On the other hand, we should use the icons without *_TOOLBAR for non-toolbar icos (todo list view items). Change-Id: I17e7408488112e527c166019341b570ba0f88f10 Reviewed-by: Serhii Moroz <frost.asm@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -279,7 +279,7 @@ void TodoOutputPane::createScopeButtons()
|
||||
|
||||
QString tooltip = tr("Show \"%1\" entries");
|
||||
for (const Keyword &keyword: m_settings->keywords) {
|
||||
QToolButton *button = createCheckableToolButton(keyword.name, tooltip.arg(keyword.name), icon(keyword.iconType));
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user