diff options
author | Aurindam Jana <[email protected]> | 2012-05-07 11:16:03 +0200 |
---|---|---|
committer | Kai Koehne <[email protected]> | 2012-05-08 10:13:35 +0200 |
commit | 2d612a252bb3b9ac2724966fe95d6f64054fd993 (patch) | |
tree | c128e947fdddabf9b760206dbb45c79e6d96e134 /src/plugins/debugger/qtmessageloghandler.h | |
parent | af6da38d5b0e8dfc6214d7ea2cd0b5b1ea7f5c32 (diff) |
QtMessageLogView: Optimize performance
Performance is hit when rendering a large number of messages.
Show text contents that fits a line and expands to show the
complete text when clicked.
Change-Id: I803a8b2da12830172f9e75f86546adf121799a67
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'src/plugins/debugger/qtmessageloghandler.h')
-rw-r--r-- | src/plugins/debugger/qtmessageloghandler.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/debugger/qtmessageloghandler.h b/src/plugins/debugger/qtmessageloghandler.h index 6e84f67a189..671dcd7aa45 100644 --- a/src/plugins/debugger/qtmessageloghandler.h +++ b/src/plugins/debugger/qtmessageloghandler.h @@ -132,19 +132,18 @@ public: bool removeChildren(int position, int count); bool detachChild(int position); int childNumber() const; + void setText(const QString &text); + const QString &text() const; private: QtMessageLogItem *m_parentItem; QList<QtMessageLogItem *> m_childItems; + QString m_text; public: - QString text; QtMessageLogHandler::ItemType itemType; QString file; int line; - -private: - friend class QtMessageLogHandler; }; } //Internal |