forked from qt-creator/qt-creator
Debugger: Split Expressions view into dock of its own
Change-Id: Ie86a5bd72c3140219f925835a065d9f6a3ae0ea4 Task-number: QTCREATORBUG-19167 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include <QMenu>
|
||||
#include <QStackedWidget>
|
||||
#include <QStandardItemModel>
|
||||
#include <QTimer>
|
||||
#include <QToolButton>
|
||||
|
||||
using namespace Debugger;
|
||||
@@ -127,6 +128,16 @@ QDockWidget *DebuggerMainWindow::dockWidget(const QByteArray &dockId) const
|
||||
return m_dockForDockId.value(dockId);
|
||||
}
|
||||
|
||||
void DebuggerMainWindow::raiseDock(const QByteArray &dockId)
|
||||
{
|
||||
QDockWidget *dock = m_dockForDockId.value(dockId);
|
||||
QTC_ASSERT(dock, return);
|
||||
QAction *act = dock->toggleViewAction();
|
||||
if (!act->isChecked())
|
||||
QTimer::singleShot(1, act, [act, dock] { act->trigger(); });
|
||||
dock->raise();
|
||||
}
|
||||
|
||||
void DebuggerMainWindow::onModeChanged(Core::Id mode)
|
||||
{
|
||||
if (mode == Debugger::Constants::MODE_DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user