NOISSUE preserve log page checkbox state when the instance window is closed

Only for a single session, not between sessions.
This commit is contained in:
Petr Mrázek
2017-12-18 01:19:43 +01:00
parent fb7897a6f4
commit 9eb0525dab
4 changed files with 81 additions and 4 deletions

View File

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