diff options
Diffstat (limited to 'kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp')
-rw-r--r-- | kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp b/kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp index 596492ad..ac4345a1 100644 --- a/kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp +++ b/kvoctrain/kvoctrain/query-dialogs/MCQueryDlg.cpp @@ -33,18 +33,18 @@ #include <kdebug.h> #include <kprogress.h> -#include <qtimer.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qbuttongroup.h> -#include <qpushbutton.h> +#include <tqtimer.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqbuttongroup.h> +#include <tqpushbutton.h> #include <algorithm> using namespace std; MCQueryDlg::MCQueryDlg( - QString org, - QString trans, + TQString org, + TQString trans, int entry, int orgcol, int transcol, @@ -64,15 +64,15 @@ MCQueryDlg::MCQueryDlg( mw->transgroup->insert(mw->rb_trans4); mw->transgroup->insert(mw->rb_trans5); - connect( mw->dont_know, SIGNAL(clicked()), SLOT(dontKnowClicked()) ); - connect( mw->know_it, SIGNAL(clicked()), SLOT(knowItClicked()) ); -// connect( verify, SIGNAL(clicked()), SLOT(verifyClicked()) ); - connect( mw->show_all, SIGNAL(clicked()), SLOT(showItClicked()) ); - connect( mw->rb_trans5, SIGNAL(clicked()), SLOT(trans5clicked()) ); - connect( mw->rb_trans4, SIGNAL(clicked()), SLOT(trans4clicked()) ); - connect( mw->rb_trans3, SIGNAL(clicked()), SLOT(trans3clicked()) ); - connect( mw->rb_trans2, SIGNAL(clicked()), SLOT(trans2clicked()) ); - connect( mw->rb_trans1, SIGNAL(clicked()), SLOT(trans1clicked()) ); + connect( mw->dont_know, TQT_SIGNAL(clicked()), TQT_SLOT(dontKnowClicked()) ); + connect( mw->know_it, TQT_SIGNAL(clicked()), TQT_SLOT(knowItClicked()) ); +// connect( verify, TQT_SIGNAL(clicked()), TQT_SLOT(verifyClicked()) ); + connect( mw->show_all, TQT_SIGNAL(clicked()), TQT_SLOT(showItClicked()) ); + connect( mw->rb_trans5, TQT_SIGNAL(clicked()), TQT_SLOT(trans5clicked()) ); + connect( mw->rb_trans4, TQT_SIGNAL(clicked()), TQT_SLOT(trans4clicked()) ); + connect( mw->rb_trans3, TQT_SIGNAL(clicked()), TQT_SLOT(trans3clicked()) ); + connect( mw->rb_trans2, TQT_SIGNAL(clicked()), TQT_SLOT(trans2clicked()) ); + connect( mw->rb_trans1, TQT_SIGNAL(clicked()), TQT_SLOT(trans1clicked()) ); qtimer = 0; @@ -89,8 +89,8 @@ MCQueryDlg::~MCQueryDlg() } -void MCQueryDlg::setQuery(QString org, - QString trans, +void MCQueryDlg::setQuery(TQString org, + TQString trans, int entry, int orgcol, int transcol, @@ -111,7 +111,7 @@ void MCQueryDlg::setQuery(QString org, mw->orgField->setFont(Prefs::tableFont()); mw->orgField->setText (org); mw->show_all->setDefault(true); - QString s; + TQString s; s.setNum (q_cycle); mw->progCount->setText (s); @@ -120,8 +120,8 @@ void MCQueryDlg::setQuery(QString org, int mqtime = Prefs::maxTimePer(); if (mqtime > 0) { if (qtimer == 0) { - qtimer = new QTimer( this ); - connect( qtimer, SIGNAL(timeout()), this, SLOT(timeoutReached()) ); + qtimer = new TQTimer( this ); + connect( qtimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeoutReached()) ); } if (Prefs::queryTimeout() != Prefs::EnumQueryTimeout::NoTimeout) { @@ -136,7 +136,7 @@ void MCQueryDlg::setQuery(QString org, else mw->timebar->setEnabled(false); - vector<QString> strings; + vector<TQString> strings; button_ref.clear(); button_ref.push_back(RB_Label(mw->rb_trans1, mw->trans1)); button_ref.push_back(RB_Label(mw->rb_trans2, mw->trans2)); @@ -158,7 +158,7 @@ void MCQueryDlg::setQuery(QString org, std::random_shuffle(strings.begin(), strings.end()); // always include false friend - QString ff; + TQString ff; if (q_tcol != 0) ff = exp->getFauxAmi (q_tcol, false).stripWhiteSpace(); else @@ -390,7 +390,7 @@ void MCQueryDlg::slotUser2() } -void MCQueryDlg::keyPressEvent( QKeyEvent *e ) +void MCQueryDlg::keyPressEvent( TQKeyEvent *e ) { switch( e->key() ) { |