forked from qt-creator/qt-creator
Utils: Centralize style-related property names as constants
This introduces string constants in Utils::StyleHelper. They are used by code all over in Qt Creator to tell ManhattanStyle how to paint certain widgets. Change-Id: Iecca36103f80084cd5fe93fcb6b18b8fbb3a32bb Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/progressmanager/progressmanager.h>
|
||||
#include <debugger/analyzer/analyzerconstants.h>
|
||||
|
||||
#include <utils/stylehelper.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
#include <QAction>
|
||||
@@ -64,7 +66,7 @@ CtfVisualizerTool::CtfVisualizerTool()
|
||||
m_restrictToThreadsButton->setIcon(Utils::Icons::FILTER.icon());
|
||||
m_restrictToThreadsButton->setToolTip(Tr::tr("Restrict to Threads"));
|
||||
m_restrictToThreadsButton->setPopupMode(QToolButton::InstantPopup);
|
||||
m_restrictToThreadsButton->setProperty("noArrow", true);
|
||||
m_restrictToThreadsButton->setProperty(Utils::StyleHelper::C_NO_ARROW, true);
|
||||
m_restrictToThreadsButton->setMenu(m_restrictToThreadsMenu);
|
||||
connect(m_restrictToThreadsMenu, &QMenu::triggered,
|
||||
this, &CtfVisualizerTool::toggleThreadRestriction);
|
||||
|
||||
Reference in New Issue
Block a user