diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-08-21 14:39:18 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-08-21 14:39:18 +0200 |
commit | c2e90c360baaa5b8ea31d4466cadfab2bda3aabe (patch) | |
tree | 33ff2ee485894273b947b0c89a47dac75c8db3b1 /src/plugins/debugger/logwindow.cpp | |
parent | bf69b4c4446fbcc5feb94edcc89ff87078b2afcf (diff) | |
parent | 01b3e1fa547d8def812d64941968fb5e13516383 (diff) | |
download | qt-creator-c2e90c360baaa5b8ea31d4466cadfab2bda3aabe.tar.gz |
Merge remote-tracking branch 'origin/2.8'
Conflicts:
src/plugins/cpptools/cppcompletion_test.cpp
src/plugins/cpptools/cpptoolsplugin.h
src/plugins/projectexplorer/customtoolchain.cpp
src/plugins/vcsbase/command.cpp
Change-Id: Ie7b3c9e136c0748b41320227c757471259339b48
Diffstat (limited to 'src/plugins/debugger/logwindow.cpp')
-rw-r--r-- | src/plugins/debugger/logwindow.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/debugger/logwindow.cpp b/src/plugins/debugger/logwindow.cpp index 0b62cc0f60..68fca7500c 100644 --- a/src/plugins/debugger/logwindow.cpp +++ b/src/plugins/debugger/logwindow.cpp @@ -200,6 +200,13 @@ public: appendPlainText(text); } + void clearUndoRedoStacks() + { + if (!isUndoRedoEnabled()) + return; + setUndoRedoEnabled(false); + setUndoRedoEnabled(true); + } private slots: void saveContents(); @@ -551,6 +558,12 @@ QString LogWindow::inputContents() const return m_inputText->toPlainText(); } +void LogWindow::clearUndoRedoStacks() +{ + m_inputText->clearUndoRedoStacks(); + m_combinedText->clearUndoRedoStacks(); +} + QString LogWindow::logTimeStamp() { // Cache the last log time entry by ms. If time progresses, |