summaryrefslogtreecommitdiffstats
path: root/kmouth/phrasebook
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:17:16 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-20 19:43:55 +0200
commit5a3b2a8bb73c101a5c6cedcedd85cfb37e27a54f (patch)
tree3fdc96f09812e3a753f135a4974c5934733c60c4 /kmouth/phrasebook
parent35ef45e0e2bd97bea881ba3c53e0ab35ce84d82e (diff)
downloadtdeaccessibility-5a3b2a8bb73c101a5c6cedcedd85cfb37e27a54f.tar.gz
tdeaccessibility-5a3b2a8bb73c101a5c6cedcedd85cfb37e27a54f.zip
Rename obsolete tq methods to standard names
(cherry picked from commit c7ce89fcae12a35ac8bfa9b908854c50ca0ceee2)
Diffstat (limited to 'kmouth/phrasebook')
-rw-r--r--kmouth/phrasebook/phrasebook.cpp2
-rw-r--r--kmouth/phrasebook/phrasebookdialog.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/kmouth/phrasebook/phrasebook.cpp b/kmouth/phrasebook/phrasebook.cpp
index 6188a8a..ffa3ff2 100644
--- a/kmouth/phrasebook/phrasebook.cpp
+++ b/kmouth/phrasebook/phrasebook.cpp
@@ -151,7 +151,7 @@ TQCString encodeString (const TQString str) {
TQCString res = "";
for (int i = 0; i < (int)str.length(); i++) {
TQChar ch = str.at(i);
- ushort uc = ch.tqunicode();
+ ushort uc = ch.unicode();
TQCString number; number.setNum(uc);
if ((uc>127) || (uc<32) || (ch=='<') || (ch=='>') || (ch=='&') || (ch==';'))
res = res + "&#" + number + ";";
diff --git a/kmouth/phrasebook/phrasebookdialog.cpp b/kmouth/phrasebook/phrasebookdialog.cpp
index 838d5ec..1c035e6 100644
--- a/kmouth/phrasebook/phrasebookdialog.cpp
+++ b/kmouth/phrasebook/phrasebookdialog.cpp
@@ -667,12 +667,12 @@ void PhraseBookDialog::slotCut () {
void PhraseBookDialog::slotCopy () {
PhraseBook book;
treeView->fillBook (&book, true);
- TQApplication::tqclipboard()->setData(new PhraseBookDrag(&book));
+ TQApplication::clipboard()->setData(new PhraseBookDrag(&book));
}
void PhraseBookDialog::slotPaste () {
PhraseBook book;
- if (PhraseBookDrag::decode(TQApplication::tqclipboard()->data(), &book)) {
+ if (PhraseBookDrag::decode(TQApplication::clipboard()->data(), &book)) {
addBook (treeView->currentItem(), &book);
}
}