diff options
author | hjk <hjk@qt.io> | 2020-10-05 05:27:30 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-10-05 08:46:27 +0000 |
commit | fcaa6801cf609a0ecda64937d38096ecfb1c357f (patch) | |
tree | 5bd1cc5133835f406206cf2ee365c9c0117d1e46 /src/plugins/debugger/console/console.cpp | |
parent | f4beb6314ce6bd86268057137dc935ed8b6a636d (diff) | |
download | qt-creator-fcaa6801cf609a0ecda64937d38096ecfb1c357f.tar.gz |
Utils: Start replacing SavedActions by QAction or Utils::Aspect
First mechanical step here is to derive SavedActions from BaseAspect
instead of QAction.
Change-Id: I2ec95883b825462c1d867f83cc2b3bd2c2732055
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/debugger/console/console.cpp')
-rw-r--r-- | src/plugins/debugger/console/console.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/console/console.cpp b/src/plugins/debugger/console/console.cpp index bc538c03d0..1b29f70d61 100644 --- a/src/plugins/debugger/console/console.cpp +++ b/src/plugins/debugger/console/console.cpp @@ -108,9 +108,9 @@ Console::Console() m_showDebugButtonAction->setCheckable(true); m_showDebugButtonAction->setChecked(true); m_showDebugButtonAction->setIcon(Utils::Icons::INFO_TOOLBAR.icon()); - connect(m_showDebugButtonAction, &Utils::SavedAction::toggled, + connect(m_showDebugButtonAction->action(), &QAction::toggled, proxyModel, &ConsoleProxyModel::setShowLogs); - m_showDebugButton->setDefaultAction(m_showDebugButtonAction); + m_showDebugButton->setDefaultAction(m_showDebugButtonAction->action()); m_showWarningButton = new QToolButton(m_consoleWidget); @@ -121,9 +121,9 @@ Console::Console() m_showWarningButtonAction->setCheckable(true); m_showWarningButtonAction->setChecked(true); m_showWarningButtonAction->setIcon(Utils::Icons::WARNING_TOOLBAR.icon()); - connect(m_showWarningButtonAction, &Utils::SavedAction::toggled, + connect(m_showWarningButtonAction->action(), &QAction::toggled, proxyModel, &ConsoleProxyModel::setShowWarnings); - m_showWarningButton->setDefaultAction(m_showWarningButtonAction); + m_showWarningButton->setDefaultAction(m_showWarningButtonAction->action()); m_showErrorButton = new QToolButton(m_consoleWidget); @@ -134,9 +134,9 @@ Console::Console() m_showErrorButtonAction->setCheckable(true); m_showErrorButtonAction->setChecked(true); m_showErrorButtonAction->setIcon(Utils::Icons::CRITICAL_TOOLBAR.icon()); - connect(m_showErrorButtonAction, &Utils::SavedAction::toggled, + connect(m_showErrorButtonAction->action(), &QAction::toggled, proxyModel, &ConsoleProxyModel::setShowErrors); - m_showErrorButton->setDefaultAction(m_showErrorButtonAction); + m_showErrorButton->setDefaultAction(m_showErrorButtonAction->action()); m_spacer = new QWidget(m_consoleWidget); m_spacer->setMinimumWidth(30); |