summaryrefslogtreecommitdiffstats
path: root/kdict/toplevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdict/toplevel.cpp')
-rw-r--r--kdict/toplevel.cpp38
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