forked from qt-creator/qt-creator
Debugger: Remember sizes and order of the columns in the debugger views
Task-number: QTCREATORBUG-23341 Change-Id: I405be5361e732eccadebd1f51d90c7a3229a2e5e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -59,6 +59,20 @@ public:
|
||||
QPointer<QToolButton> m_toolButton;
|
||||
};
|
||||
|
||||
class PerspectiveState
|
||||
{
|
||||
public:
|
||||
static const char *savesHeaderKey();
|
||||
|
||||
QByteArray mainWindowState;
|
||||
QVariantHash headerViewStates;
|
||||
|
||||
friend QDataStream &operator>>(QDataStream &ds, PerspectiveState &state)
|
||||
{ return ds >> state.mainWindowState >> state.headerViewStates; }
|
||||
friend QDataStream &operator<<(QDataStream &ds, const PerspectiveState &state)
|
||||
{ return ds << state.mainWindowState << state.headerViewStates; }
|
||||
};
|
||||
|
||||
class DEBUGGER_EXPORT Perspective : public QObject
|
||||
{
|
||||
public:
|
||||
@@ -150,3 +164,5 @@ private:
|
||||
};
|
||||
|
||||
} // Utils
|
||||
|
||||
Q_DECLARE_METATYPE(Utils::PerspectiveState)
|
||||
|
||||
Reference in New Issue
Block a user