Apply suggestions from code review

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
Alexandru Ionut Tripon 2025-02-11 21:02:27 +02:00 committed by GitHub
parent bf1084d7fa
commit 1d1a4f1b30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -33,11 +33,11 @@ class LogModel : public QAbstractListModel {
private /* types */:
struct entry {
MessageLevel::Enum level = MessageLevel::Enum::Unknown;
QString line = {};
QString line;
};
private: /* data */
QVector<entry> m_content = {};
QVector<entry> m_content;
int m_maxLines = 1000;
// first line in the circular buffer
int m_firstLine = 0;

View File

@ -58,7 +58,7 @@ class CheckComboBox : public QComboBox {
void toggleCheckState(int index);
private:
QString m_default_text = {};
QString m_separator = {};
QString m_default_text;
QString m_separator;
bool m_containerMousePress = false;
};