summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp')
-rw-r--r--kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp b/kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp
index 0e3ece95..00325b7b 100644
--- a/kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp
+++ b/kvoctrain/kvoctrain/docprop-dialogs/TenseOptPage.cpp
@@ -25,7 +25,7 @@
#include "TenseOptPage.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kapplication.h>
#include <kinputdialog.h>
@@ -38,21 +38,21 @@
TenseOptPage::TenseOptPage
(
- const vector<QString> &tenses,
+ const vector<TQString> &tenses,
kvoctrainDoc *_doc,
- QWidget *parent,
+ TQWidget *parent,
const char *name
)
:
TenseOptPageForm( parent, name )
{
- connect( tenseList, SIGNAL(highlighted(int)), SLOT(slotTenseChosen(int)) );
- connect( b_cleanup, SIGNAL(clicked()), SLOT(slotCleanup()) );
- connect( b_delete, SIGNAL(clicked()), SLOT(slotDeleteTense()) );
- connect( b_modify, SIGNAL(clicked()), SLOT(slotModifyTense()) );
- connect( b_new, SIGNAL(clicked()), SLOT(slotNewTense()) );
+ connect( tenseList, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotTenseChosen(int)) );
+ connect( b_cleanup, TQT_SIGNAL(clicked()), TQT_SLOT(slotCleanup()) );
+ connect( b_delete, TQT_SIGNAL(clicked()), TQT_SLOT(slotDeleteTense()) );
+ connect( b_modify, TQT_SIGNAL(clicked()), TQT_SLOT(slotModifyTense()) );
+ connect( b_new, TQT_SIGNAL(clicked()), TQT_SLOT(slotNewTense()) );
- QString str;
+ TQString str;
for (int i = 0; i < (int) tenses.size(); i++) {
str.setNum (i+1);
if (i <= 9)
@@ -82,12 +82,12 @@ void TenseOptPage::slotTenseChosen(int index)
void TenseOptPage::slotNewTense()
{
bool ok;
- QString getTense = KInputDialog::getText(
- i18n( "Tense Description" ), i18n( "Enter tense description:" ), QString::null, &ok );
+ TQString getTense = KInputDialog::getText(
+ i18n( "Tense Description" ), i18n( "Enter tense description:" ), TQString::null, &ok );
if( !ok )
return;
- QString str;
+ TQString str;
int i = tenseList->count()+1;
str.setNum (i);
if (i <= 9)
@@ -105,15 +105,15 @@ void TenseOptPage::slotModifyTense()
{
if (tenseList->count() != 0 && (int) tenseList->count() > act_tense)
{
- QString str = tenseList->text (act_tense);
+ TQString str = tenseList->text (act_tense);
int pos = str.find (TENSE_TAG);
str.remove (0, pos+strlen (TENSE_TAG));
bool ok;
- QString getTense = KInputDialog::getText(
+ TQString getTense = KInputDialog::getText(
i18n( "Tense Description" ), i18n( "Enter tense description:" ), str, &ok );
if( !ok )
return;
- QString str2;
+ TQString str2;
str2.setNum (act_tense+1);
if (act_tense <= 9)
str2.insert (0, " ");
@@ -124,7 +124,7 @@ void TenseOptPage::slotModifyTense()
void TenseOptPage::updateListBox(int start)
{
- QString str, str2;
+ TQString str, str2;
for (int i = start; i < (int) tenseList->count(); i++)
{
str = tenseList->text (i);
@@ -144,7 +144,7 @@ void TenseOptPage::slotDeleteTense()
if (tenseList->count() != 0
&& (int) tenseList->count() > act) {
- QString t;
+ TQString t;
t.setNum(tenseIndex[act_tense]+1);
t.insert (0, QM_USER_TYPE);
for (int ent = 0; ent < doc->numEntries(); ent++) {
@@ -179,9 +179,9 @@ void TenseOptPage::slotDeleteTense()
}
-void TenseOptPage::getTenseNames (vector<QString> &ret_tense, vector<int> &ret_Index)
+void TenseOptPage::getTenseNames (vector<TQString> &ret_tense, vector<int> &ret_Index)
{
- QString str; ret_tense.clear();
+ TQString str; ret_tense.clear();
for (int i = 0; i < (int) tenseList->count(); i++)
{
str = tenseList->text(i);
@@ -203,7 +203,7 @@ void TenseOptPage::slotCleanup()
for (int i = 0; i < (int) doc->numEntries(); i++) {
Conjugation conj = doc->getEntry(i)->getConjugation(col);
for (int ci = 0; ci < conj.numEntries(); ci++) {
- QString t = conj.getType(ci);
+ TQString t = conj.getType(ci);
if (t.left(strlen(UL_USER_TENSE)) == UL_USER_TENSE) {
t.remove (0, strlen(UL_USER_TENSE));
int idx = t.toInt();
@@ -234,7 +234,7 @@ void TenseOptPage::slotCleanup()
void TenseOptPage::cleanUnused(kvoctrainDoc *doc, const vector<int> &tenseIndex, int old_tenses)
{
vector<int> translate_index;
- vector<QString> new_tenseStr;
+ vector<TQString> new_tenseStr;
/////////////////////////////////////////////////////
// translate_index contains new index number for each
@@ -259,13 +259,13 @@ void TenseOptPage::cleanUnused(kvoctrainDoc *doc, const vector<int> &tenseIndex,
Conjugation conj = doc->getEntry(i)->getConjugation (col);
bool dirty = false;
for (int ci = 0; ci < conj.numEntries(); ci++) {
- QString old = conj.getType(ci);
+ TQString old = conj.getType(ci);
if (!old.isEmpty() && old.left(strlen(QM_USER_TYPE)) == QM_USER_TYPE) {
old.remove (0, 1);
int o = old.toInt();
dirty = true;
- QString newtense;
+ TQString newtense;
if (translate_index[o] != 0) {
newtense.setNum (translate_index[o]);
newtense.insert (0, QM_USER_TYPE);