diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-09-11 19:59:44 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-09-11 19:59:44 +0000 |
commit | 68f49002ee2b89bbbb78240b0e6f66147e00866c (patch) | |
tree | eb0be73d7db72a56b46da11207c2bb29096e4836 /textedit.cpp | |
parent | more docu in gpgwin.cpp and set slots in gpgwin from public to private (diff) | |
download | gpg4usb-68f49002ee2b89bbbb78240b0e6f66147e00866c.tar.gz gpg4usb-68f49002ee2b89bbbb78240b0e6f66147e00866c.zip |
show details in different colours in verfiy detail dialog, further commenting and added fillTextEditWithText to textedit
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@530 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp index d7d4ad6..c7939e3 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -320,6 +320,14 @@ void TextEdit::quote() cursor.endEditBlock(); } +void TextEdit::fillTextEditWithText(QString text) { + QTextCursor cursor(curTextPage()->document()); + cursor.beginEditBlock(); + this->curTextPage()->selectAll(); + this->curTextPage()->insertPlainText(text); + cursor.endEditBlock(); +} + void TextEdit::loadFile(const QString &fileName) { QFile file(fileName); |