ui: Increase code view performance by caching line lengths in QtCodeArea

This commit is contained in:
Eberhard Graether
2016-07-08 14:36:12 +02:00
parent 06255286ae
commit 8b770b0c71
2 changed files with 26 additions and 13 deletions
+5
View File
@@ -162,6 +162,8 @@ private:
void createActions();
void createLineLengthCache();
static std::vector<AnnotationColor> s_annotationColors;
QtCodeFile* m_fileWidget;
@@ -189,6 +191,9 @@ private:
bool m_isActiveFile;
bool m_lineNumbersHidden;
bool m_wasAnnotated;
std::vector<int> m_lineLengths;
int m_endTextEditPosition;
};
#endif // QT_CODE_AREA_H