Apply suggestions from code review
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com> (cherry picked from commit 1d1a4f1b30837e13ebd99c016af171d79697f22f)
This commit is contained in:
parent
9616d898d4
commit
159771f283
@ -33,11 +33,11 @@ class LogModel : public QAbstractListModel {
|
|||||||
private /* types */:
|
private /* types */:
|
||||||
struct entry {
|
struct entry {
|
||||||
MessageLevel::Enum level = MessageLevel::Enum::Unknown;
|
MessageLevel::Enum level = MessageLevel::Enum::Unknown;
|
||||||
QString line = {};
|
QString line;
|
||||||
};
|
};
|
||||||
|
|
||||||
private: /* data */
|
private: /* data */
|
||||||
QVector<entry> m_content = {};
|
QVector<entry> m_content;
|
||||||
int m_maxLines = 1000;
|
int m_maxLines = 1000;
|
||||||
// first line in the circular buffer
|
// first line in the circular buffer
|
||||||
int m_firstLine = 0;
|
int m_firstLine = 0;
|
||||||
|
@ -58,7 +58,7 @@ class CheckComboBox : public QComboBox {
|
|||||||
void toggleCheckState(int index);
|
void toggleCheckState(int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_default_text = {};
|
QString m_default_text;
|
||||||
QString m_separator = {};
|
QString m_separator;
|
||||||
bool m_containerMousePress = false;
|
bool m_containerMousePress = false;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user