diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
commit | 808e453c56036211f57482ed847d54aca01bba68 (patch) | |
tree | 75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /kdict/toplevel.cpp | |
parent | cd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff) | |
download | tdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kdict/toplevel.cpp')
-rw-r--r-- | kdict/toplevel.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp index fb19461f..496d4d53 100644 --- a/kdict/toplevel.cpp +++ b/kdict/toplevel.cpp @@ -14,7 +14,7 @@ ------------------------------------------------------------- */ -#include <tqclipboard.h> +#include <clipboard.h> #include <kstdaccel.h> #include <kstdaction.h> @@ -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); } @@ -394,12 +394,12 @@ void TopLevel::setupStatusBar() TQString serverInfo; if (global->authEnabled) - serverInfo = TQString(" %1@%2:%3 ").tqarg(getShortString(global->user,50)) - .tqarg(getShortString(global->server,50)) - .tqarg(global->port); + serverInfo = TQString(" %1@%2:%3 ").arg(getShortString(global->user,50)) + .arg(getShortString(global->server,50)) + .arg(global->port); else - serverInfo = TQString(" %1:%3 ").tqarg(getShortString(global->server,50)) - .tqarg(global->port); + serverInfo = TQString(" %1:%3 ").arg(getShortString(global->server,50)) + .arg(global->port); statusBar()->insertItem(serverInfo, 1,3); statusBar()->setItemAlignment(1,AlignLeft | AlignVCenter); } @@ -746,12 +746,12 @@ void TopLevel::optionsChanged() { TQString serverInfo; if (global->authEnabled) - serverInfo = TQString(" %1@%2:%3 ").tqarg(getShortString(global->user,50)) - .tqarg(getShortString(global->server,50)) - .tqarg(global->port); + serverInfo = TQString(" %1@%2:%3 ").arg(getShortString(global->user,50)) + .arg(getShortString(global->server,50)) + .arg(global->port); else - serverInfo = TQString(" %1:%3 ").tqarg(getShortString(global->server,50)) - .tqarg(global->port); + serverInfo = TQString(" %1:%3 ").arg(getShortString(global->server,50)) + .arg(global->port); statusBar()->changeItem(serverInfo,1); interface->serverChanged(); // inform client queryView->optionsChanged(); // inform html-view |