diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-18 01:19:43 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-18 01:19:43 +0100 |
commit | 9eb0525dab04aa8c41e71db1290daf3e5048746b (patch) | |
tree | 4dc1702b08d71906cb0f23737a2dafbd3480568d /api/logic/launch/LogModel.h | |
parent | fb7897a6f4f133c41e475b6093830df2baf134a9 (diff) | |
download | PrismLauncher-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar.gz PrismLauncher-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar.bz2 PrismLauncher-9eb0525dab04aa8c41e71db1290daf3e5048746b.zip |
NOISSUE preserve log page checkbox state when the instance window is closed
Only for a single session, not between sessions.
Diffstat (limited to 'api/logic/launch/LogModel.h')
-rw-r--r-- | api/logic/launch/LogModel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/logic/launch/LogModel.h b/api/logic/launch/LogModel.h index 57cd23b0..e6deac89 100644 --- a/api/logic/launch/LogModel.h +++ b/api/logic/launch/LogModel.h @@ -17,7 +17,9 @@ public: void append(MessageLevel::Enum, QString line); void clear(); + void suspend(bool suspend); + bool suspended(); QString toPlainText(); @@ -26,6 +28,9 @@ public: void setStopOnOverflow(bool stop); void setOverflowMessage(const QString & overflowMessage); + void setLineWrap(bool state); + bool wrapLines() const; + enum Roles { LevelRole = Qt::UserRole @@ -48,6 +53,7 @@ private: /* data */ bool m_stopOnOverflow = false; QString m_overflowMessage = "OVERFLOW"; bool m_suspended = false; + bool m_lineWrap = true; private: Q_DISABLE_COPY(LogModel) |