forked from qt-creator/qt-creator
Theme: Separate run/stop/interrupt icons in menus
And for that, we also need separate theme color roles. Change-Id: I27bf4499acb516f7f824f5e57632797653b150ec Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -58,9 +58,12 @@ IconsWarningToolBarColor=ffe0b716
|
|||||||
IconsErrorColor=ffd84044
|
IconsErrorColor=ffd84044
|
||||||
IconsErrorToolBarColor=ffd84044
|
IconsErrorToolBarColor=ffd84044
|
||||||
IconsRunColor=ff7fc341
|
IconsRunColor=ff7fc341
|
||||||
|
IconsRunToolBarColor=ff7fc341
|
||||||
IconsStopColor=ffe7353b
|
IconsStopColor=ffe7353b
|
||||||
IconsDebugColor=ffb8c6ff
|
IconsStopToolBarColor=ffe7353b
|
||||||
IconsInterruptColor=ff7488db
|
IconsInterruptColor=ff7488db
|
||||||
|
IconsInterruptToolBarColor=ff7488db
|
||||||
|
IconsDebugColor=ffb8c6ff
|
||||||
IconsNavigationArrowsColor=ffebc322
|
IconsNavigationArrowsColor=ffebc322
|
||||||
IconsBuildHammerHandleColor=ffdd7710
|
IconsBuildHammerHandleColor=ffdd7710
|
||||||
IconsBuildHammerHeadColor=ff989898
|
IconsBuildHammerHeadColor=ff989898
|
||||||
|
@@ -51,10 +51,13 @@ IconsWarningColor=ffecbc1c
|
|||||||
IconsWarningToolBarColor=fff2d76e
|
IconsWarningToolBarColor=fff2d76e
|
||||||
IconsErrorColor=ffdf4f4f
|
IconsErrorColor=ffdf4f4f
|
||||||
IconsErrorToolBarColor=ffdb6f71
|
IconsErrorToolBarColor=ffdb6f71
|
||||||
IconsRunColor=ffa4d576
|
IconsRunColor=ff6da838
|
||||||
IconsStopColor=ffff8c8c
|
IconsRunToolBarColor=ffa4d576
|
||||||
|
IconsStopColor=ffee6969
|
||||||
|
IconsStopToolBarColor=ffff8c8c
|
||||||
|
IconsInterruptColor=ff587ff7
|
||||||
|
IconsInterruptToolBarColor=ff8f9dda
|
||||||
IconsDebugColor=ffdcdcdc
|
IconsDebugColor=ffdcdcdc
|
||||||
IconsInterruptColor=ff8f9dda
|
|
||||||
IconsNavigationArrowsColor=ffebc322
|
IconsNavigationArrowsColor=ffebc322
|
||||||
IconsBuildHammerHandleColor=ffdd7710
|
IconsBuildHammerHandleColor=ffdd7710
|
||||||
IconsBuildHammerHeadColor=ff989898
|
IconsBuildHammerHeadColor=ff989898
|
||||||
|
@@ -61,10 +61,13 @@ IconsWarningColor=ffecbc1c
|
|||||||
IconsWarningToolBarColor=fff2d76e
|
IconsWarningToolBarColor=fff2d76e
|
||||||
IconsErrorColor=ffdf4f4f
|
IconsErrorColor=ffdf4f4f
|
||||||
IconsErrorToolBarColor=ffdb6f71
|
IconsErrorToolBarColor=ffdb6f71
|
||||||
IconsRunColor=ff93be6c
|
IconsRunColor=ff6da838
|
||||||
IconsStopColor=ffe27f7f
|
IconsRunToolBarColor=ff93be6c
|
||||||
|
IconsStopColor=ffee6969
|
||||||
|
IconsStopToolBarColor=ffe27f7f
|
||||||
|
IconsInterruptColor=ff587ff7
|
||||||
|
IconsInterruptToolBarColor=ff6a7bc3
|
||||||
IconsDebugColor=toolBarItem
|
IconsDebugColor=toolBarItem
|
||||||
IconsInterruptColor=ff6a7bc3
|
|
||||||
IconsNavigationArrowsColor=ffebc322
|
IconsNavigationArrowsColor=ffebc322
|
||||||
IconsBuildHammerHandleColor=ffc26b14
|
IconsBuildHammerHandleColor=ffc26b14
|
||||||
IconsBuildHammerHeadColor=ff868687
|
IconsBuildHammerHeadColor=ff868687
|
||||||
|
@@ -91,7 +91,7 @@ static const QIcon &icon(IconIndex icon)
|
|||||||
case OkIcon: {
|
case OkIcon: {
|
||||||
static const QIcon ok =
|
static const QIcon ok =
|
||||||
Icon({{QLatin1String(":/extensionsystem/images/ok.png"),
|
Icon({{QLatin1String(":/extensionsystem/images/ok.png"),
|
||||||
Theme::IconsRunColor}}, Icon::Tint).icon();
|
Theme::IconsRunToolBarColor}}, Icon::Tint).icon();
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
case ErrorIcon: {
|
case ErrorIcon: {
|
||||||
|
@@ -52,7 +52,8 @@ public:
|
|||||||
DropShadow = 2,
|
DropShadow = 2,
|
||||||
PunchEdges = 4,
|
PunchEdges = 4,
|
||||||
|
|
||||||
ToolBarStyle = Tint | DropShadow | PunchEdges
|
ToolBarStyle = Tint | DropShadow | PunchEdges,
|
||||||
|
MenuTintedStyle = Tint | PunchEdges
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_FLAGS(IconStyleOptions, IconStyleOption)
|
Q_DECLARE_FLAGS(IconStyleOptions, IconStyleOption)
|
||||||
|
@@ -137,8 +137,11 @@ public:
|
|||||||
IconsErrorColor,
|
IconsErrorColor,
|
||||||
IconsErrorToolBarColor,
|
IconsErrorToolBarColor,
|
||||||
IconsRunColor,
|
IconsRunColor,
|
||||||
|
IconsRunToolBarColor,
|
||||||
IconsStopColor,
|
IconsStopColor,
|
||||||
|
IconsStopToolBarColor,
|
||||||
IconsInterruptColor,
|
IconsInterruptColor,
|
||||||
|
IconsInterruptToolBarColor,
|
||||||
IconsDebugColor,
|
IconsDebugColor,
|
||||||
IconsNavigationArrowsColor,
|
IconsNavigationArrowsColor,
|
||||||
IconsBuildHammerHandleColor,
|
IconsBuildHammerHandleColor,
|
||||||
|
@@ -44,7 +44,7 @@ AndroidRunControl::AndroidRunControl(AndroidRunConfiguration *rc)
|
|||||||
, m_running(false)
|
, m_running(false)
|
||||||
{
|
{
|
||||||
setRunnable(m_runner->runnable());
|
setRunnable(m_runner->runnable());
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
AndroidRunControl::~AndroidRunControl()
|
AndroidRunControl::~AndroidRunControl()
|
||||||
|
@@ -158,13 +158,13 @@ void TestResultsPane::createToolButtons()
|
|||||||
});
|
});
|
||||||
|
|
||||||
m_runAll = new QToolButton(m_treeView);
|
m_runAll = new QToolButton(m_treeView);
|
||||||
m_runAll->setIcon(Core::Icons::RUN_SMALL.icon());
|
m_runAll->setIcon(Core::Icons::RUN_SMALL_TOOLBAR.icon());
|
||||||
m_runAll->setToolTip(tr("Run All Tests"));
|
m_runAll->setToolTip(tr("Run All Tests"));
|
||||||
m_runAll->setEnabled(false);
|
m_runAll->setEnabled(false);
|
||||||
connect(m_runAll, &QToolButton::clicked, this, &TestResultsPane::onRunAllTriggered);
|
connect(m_runAll, &QToolButton::clicked, this, &TestResultsPane::onRunAllTriggered);
|
||||||
|
|
||||||
m_runSelected = new QToolButton(m_treeView);
|
m_runSelected = new QToolButton(m_treeView);
|
||||||
Utils::Icon runSelectedIcon = Core::Icons::RUN_SMALL;
|
Utils::Icon runSelectedIcon = Core::Icons::RUN_SMALL_TOOLBAR;
|
||||||
foreach (const Utils::IconMaskAndColor &maskAndColor, Icons::RUN_SELECTED_OVERLAY)
|
foreach (const Utils::IconMaskAndColor &maskAndColor, Icons::RUN_SELECTED_OVERLAY)
|
||||||
runSelectedIcon.append(maskAndColor);
|
runSelectedIcon.append(maskAndColor);
|
||||||
m_runSelected->setIcon(runSelectedIcon.icon());
|
m_runSelected->setIcon(runSelectedIcon.icon());
|
||||||
@@ -173,7 +173,7 @@ void TestResultsPane::createToolButtons()
|
|||||||
connect(m_runSelected, &QToolButton::clicked, this, &TestResultsPane::onRunSelectedTriggered);
|
connect(m_runSelected, &QToolButton::clicked, this, &TestResultsPane::onRunSelectedTriggered);
|
||||||
|
|
||||||
m_stopTestRun = new QToolButton(m_treeView);
|
m_stopTestRun = new QToolButton(m_treeView);
|
||||||
m_stopTestRun->setIcon(Core::Icons::STOP_SMALL.icon());
|
m_stopTestRun->setIcon(Core::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||||
m_stopTestRun->setToolTip(tr("Stop Test Run"));
|
m_stopTestRun->setToolTip(tr("Stop Test Run"));
|
||||||
m_stopTestRun->setEnabled(false);
|
m_stopTestRun->setEnabled(false);
|
||||||
connect(m_stopTestRun, &QToolButton::clicked, TestRunner::instance(), &TestRunner::requestStopTestRun);
|
connect(m_stopTestRun, &QToolButton::clicked, TestRunner::instance(), &TestRunner::requestStopTestRun);
|
||||||
|
@@ -123,7 +123,7 @@ ClangStaticAnalyzerTool::ClangStaticAnalyzerTool(QObject *parent)
|
|||||||
// Go to previous diagnostic
|
// Go to previous diagnostic
|
||||||
auto action = new QAction(this);
|
auto action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::PREV.icon());
|
action->setIcon(Core::Icons::PREV_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go to previous bug."));
|
action->setToolTip(tr("Go to previous bug."));
|
||||||
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goBack);
|
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goBack);
|
||||||
m_goBack = action;
|
m_goBack = action;
|
||||||
@@ -131,7 +131,7 @@ ClangStaticAnalyzerTool::ClangStaticAnalyzerTool(QObject *parent)
|
|||||||
// Go to next diagnostic
|
// Go to next diagnostic
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::NEXT.icon());
|
action->setIcon(Core::Icons::NEXT_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go to next bug."));
|
action->setToolTip(tr("Go to next bug."));
|
||||||
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext);
|
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext);
|
||||||
m_goNext = action;
|
m_goNext = action;
|
||||||
|
@@ -84,8 +84,12 @@ const Icon MINUS({
|
|||||||
const Icon PLUS({
|
const Icon PLUS({
|
||||||
{QLatin1String(":/core/images/plus.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/plus.png"), Theme::IconsBaseColor}});
|
||||||
const Icon NEXT({
|
const Icon NEXT({
|
||||||
|
{QLatin1String(":/core/images/next.png"), Theme::IconsWarningColor}}, Icon::MenuTintedStyle);
|
||||||
|
const Icon NEXT_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/next.png"), Theme::IconsNavigationArrowsColor}});
|
{QLatin1String(":/core/images/next.png"), Theme::IconsNavigationArrowsColor}});
|
||||||
const Icon PREV({
|
const Icon PREV({
|
||||||
|
{QLatin1String(":/core/images/prev.png"), Theme::IconsWarningColor}}, Icon::MenuTintedStyle);
|
||||||
|
const Icon PREV_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/prev.png"), Theme::IconsNavigationArrowsColor}});
|
{QLatin1String(":/core/images/prev.png"), Theme::IconsNavigationArrowsColor}});
|
||||||
const Icon MAGNIFIER({
|
const Icon MAGNIFIER({
|
||||||
{QLatin1String(":/core/images/magnifier.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
{QLatin1String(":/core/images/magnifier.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||||
@@ -94,6 +98,8 @@ const Icon CLEAN_PANE({
|
|||||||
const Icon RELOAD({
|
const Icon RELOAD({
|
||||||
{QLatin1String(":/core/images/reload_gray.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/reload_gray.png"), Theme::IconsBaseColor}});
|
||||||
const Icon TOGGLE_SIDEBAR({
|
const Icon TOGGLE_SIDEBAR({
|
||||||
|
{QLatin1String(":/core/images/sidebaricon.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||||
|
const Icon TOGGLE_SIDEBAR_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/sidebaricon.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/sidebaricon.png"), Theme::IconsBaseColor}});
|
||||||
const Icon CLOSE_TOOLBAR({
|
const Icon CLOSE_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/close.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/close.png"), Theme::IconsBaseColor}});
|
||||||
@@ -102,8 +108,12 @@ const Icon CLOSE_FOREGROUND({
|
|||||||
const Icon CLOSE_BACKGROUND({
|
const Icon CLOSE_BACKGROUND({
|
||||||
{QLatin1String(":/core/images/close.png"), Theme::PanelTextColorLight}}, Icon::Tint);
|
{QLatin1String(":/core/images/close.png"), Theme::PanelTextColorLight}}, Icon::Tint);
|
||||||
const Icon SPLIT_HORIZONTAL({
|
const Icon SPLIT_HORIZONTAL({
|
||||||
|
{QLatin1String(":/core/images/splitbutton_horizontal.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||||
|
const Icon SPLIT_HORIZONTAL_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/splitbutton_horizontal.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/splitbutton_horizontal.png"), Theme::IconsBaseColor}});
|
||||||
const Icon SPLIT_VERTICAL({
|
const Icon SPLIT_VERTICAL({
|
||||||
|
{QLatin1String(":/core/images/splitbutton_vertical.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||||
|
const Icon SPLIT_VERTICAL_TOOLBAR({
|
||||||
{QLatin1String(":/core/images/splitbutton_vertical.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/splitbutton_vertical.png"), Theme::IconsBaseColor}});
|
||||||
const Icon CLOSE_SPLIT_TOP({
|
const Icon CLOSE_SPLIT_TOP({
|
||||||
{QLatin1String(":/core/images/splitbutton_closetop.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/splitbutton_closetop.png"), Theme::IconsBaseColor}});
|
||||||
@@ -143,11 +153,17 @@ const Icon ZOOM_TOOLBAR({
|
|||||||
const Icon TOOLBAR_EXTENSION({
|
const Icon TOOLBAR_EXTENSION({
|
||||||
{QLatin1String(":/core/images/extension.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/extension.png"), Theme::IconsBaseColor}});
|
||||||
const Utils::Icon RUN_SMALL({
|
const Utils::Icon RUN_SMALL({
|
||||||
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor}});
|
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon RUN_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor}});
|
||||||
const Utils::Icon STOP_SMALL({
|
const Utils::Icon STOP_SMALL({
|
||||||
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopColor}});
|
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopColor}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon STOP_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopToolBarColor}});
|
||||||
const Utils::Icon INTERRUPT_SMALL({
|
const Utils::Icon INTERRUPT_SMALL({
|
||||||
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor}});
|
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon INTERRUPT_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptToolBarColor}});
|
||||||
const Icon BOUNDING_RECT({
|
const Icon BOUNDING_RECT({
|
||||||
{QLatin1String(":/core/images/boundingrect.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/core/images/boundingrect.png"), Theme::IconsBaseColor}});
|
||||||
const Icon EYE_OPEN_TOOLBAR({
|
const Icon EYE_OPEN_TOOLBAR({
|
||||||
|
@@ -61,16 +61,21 @@ CORE_EXPORT extern const Utils::Icon ARROW_DOWN;
|
|||||||
CORE_EXPORT extern const Utils::Icon MINUS;
|
CORE_EXPORT extern const Utils::Icon MINUS;
|
||||||
CORE_EXPORT extern const Utils::Icon PLUS;
|
CORE_EXPORT extern const Utils::Icon PLUS;
|
||||||
CORE_EXPORT extern const Utils::Icon NEXT;
|
CORE_EXPORT extern const Utils::Icon NEXT;
|
||||||
|
CORE_EXPORT extern const Utils::Icon NEXT_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon PREV;
|
CORE_EXPORT extern const Utils::Icon PREV;
|
||||||
|
CORE_EXPORT extern const Utils::Icon PREV_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon MAGNIFIER;
|
CORE_EXPORT extern const Utils::Icon MAGNIFIER;
|
||||||
CORE_EXPORT extern const Utils::Icon CLEAN_PANE;
|
CORE_EXPORT extern const Utils::Icon CLEAN_PANE;
|
||||||
CORE_EXPORT extern const Utils::Icon RELOAD;
|
CORE_EXPORT extern const Utils::Icon RELOAD;
|
||||||
CORE_EXPORT extern const Utils::Icon TOGGLE_SIDEBAR;
|
CORE_EXPORT extern const Utils::Icon TOGGLE_SIDEBAR;
|
||||||
|
CORE_EXPORT extern const Utils::Icon TOGGLE_SIDEBAR_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_TOOLBAR;
|
CORE_EXPORT extern const Utils::Icon CLOSE_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_FOREGROUND;
|
CORE_EXPORT extern const Utils::Icon CLOSE_FOREGROUND;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_BACKGROUND;
|
CORE_EXPORT extern const Utils::Icon CLOSE_BACKGROUND;
|
||||||
CORE_EXPORT extern const Utils::Icon SPLIT_HORIZONTAL;
|
CORE_EXPORT extern const Utils::Icon SPLIT_HORIZONTAL;
|
||||||
|
CORE_EXPORT extern const Utils::Icon SPLIT_HORIZONTAL_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon SPLIT_VERTICAL;
|
CORE_EXPORT extern const Utils::Icon SPLIT_VERTICAL;
|
||||||
|
CORE_EXPORT extern const Utils::Icon SPLIT_VERTICAL_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_TOP;
|
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_TOP;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_BOTTOM;
|
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_BOTTOM;
|
||||||
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_LEFT;
|
CORE_EXPORT extern const Utils::Icon CLOSE_SPLIT_LEFT;
|
||||||
@@ -89,8 +94,11 @@ CORE_EXPORT extern const Utils::Icon ZOOM;
|
|||||||
CORE_EXPORT extern const Utils::Icon ZOOM_TOOLBAR;
|
CORE_EXPORT extern const Utils::Icon ZOOM_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon TOOLBAR_EXTENSION;
|
CORE_EXPORT extern const Utils::Icon TOOLBAR_EXTENSION;
|
||||||
CORE_EXPORT extern const Utils::Icon RUN_SMALL;
|
CORE_EXPORT extern const Utils::Icon RUN_SMALL;
|
||||||
|
CORE_EXPORT extern const Utils::Icon RUN_SMALL_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon STOP_SMALL;
|
CORE_EXPORT extern const Utils::Icon STOP_SMALL;
|
||||||
|
CORE_EXPORT extern const Utils::Icon STOP_SMALL_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon INTERRUPT_SMALL;
|
CORE_EXPORT extern const Utils::Icon INTERRUPT_SMALL;
|
||||||
|
CORE_EXPORT extern const Utils::Icon INTERRUPT_SMALL_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon BOUNDING_RECT;
|
CORE_EXPORT extern const Utils::Icon BOUNDING_RECT;
|
||||||
CORE_EXPORT extern const Utils::Icon EYE_OPEN_TOOLBAR;
|
CORE_EXPORT extern const Utils::Icon EYE_OPEN_TOOLBAR;
|
||||||
CORE_EXPORT extern const Utils::Icon EYE_CLOSED_TOOLBAR;
|
CORE_EXPORT extern const Utils::Icon EYE_CLOSED_TOOLBAR;
|
||||||
|
@@ -208,8 +208,8 @@ EditorManagerPrivate::EditorManagerPrivate(QObject *parent) :
|
|||||||
m_closeAllEditorsExceptVisibleAction(new QAction(EditorManager::tr("Close All Except Visible"), this)),
|
m_closeAllEditorsExceptVisibleAction(new QAction(EditorManager::tr("Close All Except Visible"), this)),
|
||||||
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), this)),
|
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), this)),
|
||||||
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), this)),
|
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), this)),
|
||||||
m_goBackAction(new QAction(Icons::PREV.icon(), EditorManager::tr("Go Back"), this)),
|
m_goBackAction(new QAction(Icons::PREV_TOOLBAR.icon(), EditorManager::tr("Go Back"), this)),
|
||||||
m_goForwardAction(new QAction(Icons::NEXT.icon(), EditorManager::tr("Go Forward"), this)),
|
m_goForwardAction(new QAction(Icons::NEXT_TOOLBAR.icon(), EditorManager::tr("Go Forward"), this)),
|
||||||
m_copyFilePathContextAction(new QAction(EditorManager::tr("Copy Full Path"), this)),
|
m_copyFilePathContextAction(new QAction(EditorManager::tr("Copy Full Path"), this)),
|
||||||
m_copyLocationContextAction(new QAction(EditorManager::tr("Copy Path and Line Number"), this)),
|
m_copyLocationContextAction(new QAction(EditorManager::tr("Copy Path and Line Number"), this)),
|
||||||
m_copyFileNameContextAction(new QAction(EditorManager::tr("Copy File Name"), this)),
|
m_copyFileNameContextAction(new QAction(EditorManager::tr("Copy File Name"), this)),
|
||||||
|
@@ -94,13 +94,13 @@ EditorToolBarPrivate::EditorToolBarPrivate(QWidget *parent, EditorToolBar *q) :
|
|||||||
m_lockButton(new QToolButton(q)),
|
m_lockButton(new QToolButton(q)),
|
||||||
m_dragHandle(new QToolButton(q)),
|
m_dragHandle(new QToolButton(q)),
|
||||||
m_dragHandleMenu(0),
|
m_dragHandleMenu(0),
|
||||||
m_goBackAction(new QAction(Icons::PREV.icon(), EditorManager::tr("Go Back"), parent)),
|
m_goBackAction(new QAction(Icons::PREV_TOOLBAR.icon(), EditorManager::tr("Go Back"), parent)),
|
||||||
m_goForwardAction(new QAction(Icons::NEXT.icon(), EditorManager::tr("Go Forward"), parent)),
|
m_goForwardAction(new QAction(Icons::NEXT_TOOLBAR.icon(), EditorManager::tr("Go Forward"), parent)),
|
||||||
m_backButton(new QToolButton(q)),
|
m_backButton(new QToolButton(q)),
|
||||||
m_forwardButton(new QToolButton(q)),
|
m_forwardButton(new QToolButton(q)),
|
||||||
m_splitButton(new QToolButton(q)),
|
m_splitButton(new QToolButton(q)),
|
||||||
m_horizontalSplitAction(new QAction(Icons::SPLIT_HORIZONTAL.icon(), EditorManager::tr("Split"), parent)),
|
m_horizontalSplitAction(new QAction(Icons::SPLIT_HORIZONTAL_TOOLBAR.icon(), EditorManager::tr("Split"), parent)),
|
||||||
m_verticalSplitAction(new QAction(Icons::SPLIT_VERTICAL.icon(), EditorManager::tr("Split Side by Side"), parent)),
|
m_verticalSplitAction(new QAction(Icons::SPLIT_VERTICAL_TOOLBAR.icon(), EditorManager::tr("Split Side by Side"), parent)),
|
||||||
m_splitNewWindowAction(new QAction(EditorManager::tr("Open in New Window"), parent)),
|
m_splitNewWindowAction(new QAction(EditorManager::tr("Open in New Window"), parent)),
|
||||||
m_closeSplitButton(new QToolButton(q)),
|
m_closeSplitButton(new QToolButton(q)),
|
||||||
m_activeToolBar(0),
|
m_activeToolBar(0),
|
||||||
@@ -163,7 +163,7 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
|||||||
d->m_splitNewWindowAction->setIconVisibleInMenu(false);
|
d->m_splitNewWindowAction->setIconVisibleInMenu(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
d->m_splitButton->setIcon(Icons::SPLIT_HORIZONTAL.icon());
|
d->m_splitButton->setIcon(Icons::SPLIT_HORIZONTAL_TOOLBAR.icon());
|
||||||
d->m_splitButton->setToolTip(tr("Split"));
|
d->m_splitButton->setToolTip(tr("Split"));
|
||||||
d->m_splitButton->setPopupMode(QToolButton::InstantPopup);
|
d->m_splitButton->setPopupMode(QToolButton::InstantPopup);
|
||||||
d->m_splitButton->setProperty("noArrow", true);
|
d->m_splitButton->setProperty("noArrow", true);
|
||||||
|
@@ -963,9 +963,9 @@ void FindToolBar::setLightColoredIcon(bool lightColored)
|
|||||||
m_ui.findPreviousButton->setArrowType(Qt::LeftArrow);
|
m_ui.findPreviousButton->setArrowType(Qt::LeftArrow);
|
||||||
m_ui.close->setIcon(Icons::CLOSE_FOREGROUND.icon());
|
m_ui.close->setIcon(Icons::CLOSE_FOREGROUND.icon());
|
||||||
} else {
|
} else {
|
||||||
m_ui.findNextButton->setIcon(Icons::NEXT.icon());
|
m_ui.findNextButton->setIcon(Icons::NEXT_TOOLBAR.icon());
|
||||||
m_ui.findNextButton->setArrowType(Qt::NoArrow);
|
m_ui.findNextButton->setArrowType(Qt::NoArrow);
|
||||||
m_ui.findPreviousButton->setIcon(Icons::PREV.icon());
|
m_ui.findPreviousButton->setIcon(Icons::PREV_TOOLBAR.icon());
|
||||||
m_ui.findPreviousButton->setArrowType(Qt::NoArrow);
|
m_ui.findPreviousButton->setArrowType(Qt::NoArrow);
|
||||||
m_ui.close->setIcon(Icons::CLOSE_TOOLBAR.icon());
|
m_ui.close->setIcon(Icons::CLOSE_TOOLBAR.icon());
|
||||||
}
|
}
|
||||||
|
@@ -27,9 +27,8 @@
|
|||||||
#include "locatorfiltersfilter.h"
|
#include "locatorfiltersfilter.h"
|
||||||
#include "locatorwidget.h"
|
#include "locatorwidget.h"
|
||||||
|
|
||||||
#include <utils/icon.h>
|
#include <coreplugin/coreicons.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/theme/theme.h>
|
|
||||||
|
|
||||||
using namespace Core;
|
using namespace Core;
|
||||||
using namespace Core::Internal;
|
using namespace Core::Internal;
|
||||||
@@ -40,8 +39,7 @@ LocatorFiltersFilter::LocatorFiltersFilter(Locator *plugin,
|
|||||||
LocatorWidget *locatorWidget):
|
LocatorWidget *locatorWidget):
|
||||||
m_plugin(plugin),
|
m_plugin(plugin),
|
||||||
m_locatorWidget(locatorWidget),
|
m_locatorWidget(locatorWidget),
|
||||||
m_icon(Utils::Icon({{QLatin1String(":/core/images/next.png"), Utils::Theme::IconsWarningColor}},
|
m_icon(Icons::NEXT.icon())
|
||||||
Utils::Icon::Tint).pixmap())
|
|
||||||
{
|
{
|
||||||
setId("FiltersFilter");
|
setId("FiltersFilter");
|
||||||
setDisplayName(tr("Available filters"));
|
setDisplayName(tr("Available filters"));
|
||||||
|
@@ -691,7 +691,7 @@ void MainWindow::registerDefaultActions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show Sidebar Action
|
// Show Sidebar Action
|
||||||
m_toggleSideBarAction = new QAction(Icons::TOGGLE_SIDEBAR.icon(),
|
m_toggleSideBarAction = new QAction(Icons::TOGGLE_SIDEBAR_TOOLBAR.icon(),
|
||||||
QCoreApplication::translate("Core", Constants::TR_SHOW_SIDEBAR),
|
QCoreApplication::translate("Core", Constants::TR_SHOW_SIDEBAR),
|
||||||
this);
|
this);
|
||||||
m_toggleSideBarAction->setCheckable(true);
|
m_toggleSideBarAction->setCheckable(true);
|
||||||
|
@@ -69,7 +69,7 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget, int pos
|
|||||||
toolBarLayout->addWidget(m_navigationComboBox);
|
toolBarLayout->addWidget(m_navigationComboBox);
|
||||||
|
|
||||||
QToolButton *splitAction = new QToolButton();
|
QToolButton *splitAction = new QToolButton();
|
||||||
splitAction->setIcon(Icons::SPLIT_HORIZONTAL.icon());
|
splitAction->setIcon(Icons::SPLIT_HORIZONTAL_TOOLBAR.icon());
|
||||||
splitAction->setToolTip(tr("Split"));
|
splitAction->setToolTip(tr("Split"));
|
||||||
splitAction->setPopupMode(QToolButton::InstantPopup);
|
splitAction->setPopupMode(QToolButton::InstantPopup);
|
||||||
splitAction->setProperty("noArrow", true);
|
splitAction->setProperty("noArrow", true);
|
||||||
|
@@ -145,12 +145,12 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
connect(m_clearAction, &QAction::triggered, this, &OutputPaneManager::clearPage);
|
connect(m_clearAction, &QAction::triggered, this, &OutputPaneManager::clearPage);
|
||||||
|
|
||||||
m_nextAction = new QAction(this);
|
m_nextAction = new QAction(this);
|
||||||
m_nextAction->setIcon(Icons::NEXT.icon());
|
m_nextAction->setIcon(Icons::NEXT_TOOLBAR.icon());
|
||||||
m_nextAction->setText(tr("Next Item"));
|
m_nextAction->setText(tr("Next Item"));
|
||||||
connect(m_nextAction, &QAction::triggered, this, &OutputPaneManager::slotNext);
|
connect(m_nextAction, &QAction::triggered, this, &OutputPaneManager::slotNext);
|
||||||
|
|
||||||
m_prevAction = new QAction(this);
|
m_prevAction = new QAction(this);
|
||||||
m_prevAction->setIcon(Icons::PREV.icon());
|
m_prevAction->setIcon(Icons::PREV_TOOLBAR.icon());
|
||||||
m_prevAction->setText(tr("Previous Item"));
|
m_prevAction->setText(tr("Previous Item"));
|
||||||
connect(m_prevAction, &QAction::triggered, this, &OutputPaneManager::slotPrev);
|
connect(m_prevAction, &QAction::triggered, this, &OutputPaneManager::slotPrev);
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ SideBarWidget::SideBarWidget(SideBar *sideBar, const QString &id)
|
|||||||
|
|
||||||
m_splitAction = new QAction(tr("Split"), m_toolbar);
|
m_splitAction = new QAction(tr("Split"), m_toolbar);
|
||||||
m_splitAction->setToolTip(tr("Split"));
|
m_splitAction->setToolTip(tr("Split"));
|
||||||
m_splitAction->setIcon(Icons::SPLIT_HORIZONTAL.icon());
|
m_splitAction->setIcon(Icons::SPLIT_HORIZONTAL_TOOLBAR.icon());
|
||||||
connect(m_splitAction, &QAction::triggered, this, &SideBarWidget::splitMe);
|
connect(m_splitAction, &QAction::triggered, this, &SideBarWidget::splitMe);
|
||||||
m_toolbar->addAction(m_splitAction);
|
m_toolbar->addAction(m_splitAction);
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ namespace Debugger {
|
|||||||
namespace Icons {
|
namespace Icons {
|
||||||
|
|
||||||
const Utils::Icon ANALYZER_CONTROL_START({
|
const Utils::Icon ANALYZER_CONTROL_START({
|
||||||
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor},
|
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor},
|
||||||
{QLatin1String(":/images/analyzer_overlay_small.png"), Utils::Theme::IconsBaseColor}});
|
{QLatin1String(":/images/analyzer_overlay_small.png"), Utils::Theme::IconsBaseColor}});
|
||||||
const Utils::Icon MODE_ANALYZE_CLASSIC(
|
const Utils::Icon MODE_ANALYZE_CLASSIC(
|
||||||
QLatin1String(":/images/mode_analyze.png"));
|
QLatin1String(":/images/mode_analyze.png"));
|
||||||
|
@@ -48,23 +48,33 @@ const Utils::Icon TRACEPOINT({
|
|||||||
const Utils::Icon CONTINUE(
|
const Utils::Icon CONTINUE(
|
||||||
QLatin1String(":/debugger/images/debugger_continue.png"));
|
QLatin1String(":/debugger/images/debugger_continue.png"));
|
||||||
const Utils::Icon CONTINUE_FLAT({
|
const Utils::Icon CONTINUE_FLAT({
|
||||||
{QLatin1String(":/debugger/images/debugger_continue_1_mask.png"), Utils::Theme::IconsInterruptColor},
|
{QLatin1String(":/debugger/images/debugger_continue_1_mask.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||||
{QLatin1String(":/debugger/images/debugger_continue_2_mask.png"), Utils::Theme::IconsRunColor},
|
{QLatin1String(":/debugger/images/debugger_continue_2_mask.png"), Utils::Theme::IconsRunToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon DEBUG_CONTINUE_SMALL({
|
const Utils::Icon DEBUG_CONTINUE_SMALL({
|
||||||
{QLatin1String(":/projectexplorer/images/continue_1_small.png"), Utils::Theme::IconsInterruptColor},
|
{QLatin1String(":/projectexplorer/images/continue_1_small.png"), Utils::Theme::IconsInterruptColor},
|
||||||
{QLatin1String(":/projectexplorer/images/continue_2_small.png"), Utils::Theme::IconsRunColor},
|
{QLatin1String(":/projectexplorer/images/continue_2_small.png"), Utils::Theme::IconsRunColor},
|
||||||
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/projectexplorer/images/continue_1_small.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||||
|
{QLatin1String(":/projectexplorer/images/continue_2_small.png"), Utils::Theme::IconsRunToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon INTERRUPT(
|
const Utils::Icon INTERRUPT(
|
||||||
QLatin1String(":/debugger/images/debugger_interrupt.png"));
|
QLatin1String(":/debugger/images/debugger_interrupt.png"));
|
||||||
const Utils::Icon INTERRUPT_FLAT({
|
const Utils::Icon INTERRUPT_FLAT({
|
||||||
{QLatin1String(":/debugger/images/debugger_interrupt_mask.png"), Utils::Theme::IconsInterruptColor},
|
{QLatin1String(":/debugger/images/debugger_interrupt_mask.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon DEBUG_INTERRUPT_SMALL({
|
const Utils::Icon DEBUG_INTERRUPT_SMALL({
|
||||||
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor},
|
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor},
|
||||||
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon DEBUG_EXIT_SMALL({
|
const Utils::Icon DEBUG_EXIT_SMALL({
|
||||||
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopColor},
|
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopColor},
|
||||||
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon LOCATION({
|
const Utils::Icon LOCATION({
|
||||||
{QLatin1String(":/debugger/images/location_background.png"), Utils::Theme::IconsCodeModelOverlayForegroundColor},
|
{QLatin1String(":/debugger/images/location_background.png"), Utils::Theme::IconsCodeModelOverlayForegroundColor},
|
||||||
@@ -86,15 +96,21 @@ const Utils::Icon RECORD_OFF({
|
|||||||
{QLatin1String(":/debugger/images/recordoutline.png"), Utils::Theme::IconsBaseColor}}, Utils::Icon::Tint | Utils::Icon::DropShadow);
|
{QLatin1String(":/debugger/images/recordoutline.png"), Utils::Theme::IconsBaseColor}}, Utils::Icon::Tint | Utils::Icon::DropShadow);
|
||||||
|
|
||||||
const Utils::Icon STEP_OVER({
|
const Utils::Icon STEP_OVER({
|
||||||
|
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon STEP_OVER_TOOLBAR({
|
||||||
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::IconsBaseColor}});
|
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::IconsBaseColor}});
|
||||||
const Utils::Icon STEP_OVER_TOOLBUTTON({
|
|
||||||
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::TextColorNormal}}, Utils::Icon::Tint);
|
|
||||||
const Utils::Icon STEP_INTO({
|
const Utils::Icon STEP_INTO({
|
||||||
|
{QLatin1String(":/debugger/images/debugger_stepinto_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon STEP_INTO_TOOLBAR({
|
||||||
{QLatin1String(":/debugger/images/debugger_stepinto_small.png"), Utils::Theme::IconsBaseColor}});
|
{QLatin1String(":/debugger/images/debugger_stepinto_small.png"), Utils::Theme::IconsBaseColor}});
|
||||||
const Utils::Icon STEP_OUT({
|
const Utils::Icon STEP_OUT({
|
||||||
|
{QLatin1String(":/debugger/images/debugger_stepout_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon STEP_OUT_TOOLBAR({
|
||||||
{QLatin1String(":/debugger/images/debugger_stepout_small.png"), Utils::Theme::IconsBaseColor}});
|
{QLatin1String(":/debugger/images/debugger_stepout_small.png"), Utils::Theme::IconsBaseColor}});
|
||||||
const Utils::Icon RESTART({
|
const Utils::Icon RESTART({
|
||||||
{QLatin1String(":/debugger/images/debugger_restart_small.png"), Utils::Theme::IconsRunColor}});
|
{QLatin1String(":/debugger/images/debugger_restart_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon RESTART_TOOLBAR({
|
||||||
|
{QLatin1String(":/debugger/images/debugger_restart_small.png"), Utils::Theme::IconsRunToolBarColor}});
|
||||||
const Utils::Icon SINGLE_INSTRUCTION_MODE({
|
const Utils::Icon SINGLE_INSTRUCTION_MODE({
|
||||||
{QLatin1String(":/debugger/images/debugger_singleinstructionmode.png"), Utils::Theme::IconsBaseColor}});
|
{QLatin1String(":/debugger/images/debugger_singleinstructionmode.png"), Utils::Theme::IconsBaseColor}});
|
||||||
|
|
||||||
|
@@ -1349,14 +1349,14 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
|||||||
this, &DebuggerPluginPrivate::updateWatchersHeader, Qt::QueuedConnection);
|
this, &DebuggerPluginPrivate::updateWatchersHeader, Qt::QueuedConnection);
|
||||||
|
|
||||||
auto act = m_continueAction = new QAction(tr("Continue"), this);
|
auto act = m_continueAction = new QAction(tr("Continue"), this);
|
||||||
act->setIcon(Icon::combinedIcon({Icons::DEBUG_CONTINUE_SMALL.icon(), continueSideBarIcon}));
|
act->setIcon(Icon::combinedIcon({Icons::DEBUG_CONTINUE_SMALL_TOOLBAR.icon(), continueSideBarIcon}));
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecContinue);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecContinue);
|
||||||
|
|
||||||
act = m_exitAction = new QAction(tr("Stop Debugger"), this);
|
act = m_exitAction = new QAction(tr("Stop Debugger"), this);
|
||||||
act->setIcon(Icons::DEBUG_EXIT_SMALL.icon());
|
act->setIcon(Icons::DEBUG_EXIT_SMALL_TOOLBAR.icon());
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecExit);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecExit);
|
||||||
|
|
||||||
auto interruptIcon = Icon::combinedIcon({Icons::DEBUG_INTERRUPT_SMALL.icon(), interruptSideBarIcon});
|
auto interruptIcon = Icon::combinedIcon({Icons::DEBUG_INTERRUPT_SMALL_TOOLBAR.icon(), interruptSideBarIcon});
|
||||||
act = m_interruptAction = new QAction(tr("Interrupt"), this);
|
act = m_interruptAction = new QAction(tr("Interrupt"), this);
|
||||||
act->setIcon(interruptIcon);
|
act->setIcon(interruptIcon);
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecInterrupt);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecInterrupt);
|
||||||
@@ -1373,19 +1373,19 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
|||||||
|
|
||||||
act = m_resetAction = new QAction(tr("Restart Debugging"),this);
|
act = m_resetAction = new QAction(tr("Restart Debugging"),this);
|
||||||
act->setToolTip(tr("Restart the debugging session."));
|
act->setToolTip(tr("Restart the debugging session."));
|
||||||
act->setIcon(Icons::RESTART.icon());
|
act->setIcon(Icons::RESTART_TOOLBAR.icon());
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleReset);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleReset);
|
||||||
|
|
||||||
act = m_nextAction = new QAction(tr("Step Over"), this);
|
act = m_nextAction = new QAction(tr("Step Over"), this);
|
||||||
act->setIcon(Icons::STEP_OVER.icon());
|
act->setIcon(Icons::STEP_OVER_TOOLBAR.icon());
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecNext);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecNext);
|
||||||
|
|
||||||
act = m_stepAction = new QAction(tr("Step Into"), this);
|
act = m_stepAction = new QAction(tr("Step Into"), this);
|
||||||
act->setIcon(Icons::STEP_INTO.icon());
|
act->setIcon(Icons::STEP_INTO_TOOLBAR.icon());
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecStep);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecStep);
|
||||||
|
|
||||||
act = m_stepOutAction = new QAction(tr("Step Out"), this);
|
act = m_stepOutAction = new QAction(tr("Step Out"), this);
|
||||||
act->setIcon(Icons::STEP_OUT.icon());
|
act->setIcon(Icons::STEP_OUT_TOOLBAR.icon());
|
||||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecStepOut);
|
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecStepOut);
|
||||||
|
|
||||||
act = m_runToLineAction = new QAction(tr("Run to Line"), this);
|
act = m_runToLineAction = new QAction(tr("Run to Line"), this);
|
||||||
@@ -1443,7 +1443,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
|||||||
act = m_startAction = new QAction(this);
|
act = m_startAction = new QAction(this);
|
||||||
const QIcon sideBarIcon =
|
const QIcon sideBarIcon =
|
||||||
Icon::sideBarIcon(ProjectExplorer::Icons::DEBUG_START, ProjectExplorer::Icons::DEBUG_START_FLAT);
|
Icon::sideBarIcon(ProjectExplorer::Icons::DEBUG_START, ProjectExplorer::Icons::DEBUG_START_FLAT);
|
||||||
const QIcon debuggerIcon = Icon::combinedIcon({ProjectExplorer::Icons::DEBUG_START_SMALL.icon(), sideBarIcon});
|
const QIcon debuggerIcon = Icon::combinedIcon({ProjectExplorer::Icons::DEBUG_START_SMALL_TOOLBAR.icon(), sideBarIcon});
|
||||||
act->setIcon(debuggerIcon);
|
act->setIcon(debuggerIcon);
|
||||||
act->setText(tr("Start Debugging"));
|
act->setText(tr("Start Debugging"));
|
||||||
connect(act, &QAction::triggered, [] { ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::DEBUG_RUN_MODE); });
|
connect(act, &QAction::triggered, [] { ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::DEBUG_RUN_MODE); });
|
||||||
@@ -3551,7 +3551,7 @@ QAction *createStartAction()
|
|||||||
QAction *createStopAction()
|
QAction *createStopAction()
|
||||||
{
|
{
|
||||||
auto action = new QAction(DebuggerMainWindow::tr("Stop"), DebuggerPlugin::instance());
|
auto action = new QAction(DebuggerMainWindow::tr("Stop"), DebuggerPlugin::instance());
|
||||||
action->setIcon(Core::Icons::STOP_SMALL.icon());
|
action->setIcon(Core::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||||
action->setEnabled(true);
|
action->setEnabled(true);
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
@@ -374,7 +374,7 @@ LogWindow::LogWindow(QWidget *parent)
|
|||||||
m_commandEdit->setHistoryCompleter(QLatin1String("DebuggerInput"));
|
m_commandEdit->setHistoryCompleter(QLatin1String("DebuggerInput"));
|
||||||
|
|
||||||
auto repeatButton = new QToolButton(this);
|
auto repeatButton = new QToolButton(this);
|
||||||
repeatButton->setIcon(Icons::STEP_OVER_TOOLBUTTON.icon());
|
repeatButton->setIcon(Icons::STEP_OVER.icon());
|
||||||
repeatButton->setFixedSize(QSize(18, 18));
|
repeatButton->setFixedSize(QSize(18, 18));
|
||||||
repeatButton->setToolTip(tr("Repeat last command for debug reasons."));
|
repeatButton->setToolTip(tr("Repeat last command for debug reasons."));
|
||||||
|
|
||||||
|
@@ -128,7 +128,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
setAttribute(Qt::WA_QuitOnClose, false); // don't prevent Qt Creator from closing
|
setAttribute(Qt::WA_QuitOnClose, false); // don't prevent Qt Creator from closing
|
||||||
}
|
}
|
||||||
if (style != SideBarWidget) {
|
if (style != SideBarWidget) {
|
||||||
m_toggleSideBarAction = new QAction(Core::Icons::TOGGLE_SIDEBAR.icon(),
|
m_toggleSideBarAction = new QAction(Core::Icons::TOGGLE_SIDEBAR_TOOLBAR.icon(),
|
||||||
QCoreApplication::translate("Core", Core::Constants::TR_SHOW_SIDEBAR),
|
QCoreApplication::translate("Core", Core::Constants::TR_SHOW_SIDEBAR),
|
||||||
toolBar);
|
toolBar);
|
||||||
m_toggleSideBarAction->setCheckable(true);
|
m_toggleSideBarAction->setCheckable(true);
|
||||||
@@ -164,7 +164,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
connect(m_homeAction, &QAction::triggered, this, &HelpWidget::goHome);
|
connect(m_homeAction, &QAction::triggered, this, &HelpWidget::goHome);
|
||||||
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_homeAction, cmd));
|
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_homeAction, cmd));
|
||||||
|
|
||||||
m_backAction = new QAction(Core::Icons::PREV.icon(), tr("Back"), toolBar);
|
m_backAction = new QAction(Core::Icons::PREV_TOOLBAR.icon(), tr("Back"), toolBar);
|
||||||
connect(m_backAction, &QAction::triggered, this, &HelpWidget::backward);
|
connect(m_backAction, &QAction::triggered, this, &HelpWidget::backward);
|
||||||
m_backMenu = new QMenu(toolBar);
|
m_backMenu = new QMenu(toolBar);
|
||||||
connect(m_backMenu, &QMenu::aboutToShow, this, &HelpWidget::updateBackMenu);
|
connect(m_backMenu, &QMenu::aboutToShow, this, &HelpWidget::updateBackMenu);
|
||||||
@@ -175,7 +175,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
button->setPopupMode(QToolButton::DelayedPopup);
|
button->setPopupMode(QToolButton::DelayedPopup);
|
||||||
layout->addWidget(button);
|
layout->addWidget(button);
|
||||||
|
|
||||||
m_forwardAction = new QAction(Core::Icons::NEXT.icon(), tr("Forward"), toolBar);
|
m_forwardAction = new QAction(Core::Icons::NEXT_TOOLBAR.icon(), tr("Forward"), toolBar);
|
||||||
connect(m_forwardAction, &QAction::triggered, this, &HelpWidget::forward);
|
connect(m_forwardAction, &QAction::triggered, this, &HelpWidget::forward);
|
||||||
m_forwardMenu = new QMenu(toolBar);
|
m_forwardMenu = new QMenu(toolBar);
|
||||||
connect(m_forwardMenu, &QMenu::aboutToShow, this, &HelpWidget::updateForwardMenu);
|
connect(m_forwardMenu, &QMenu::aboutToShow, this, &HelpWidget::updateForwardMenu);
|
||||||
|
@@ -260,10 +260,10 @@ void ImageViewer::updatePauseAction()
|
|||||||
bool isMovie = d->file->type() == ImageViewerFile::TypeMovie;
|
bool isMovie = d->file->type() == ImageViewerFile::TypeMovie;
|
||||||
if (isMovie && !d->file->isPaused()) {
|
if (isMovie && !d->file->isPaused()) {
|
||||||
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Pause Animation"));
|
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Pause Animation"));
|
||||||
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::INTERRUPT_SMALL.icon());
|
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::INTERRUPT_SMALL_TOOLBAR.icon());
|
||||||
} else {
|
} else {
|
||||||
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Play Animation"));
|
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Play Animation"));
|
||||||
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::RUN_SMALL.icon());
|
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::RUN_SMALL_TOOLBAR.icon());
|
||||||
d->ui_toolbar.toolButtonPlayPause->setEnabled(isMovie);
|
d->ui_toolbar.toolButtonPlayPause->setEnabled(isMovie);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -42,7 +42,7 @@ IosRunControl::IosRunControl(IosRunConfiguration *rc)
|
|||||||
, m_runner(new IosRunner(this, rc, false, QmlDebug::NoQmlDebugServices))
|
, m_runner(new IosRunner(this, rc, false, QmlDebug::NoQmlDebugServices))
|
||||||
, m_running(false)
|
, m_running(false)
|
||||||
{
|
{
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
IosRunControl::~IosRunControl()
|
IosRunControl::~IosRunControl()
|
||||||
|
@@ -158,7 +158,7 @@ AppOutputPane::AppOutputPane() :
|
|||||||
setObjectName(QLatin1String("AppOutputPane")); // Used in valgrind engine
|
setObjectName(QLatin1String("AppOutputPane")); // Used in valgrind engine
|
||||||
|
|
||||||
// Rerun
|
// Rerun
|
||||||
m_reRunButton->setIcon(Core::Icons::RUN_SMALL.icon());
|
m_reRunButton->setIcon(Core::Icons::RUN_SMALL_TOOLBAR.icon());
|
||||||
m_reRunButton->setToolTip(tr("Re-run this run-configuration"));
|
m_reRunButton->setToolTip(tr("Re-run this run-configuration"));
|
||||||
m_reRunButton->setAutoRaise(true);
|
m_reRunButton->setAutoRaise(true);
|
||||||
m_reRunButton->setEnabled(false);
|
m_reRunButton->setEnabled(false);
|
||||||
@@ -166,7 +166,7 @@ AppOutputPane::AppOutputPane() :
|
|||||||
this, &AppOutputPane::reRunRunControl);
|
this, &AppOutputPane::reRunRunControl);
|
||||||
|
|
||||||
// Stop
|
// Stop
|
||||||
m_stopAction->setIcon(Core::Icons::STOP_SMALL.icon());
|
m_stopAction->setIcon(Core::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||||
m_stopAction->setToolTip(tr("Stop"));
|
m_stopAction->setToolTip(tr("Stop"));
|
||||||
m_stopAction->setEnabled(false);
|
m_stopAction->setEnabled(false);
|
||||||
|
|
||||||
@@ -644,7 +644,7 @@ void AppOutputPane::enableButtons(const RunControl *rc /* = 0 */, bool isRunning
|
|||||||
m_zoomOutButton->setEnabled(true);
|
m_zoomOutButton->setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
m_reRunButton->setEnabled(false);
|
m_reRunButton->setEnabled(false);
|
||||||
m_reRunButton->setIcon(Core::Icons::RUN_SMALL.icon());
|
m_reRunButton->setIcon(Core::Icons::RUN_SMALL_TOOLBAR.icon());
|
||||||
m_attachButton->setEnabled(false);
|
m_attachButton->setEnabled(false);
|
||||||
m_attachButton->setToolTip(msgAttachDebuggerTooltip());
|
m_attachButton->setToolTip(msgAttachDebuggerTooltip());
|
||||||
m_stopAction->setEnabled(false);
|
m_stopAction->setEnabled(false);
|
||||||
|
@@ -63,7 +63,7 @@ LocalApplicationRunControl::LocalApplicationRunControl(RunConfiguration *rc, Cor
|
|||||||
: RunControl(rc, mode)
|
: RunControl(rc, mode)
|
||||||
{
|
{
|
||||||
setRunnable(rc->runnable());
|
setRunnable(rc->runnable());
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
connect(&m_applicationLauncher, &ApplicationLauncher::appendMessage,
|
connect(&m_applicationLauncher, &ApplicationLauncher::appendMessage,
|
||||||
this, static_cast<void(RunControl::*)(const QString &, Utils::OutputFormat)>(&RunControl::appendMessage));
|
this, static_cast<void(RunControl::*)(const QString &, Utils::OutputFormat)>(&RunControl::appendMessage));
|
||||||
connect(&m_applicationLauncher, &ApplicationLauncher::processStarted,
|
connect(&m_applicationLauncher, &ApplicationLauncher::processStarted,
|
||||||
|
@@ -699,7 +699,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
ActionContainer *runMenu = ActionManager::createMenu(Constants::RUNMENUCONTEXTMENU);
|
ActionContainer *runMenu = ActionManager::createMenu(Constants::RUNMENUCONTEXTMENU);
|
||||||
runMenu->setOnAllDisabledBehavior(ActionContainer::Hide);
|
runMenu->setOnAllDisabledBehavior(ActionContainer::Hide);
|
||||||
QIcon runIcon = Utils::Icon::sideBarIcon(Icons::RUN, Icons::RUN_FLAT);
|
QIcon runIcon = Utils::Icon::sideBarIcon(Icons::RUN, Icons::RUN_FLAT);
|
||||||
runIcon.addPixmap(Core::Icons::RUN_SMALL.pixmap());
|
runIcon.addPixmap(Core::Icons::RUN_SMALL_TOOLBAR.pixmap());
|
||||||
runMenu->menu()->setIcon(runIcon);
|
runMenu->menu()->setIcon(runIcon);
|
||||||
runMenu->menu()->setTitle(tr("Run"));
|
runMenu->menu()->setTitle(tr("Run"));
|
||||||
msubProjectContextMenu->addMenu(runMenu, ProjectExplorer::Constants::G_PROJECT_RUN);
|
msubProjectContextMenu->addMenu(runMenu, ProjectExplorer::Constants::G_PROJECT_RUN);
|
||||||
@@ -897,7 +897,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
mbuild->addAction(cmd, Constants::G_BUILD_CLEAN);
|
mbuild->addAction(cmd, Constants::G_BUILD_CLEAN);
|
||||||
|
|
||||||
// cancel build action
|
// cancel build action
|
||||||
dd->m_cancelBuildAction = new QAction(Core::Icons::STOP_SMALL.icon(), tr("Cancel Build"), this);
|
dd->m_cancelBuildAction = new QAction(Core::Icons::STOP_SMALL_TOOLBAR.icon(), tr("Cancel Build"), this);
|
||||||
cmd = ActionManager::registerAction(dd->m_cancelBuildAction, Constants::CANCELBUILD);
|
cmd = ActionManager::registerAction(dd->m_cancelBuildAction, Constants::CANCELBUILD);
|
||||||
mbuild->addAction(cmd, Constants::G_BUILD_CANCEL);
|
mbuild->addAction(cmd, Constants::G_BUILD_CANCEL);
|
||||||
|
|
||||||
|
@@ -45,17 +45,20 @@ const Utils::Icon REBUILD({
|
|||||||
const Utils::Icon RUN(
|
const Utils::Icon RUN(
|
||||||
QLatin1String(":/projectexplorer/images/run.png"));
|
QLatin1String(":/projectexplorer/images/run.png"));
|
||||||
const Utils::Icon RUN_FLAT({
|
const Utils::Icon RUN_FLAT({
|
||||||
{QLatin1String(":/projectexplorer/images/run_mask.png"), Utils::Theme::IconsRunColor}});
|
{QLatin1String(":/projectexplorer/images/run_mask.png"), Utils::Theme::IconsRunToolBarColor}});
|
||||||
const Utils::Icon WINDOW(
|
const Utils::Icon WINDOW(
|
||||||
QLatin1String(":/projectexplorer/images/window.png"));
|
QLatin1String(":/projectexplorer/images/window.png"));
|
||||||
const Utils::Icon DEBUG_START(
|
const Utils::Icon DEBUG_START(
|
||||||
QLatin1String(":/projectexplorer/images/debugger_start.png"));
|
QLatin1String(":/projectexplorer/images/debugger_start.png"));
|
||||||
|
|
||||||
const Utils::Icon DEBUG_START_FLAT({
|
const Utils::Icon DEBUG_START_FLAT({
|
||||||
{QLatin1String(":/projectexplorer/images/run_mask.png"), Utils::Theme::IconsRunColor},
|
{QLatin1String(":/projectexplorer/images/run_mask.png"), Utils::Theme::IconsRunToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
||||||
const Utils::Icon DEBUG_START_SMALL({
|
const Utils::Icon DEBUG_START_SMALL({
|
||||||
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor},
|
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor},
|
||||||
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||||
|
const Utils::Icon DEBUG_START_SMALL_TOOLBAR({
|
||||||
|
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor},
|
||||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||||
|
|
||||||
const Utils::Icon BUILDSTEP_MOVEUP({
|
const Utils::Icon BUILDSTEP_MOVEUP({
|
||||||
|
@@ -1061,7 +1061,7 @@ RunControl *PythonRunControlFactory::create(RunConfiguration *runConfiguration,
|
|||||||
PythonRunControl::PythonRunControl(PythonRunConfiguration *rc, Core::Id mode)
|
PythonRunControl::PythonRunControl(PythonRunConfiguration *rc, Core::Id mode)
|
||||||
: RunControl(rc, mode), m_running(false)
|
: RunControl(rc, mode), m_running(false)
|
||||||
{
|
{
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
|
|
||||||
m_interpreter = rc->interpreter();
|
m_interpreter = rc->interpreter();
|
||||||
m_mainScript = rc->mainScript();
|
m_mainScript = rc->mainScript();
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
RemoteLinuxRunControl::RemoteLinuxRunControl(RunConfiguration *rc)
|
RemoteLinuxRunControl::RemoteLinuxRunControl(RunConfiguration *rc)
|
||||||
: RunControl(rc, ProjectExplorer::Constants::NORMAL_RUN_MODE), d(new RemoteLinuxRunControlPrivate)
|
: RunControl(rc, ProjectExplorer::Constants::NORMAL_RUN_MODE), d(new RemoteLinuxRunControlPrivate)
|
||||||
{
|
{
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
setRunnable(rc->runnable());
|
setRunnable(rc->runnable());
|
||||||
|
|
||||||
d->running = false;
|
d->running = false;
|
||||||
|
@@ -370,7 +370,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
|||||||
// pause action
|
// pause action
|
||||||
m_pauseAction = action = new QAction(this);
|
m_pauseAction = action = new QAction(this);
|
||||||
action->setCheckable(true);
|
action->setCheckable(true);
|
||||||
action->setIcon(Core::Icons::INTERRUPT_SMALL.icon());
|
action->setIcon(Core::Icons::INTERRUPT_SMALL_TOOLBAR.icon());
|
||||||
//action->setText(tr("Ignore"));
|
//action->setText(tr("Ignore"));
|
||||||
action->setToolTip(tr("Pause event logging. No events are counted which will speed up program execution during profiling."));
|
action->setToolTip(tr("Pause event logging. No events are counted which will speed up program execution during profiling."));
|
||||||
connect(action, &QAction::toggled, this, &CallgrindTool::pauseToggled);
|
connect(action, &QAction::toggled, this, &CallgrindTool::pauseToggled);
|
||||||
@@ -379,14 +379,14 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
|||||||
// go back
|
// go back
|
||||||
m_goBack = action = new QAction(this);
|
m_goBack = action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::PREV.icon());
|
action->setIcon(Core::Icons::PREV_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go back one step in history. This will select the previously selected item."));
|
action->setToolTip(tr("Go back one step in history. This will select the previously selected item."));
|
||||||
connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goBack);
|
connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goBack);
|
||||||
|
|
||||||
// go forward
|
// go forward
|
||||||
m_goNext = action = new QAction(this);
|
m_goNext = action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::NEXT.icon());
|
action->setIcon(Core::Icons::NEXT_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go forward one step in history."));
|
action->setToolTip(tr("Go forward one step in history."));
|
||||||
connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goNext);
|
connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goNext);
|
||||||
|
|
||||||
|
@@ -383,7 +383,7 @@ MemcheckTool::MemcheckTool(QObject *parent)
|
|||||||
// Go to previous leak.
|
// Go to previous leak.
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::PREV.icon());
|
action->setIcon(Core::Icons::PREV_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go to previous leak."));
|
action->setToolTip(tr("Go to previous leak."));
|
||||||
connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goBack);
|
connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goBack);
|
||||||
m_goBack = action;
|
m_goBack = action;
|
||||||
@@ -391,7 +391,7 @@ MemcheckTool::MemcheckTool(QObject *parent)
|
|||||||
// Go to next leak.
|
// Go to next leak.
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(Core::Icons::NEXT.icon());
|
action->setIcon(Core::Icons::NEXT_TOOLBAR.icon());
|
||||||
action->setToolTip(tr("Go to next leak."));
|
action->setToolTip(tr("Go to next leak."));
|
||||||
connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goNext);
|
connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goNext);
|
||||||
m_goNext = action;
|
m_goNext = action;
|
||||||
|
@@ -56,7 +56,7 @@ WinRtRunControl::WinRtRunControl(WinRtRunConfiguration *runConfiguration, Core::
|
|||||||
, m_state(StoppedState)
|
, m_state(StoppedState)
|
||||||
, m_runner(0)
|
, m_runner(0)
|
||||||
{
|
{
|
||||||
setIcon(Core::Icons::RUN_SMALL);
|
setIcon(Core::Icons::RUN_SMALL_TOOLBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WinRtRunControl::start()
|
void WinRtRunControl::start()
|
||||||
|
Reference in New Issue
Block a user