forked from qt-creator/qt-creator
Icon refresh: First step towards the new Qt Creator themes
http://blog.qt.io/blog/author/didesous/ announced new designs/themes for Qt Creator. This patch replaces many of the existing toolbar icons with recolorizable masks for better theming support. Change-Id: I557aa485205fe2624f33724226f698c303342b40 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/themehelper.h>
|
||||
|
||||
#include <QtPlugin>
|
||||
#include <QCoreApplication>
|
||||
@@ -248,7 +249,8 @@ void ValgrindPlugin::extensionsInitialized()
|
||||
editorContextMenu->addSeparator(analyzerContext);
|
||||
|
||||
QAction *action = new QAction(tr("Profile Costs of This Function and Its Callees"), this);
|
||||
action->setIcon(QIcon(QLatin1String(Analyzer::Constants::ANALYZER_CONTROL_START_ICON)));
|
||||
action->setIcon(Utils::ThemeHelper::themedIcon(
|
||||
QLatin1String(Analyzer::Constants::ANALYZER_CONTROL_START_ICON)));
|
||||
connect(action, &QAction::triggered, cgTool,
|
||||
&CallgrindTool::handleShowCostsOfFunction);
|
||||
Command *cmd = ActionManager::registerAction(action, "Analyzer.Callgrind.ShowCostsOfFunction",
|
||||
|
||||
Reference in New Issue
Block a user