forked from qt-creator/qt-creator
Debugger: Add a tab widget for separate value display.
Debugger display in separate windows currently opens several widgets without title at the same location that disappear below the main window when stepping. Put them in a tabwidget and raise it when setting new values. Task-number: QTCREATORBUG-8344 Change-Id: Icb6dd8942ab851aeeb6a9248c4a1360e8841cf61 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -35,8 +35,11 @@
|
||||
#include <QHash>
|
||||
#include <QSet>
|
||||
#include <QStringList>
|
||||
#include <QPointer>
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QTabWidget)
|
||||
|
||||
namespace Debugger {
|
||||
|
||||
class DebuggerEngine;
|
||||
@@ -136,6 +139,9 @@ public:
|
||||
void resetValueCache();
|
||||
|
||||
private:
|
||||
void removeSeparateWidget(QObject *o);
|
||||
void showSeparateWidget(QWidget *w);
|
||||
|
||||
friend class WatchModel;
|
||||
|
||||
void saveWatchers();
|
||||
@@ -146,6 +152,7 @@ private:
|
||||
|
||||
WatchModel *m_model;
|
||||
DebuggerEngine *m_engine;
|
||||
QPointer<QTabWidget> m_separateWindow;
|
||||
|
||||
int m_watcherCounter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user