summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp')
-rw-r--r--kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp b/kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp
index 462cdbf0..0a8bd0cb 100644
--- a/kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp
+++ b/kvoctrain/kvoctrain/entry-dialogs/FromToEntryPage.cpp
@@ -27,10 +27,10 @@
#include "FromToEntryPage.h"
#include "EntryDlg.h"
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqgroupbox.h>
#include <klocale.h>
@@ -42,7 +42,7 @@
#include <stdlib.h>
-static QStringList monthnames;
+static TQStringList monthnames;
FromToEntryPage::FromToEntryPage
(
@@ -52,9 +52,9 @@ FromToEntryPage::FromToEntryPage
time_t _time,
count_t _qcount,
count_t _bcount,
- QString faux,
- QString label,
- QWidget *parent,
+ TQString faux,
+ TQString label,
+ TQWidget *parent,
const char *name
)
:
@@ -75,23 +75,23 @@ FromToEntryPage::FromToEntryPage
monthnames.append (i18n("November"));
monthnames.append (i18n("December"));
- connect( bcount_line, SIGNAL(textChanged(const QString&)), SLOT(slotBCount(const QString&)) );
- connect( qcount_line, SIGNAL(textChanged(const QString&)), SLOT(slotQCount(const QString&)) );
- connect( fauxami_line, SIGNAL(textChanged(const QString&)), SLOT(slotFauxAmiSelected(const QString&)) );
+ connect( bcount_line, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotBCount(const TQString&)) );
+ connect( qcount_line, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotQCount(const TQString&)) );
+ connect( fauxami_line, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotFauxAmiSelected(const TQString&)) );
- connect( never, SIGNAL(clicked()), SLOT(slotNever()) );
- connect( today, SIGNAL(clicked()), SLOT(slotToday()) );
- connect( gradebox, SIGNAL(activated(int)), SLOT(slotGradeSelected(int)) );
+ connect( never, TQT_SIGNAL(clicked()), TQT_SLOT(slotNever()) );
+ connect( today, TQT_SIGNAL(clicked()), TQT_SLOT(slotToday()) );
+ connect( gradebox, TQT_SIGNAL(activated(int)), TQT_SLOT(slotGradeSelected(int)) );
- connect( year_spin, SIGNAL(valueChanged(int)), SLOT(slotYearChanged(int)) );
- connect( month_spin, SIGNAL(valueChanged(int)), SLOT(slotMonthChanged(int)) );
- connect( day_spin, SIGNAL(valueChanged(int)), SLOT(slotDayChanged(int)) );
+ connect( year_spin, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotYearChanged(int)) );
+ connect( month_spin, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotMonthChanged(int)) );
+ connect( day_spin, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotDayChanged(int)) );
- year_spin->setData ((QStringList *) 0, 1980, 2100);
+ year_spin->setData ((TQStringList *) 0, 1980, 2100);
month_spin->setData (&monthnames, 1, 12);
- day_spin->setData ((QStringList *) 0, 1, 31);
+ day_spin->setData ((TQStringList *) 0, 1, 31);
- QString s;
+ TQString s;
for (int i = 0; i <= KV_MAX_GRADE; i++) {
s.setNum (i);
gradebox->insertItem( QueryManager::gradeStr(i) );
@@ -113,8 +113,8 @@ void FromToEntryPage::setData(
time_t _time,
count_t _qcount,
count_t _bcount,
- QString faux,
- QString label)
+ TQString faux,
+ TQString label)
{
grade = _grade;
qcount = _qcount;
@@ -123,8 +123,8 @@ void FromToEntryPage::setData(
fauxami_line->setText(fauxami);
valid_date = false;
- QDateTime dt;
- QDate date;
+ TQDateTime dt;
+ TQDate date;
if (_time != 0 && !multi_sel) {
dt.setTime_t (_time);
valid_date = true;
@@ -137,9 +137,9 @@ void FromToEntryPage::setData(
day_spin->setValue(day);
month_spin->setValue(month);
year_spin->setValue(year);
- year_spin->setSpecial(QString::null);
- month_spin->setSpecial(QString::null);
- day_spin->setSpecial(QString::null);
+ year_spin->setSpecial(TQString::null);
+ month_spin->setSpecial(TQString::null);
+ day_spin->setSpecial(TQString::null);
}
else {
dt.setTime_t (time(0L));
@@ -156,7 +156,7 @@ void FromToEntryPage::setData(
gradebox->setCurrentItem (grade);
- QString s;
+ TQString s;
s.setNum (qcount);
qcount_line->setText (s);
@@ -185,7 +185,7 @@ void FromToEntryPage::setData(
}
-void FromToEntryPage::slotFauxAmiSelected(const QString& s)
+void FromToEntryPage::slotFauxAmiSelected(const TQString& s)
{
setModified(true);
fauxami = s;
@@ -200,7 +200,7 @@ void FromToEntryPage::slotGradeSelected (int g)
}
-void FromToEntryPage::slotQCount(const QString& s)
+void FromToEntryPage::slotQCount(const TQString& s)
{
setModified(true);
qcount_dirty = true;
@@ -208,7 +208,7 @@ void FromToEntryPage::slotQCount(const QString& s)
}
-void FromToEntryPage::slotBCount(const QString& s)
+void FromToEntryPage::slotBCount(const TQString& s)
{
setModified(true);
bcount_dirty = true;
@@ -220,9 +220,9 @@ time_t FromToEntryPage::getDate () const
{
// FIXME: warning dialog/don`t quit dialog when date invalid
if (valid_date) {
- QDate act_date (year, month, day);
- QDateTime time_null (QDate (1970, 1, 1), QTime (0,0,0));
- return -QDateTime(act_date).secsTo (time_null);
+ TQDate act_date (year, month, day);
+ TQDateTime time_null (TQDate (1970, 1, 1), TQTime (0,0,0));
+ return -TQDateTime(act_date).secsTo (time_null);
}
else
return 0;
@@ -249,7 +249,7 @@ void FromToEntryPage::slotYearChanged(int new_year)
new_year = year;
}
- year_spin->setSpecial(QString::null);
+ year_spin->setSpecial(TQString::null);
year = new_year;
validate();
@@ -278,7 +278,7 @@ void FromToEntryPage::slotMonthChanged(int new_month)
new_month = month;
}
- month_spin->setSpecial(QString::null);
+ month_spin->setSpecial(TQString::null);
month = new_month;
validate();
@@ -306,7 +306,7 @@ void FromToEntryPage::slotDayChanged(int new_day)
new_day = day;
}
- day_spin->setSpecial(QString::null);
+ day_spin->setSpecial(TQString::null);
day = new_day;
validate();
@@ -329,7 +329,7 @@ void FromToEntryPage::slotToday()
{
setModified(true);
date_dirty = true;
- QDateTime dt;
+ TQDateTime dt;
dt.setTime_t (time(0L));
year = dt.date().year();
@@ -339,9 +339,9 @@ void FromToEntryPage::slotToday()
day_spin->setValue(day);
month_spin->setValue(month);
year_spin->setValue(year);
- year_spin->setSpecial(QString::null);
- month_spin->setSpecial(QString::null);
- day_spin->setSpecial(QString::null);
+ year_spin->setSpecial(TQString::null);
+ month_spin->setSpecial(TQString::null);
+ day_spin->setSpecial(TQString::null);
validate();
}