summaryrefslogtreecommitdiffstats
path: root/kdict
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:09 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 15:53:43 +0200
commit81d696e1ee26cfc46fb4c97989575a7376b2d246 (patch)
tree08aba6fcefaed9220ebfcd71eb069179434e1df1 /kdict
parente7bee19a9f42cffe3a0792348a60e5bee1d3da71 (diff)
downloadtdenetwork-81d696e1ee26cfc46fb4c97989575a7376b2d246.tar.gz
tdenetwork-81d696e1ee26cfc46fb4c97989575a7376b2d246.zip
Rename obsolete tq methods to standard names
(cherry picked from commit 8a143ab9f846e910c583ea8e770cd05495e0c58d)
Diffstat (limited to 'kdict')
-rw-r--r--kdict/matchview.cpp10
-rw-r--r--kdict/queryview.cpp12
-rw-r--r--kdict/toplevel.cpp16
3 files changed, 19 insertions, 19 deletions
diff --git a/kdict/matchview.cpp b/kdict/matchview.cpp
index 7d7ea958..61a8bc70 100644
--- a/kdict/matchview.cpp
+++ b/kdict/matchview.cpp
@@ -388,14 +388,14 @@ void MatchView::buildPopupMenu(TQListViewItem *i, const TQPoint &_point, int)
rightBtnMenu->insertSeparator();
}
- kapp->tqclipboard()->setSelectionMode(false);
- TQString text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(false);
+ TQString text = kapp->clipboard()->text();
if (text.isEmpty()) {
- kapp->tqclipboard()->setSelectionMode(true);
- text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(true);
+ text = kapp->clipboard()->text();
}
if (!text.isEmpty()) {
- popupClip = kapp->tqclipboard()->text();
+ popupClip = kapp->clipboard()->text();
rightBtnMenu->insertItem(i18n("Match &Clipboard Content"),this,TQT_SLOT(popupMatchClip()));
rightBtnMenu->insertItem(SmallIcon("define_clip"),i18n("D&efine Clipboard Content"),this,TQT_SLOT(popupDefineClip()));
rightBtnMenu->insertSeparator();
diff --git a/kdict/queryview.cpp b/kdict/queryview.cpp
index 81761e2e..0569e499 100644
--- a/kdict/queryview.cpp
+++ b/kdict/queryview.cpp
@@ -276,7 +276,7 @@ void QueryView::selectAll()
void QueryView::copySelection()
{
- kapp->tqclipboard()->setText(part->selectedText());
+ kapp->clipboard()->setText(part->selectedText());
}
@@ -441,14 +441,14 @@ void QueryView::buildPopupMenu(const TQString &url, const TQPoint &point)
this,TQT_SLOT(popupMatchSelect()));
rightBtnMenu->insertSeparator();
} else {
- kapp->tqclipboard()->setSelectionMode(false);
- TQString text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(false);
+ TQString text = kapp->clipboard()->text();
if (text.isEmpty()) {
- kapp->tqclipboard()->setSelectionMode(true);
- text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(true);
+ text = kapp->clipboard()->text();
}
if (!text.isEmpty()) {
- popupSelect = TQApplication::tqclipboard()->text();
+ popupSelect = TQApplication::clipboard()->text();
rightBtnMenu->insertItem(SmallIcon("define_clip"),
i18n("&Define Clipboard Content"),
this,TQT_SLOT(popupDefineSelect()));
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp
index 7ac88dba..4073bab9 100644
--- a/kdict/toplevel.cpp
+++ b/kdict/toplevel.cpp
@@ -260,11 +260,11 @@ void TopLevel::define(const TQString &query)
void TopLevel::defineClipboard()
{
kdDebug(5004) << "TopLevel::defineClipboard()" << endl;
- kapp->tqclipboard()->setSelectionMode(true);
- TQString text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(true);
+ TQString text = kapp->clipboard()->text();
if (text.isEmpty()) {
- kapp->tqclipboard()->setSelectionMode(false);
- text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(false);
+ text = kapp->clipboard()->text();
}
define(text);
}
@@ -281,11 +281,11 @@ void TopLevel::match(const TQString &query)
void TopLevel::matchClipboard()
{
kdDebug(5004) << "TopLevel::matchClipboard()" << endl;
- kapp->tqclipboard()->setSelectionMode(true);
- TQString text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(true);
+ TQString text = kapp->clipboard()->text();
if (text.isEmpty()) {
- kapp->tqclipboard()->setSelectionMode(false);
- text = kapp->tqclipboard()->text();
+ kapp->clipboard()->setSelectionMode(false);
+ text = kapp->clipboard()->text();
}
match(text);
}