replace qvector with qlist (#3519)
This commit is contained in:
@@ -100,7 +100,7 @@ void LogModel::setMaxLines(int maxLines)
|
||||
return;
|
||||
}
|
||||
// otherwise, we need to reorganize the data because it crosses the wrap boundary
|
||||
QVector<entry> newContent;
|
||||
QList<entry> newContent;
|
||||
newContent.resize(maxLines);
|
||||
if (m_numLines <= maxLines) {
|
||||
// if it all fits in the new buffer, just copy it over
|
||||
|
||||
@@ -42,7 +42,7 @@ class LogModel : public QAbstractListModel {
|
||||
};
|
||||
|
||||
private: /* data */
|
||||
QVector<entry> m_content;
|
||||
QList<entry> m_content;
|
||||
int m_maxLines = 1000;
|
||||
// first line in the circular buffer
|
||||
int m_firstLine = 0;
|
||||
|
||||
Reference in New Issue
Block a user