summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/kva_clip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/kva_clip.cpp')
-rw-r--r--kvoctrain/kvoctrain/kva_clip.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kvoctrain/kvoctrain/kva_clip.cpp b/kvoctrain/kvoctrain/kva_clip.cpp
index fdbb2744..d441cc2e 100644
--- a/kvoctrain/kvoctrain/kva_clip.cpp
+++ b/kvoctrain/kvoctrain/kva_clip.cpp
@@ -26,7 +26,7 @@
#include "kvoctrain.h"
-#include <qclipboard.h>
+#include <tqclipboard.h>
#include <klineedit.h>
#include <klocale.h>
@@ -37,8 +37,8 @@ using namespace std;
void kvoctrainApp::slotSmartSearchClip()
{
- QString s;
- QString entries = QApplication::clipboard()->text();
+ TQString s;
+ TQString entries = TQApplication::clipboard()->text();
if (!entries.isEmpty()) {
int pos = entries.find ('\n'); // search for a line end
@@ -63,7 +63,7 @@ void kvoctrainApp::slotSmartSearchClip()
vector<int> kvoctrainApp::getCsvOrder(kvoctrainDoc *doc)
{
vector<int> csv_order;
- QStringList lang_order = Prefs::pasteOrder();
+ TQStringList lang_order = Prefs::pasteOrder();
if (!Prefs::useCurrent())
{
@@ -114,9 +114,9 @@ void kvoctrainApp::slotEditCopy()
{
slotStatusMsg(i18n("Copying selection to clipboard..."));
- QApplication::setOverrideCursor( waitCursor );
- QString exp;
- QString s;
+ TQApplication::setOverrideCursor( waitCursor );
+ TQString exp;
+ TQString s;
vector <int> csv_order = getCsvOrder(doc);
@@ -148,15 +148,15 @@ void kvoctrainApp::slotEditCopy()
}
if (!exp.isEmpty()) {
#if defined(_WS_X11_)
-// disconnect(QApplication::clipboard(),SIGNAL(dataChanged()),this,0);
+// disconnect(TQApplication::clipboard(),TQT_SIGNAL(dataChanged()),this,0);
#endif
- QApplication::clipboard()->setText(exp);
+ TQApplication::clipboard()->setText(exp);
#if defined(_WS_X11_)
-// connect(QApplication::clipboard(),SIGNAL(dataChanged()), this,SLOT(clipboardChanged()));
+// connect(TQApplication::clipboard(),TQT_SIGNAL(dataChanged()), this,TQT_SLOT(clipboardChanged()));
#endif
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
slotStatusMsg(IDS_DEFAULT);
}
@@ -165,14 +165,14 @@ void kvoctrainApp::slotEditPaste()
{
slotStatusMsg(i18n("Inserting clipboard contents..."));
- QApplication::setOverrideCursor( waitCursor );
- QString s;
- QString entries = QApplication::clipboard()->text();
+ TQApplication::setOverrideCursor( waitCursor );
+ TQString s;
+ TQString entries = TQApplication::clipboard()->text();
vector <int> csv_order = getCsvOrder(doc);
bool changed = false;
- QString num;
+ TQString num;
// view->setView(0, langset, gradecols);
while (!entries.isEmpty()) {
int pos = entries.find ('\n'); // search for a line end
@@ -197,7 +197,7 @@ void kvoctrainApp::slotEditPaste()
kvoctrainExpr expr;
expr.setLesson(act_lesson);
// now move columns according to paste-order
- QString s;
+ TQString s;
for (int i = 0; i < (int) csv_order.size(); i++) {
if (csv_order[i] >= 0) {
if (i == 0)
@@ -227,7 +227,7 @@ void kvoctrainApp::slotEditPaste()
view->getTable()->updateContents(view->getTable()->numRows()-1, KV_COL_ORG);
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
slotStatusMsg(IDS_DEFAULT);
}