author | llornkcor <llornkcor> | 2002-10-20 22:46:45 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-20 22:46:45 (UTC) |
commit | 9bbc3d997fca39d9ab53541376737b016007685b (patch) (unidiff) | |
tree | b641985f4fae111e71fd620a2864028c6820b934 | |
parent | 7f4136df2e639ffa27c83422e4ccdf169ba71bad (diff) | |
download | opie-9bbc3d997fca39d9ab53541376737b016007685b.zip opie-9bbc3d997fca39d9ab53541376737b016007685b.tar.gz opie-9bbc3d997fca39d9ab53541376737b016007685b.tar.bz2 |
remember user configurations
-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 209c5de..f38ea53 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -957,30 +957,39 @@ void TextEdit::receive(const QCString&msg, const QByteArray&) { | |||
957 | } | 957 | } |
958 | 958 | ||
959 | } | 959 | } |
960 | void TextEdit::doAbout() { | 960 | void TextEdit::doAbout() { |
961 | QMessageBox::about(0,tr("Text Edit"),tr("Text Edit is copyright<BR>" | 961 | QMessageBox::about(0,tr("Text Edit"),tr("Text Edit is copyright<BR>" |
962 | "2000 Trolltech AS, and<BR>" | 962 | "2000 Trolltech AS, and<BR>" |
963 | "2002 by <B>L. J. Potter <BR>llornkcor@handhelds.org</B><BR>" | 963 | "2002 by <B>L. J. Potter <BR>llornkcor@handhelds.org</B><BR>" |
964 | "and is licensed under the GPL")); | 964 | "and is licensed under the GPL")); |
965 | } | 965 | } |
966 | 966 | ||
967 | void TextEdit::doPrompt(bool b) { | 967 | void TextEdit::doPrompt(bool b) { |
968 | promptExit=b; | 968 | promptExit=b; |
969 | Config cfg("TextEdit"); | ||
970 | cfg.setGroup ( "View" ); | ||
971 | cfg.writeEntry ( "PromptExit", b); | ||
969 | } | 972 | } |
970 | 973 | ||
971 | void TextEdit::doDesktop(bool b) { | 974 | void TextEdit::doDesktop(bool b) { |
972 | openDesktop=b; | 975 | openDesktop=b; |
976 | Config cfg("TextEdit"); | ||
977 | cfg.setGroup ( "View" ); | ||
978 | cfg.writeEntry ( "OpenDesktop", b); | ||
973 | } | 979 | } |
974 | 980 | ||
975 | void TextEdit::doFilePerms(bool b) { | 981 | void TextEdit::doFilePerms(bool b) { |
976 | filePerms=b; | 982 | filePerms=b; |
983 | Config cfg("TextEdit"); | ||
984 | cfg.setGroup ( "View" ); | ||
985 | cfg.writeEntry ( "FilePermissions", b); | ||
977 | } | 986 | } |
978 | 987 | ||
979 | void TextEdit::editPasteTimeDate() { | 988 | void TextEdit::editPasteTimeDate() { |
980 | #ifndef QT_NO_CLIPBOARD | 989 | #ifndef QT_NO_CLIPBOARD |
981 | QClipboard *cb = QApplication::clipboard(); | 990 | QClipboard *cb = QApplication::clipboard(); |
982 | QDateTime dt = QDateTime::currentDateTime(); | 991 | QDateTime dt = QDateTime::currentDateTime(); |
983 | cb->setText( dt.toString()); | 992 | cb->setText( dt.toString()); |
984 | editor->paste(); | 993 | editor->paste(); |
985 | #endif | 994 | #endif |
986 | } | 995 | } |