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:
hjk
2019-12-09 15:12:55 +01:00
parent ee77b4fca3
commit 53a4c6eda0
3 changed files with 77 additions and 18 deletions

View File

@@ -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)