Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/logwidget.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 60 | private: | |||
---|---|---|---|---|---|
68 | * @brief save Log pressed. | 68 | * @brief save Log pressed. | ||
69 | */ | 69 | */ | ||
70 | void savePressed(); | 70 | void savePressed(); | ||
71 | 71 | | |||
72 | /** | 72 | /** | ||
73 | * @brief Append text in temporary file | 73 | * @brief Append text in temporary file | ||
74 | * @param text | 74 | * @param text | ||
75 | */ | 75 | */ | ||
76 | void writeTempFile(QString text); | 76 | void writeTempFile(const QString &text); | ||
77 | 77 | | |||
78 | /** | 78 | /** | ||
79 | * @brief flush unwritten strings to temp file | 79 | * @brief flush unwritten strings to temp file | ||
80 | */ | 80 | */ | ||
81 | void flushTemp(); | 81 | void flushTemp(); | ||
82 | QStringList unsyncedStrings; | 82 | QStringList unsyncedStrings; | ||
83 | QTemporaryFile *logFile = nullptr; | 83 | QTemporaryFile *logFile = nullptr; | ||
84 | QPlainTextEdit *textLog = nullptr; | 84 | QPlainTextEdit *textLog = nullptr; | ||
85 | }; | 85 | }; |