diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-02 16:30:25 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-02 16:31:59 +0100 |
commit | b74fcb77029245d0b7e49fc2e5b2d525496d99f9 (patch) | |
tree | 6669a0b52a539ea43d421024ab7029649026679f /src/plugins/cpptools/cpptoolseditorsupport.h | |
parent | a8cfda0ddb56bb87f79809eb7b523b1fcfe574e3 (diff) | |
download | qt-creator-b74fcb77029245d0b7e49fc2e5b2d525496d99f9.tar.gz |
Cache the UTF-8 encoded contents of the text editors, and some cleanup in updateEditorSelections().
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.h b/src/plugins/cpptools/cpptoolseditorsupport.h index ef91da43e0..4df23c7b25 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.h +++ b/src/plugins/cpptools/cpptoolseditorsupport.h @@ -61,7 +61,7 @@ public: int updateDocumentInterval() const; void setUpdateDocumentInterval(int updateDocumentInterval); - QString contents(); + QByteArray contents(); // UTF-8 encoded Q_SIGNALS: void contentsChanged(); @@ -78,7 +78,7 @@ private: QTimer *_updateDocumentTimer; int _updateDocumentInterval; QFuture<void> _documentParser; - QString _cachedContents; + QByteArray _cachedContents; }; } // namespace Internal |