summaryrefslogtreecommitdiffstats
path: root/kplato/kpttaskgeneralpanel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kpttaskgeneralpanel.cc')
-rw-r--r--kplato/kpttaskgeneralpanel.cc98
1 files changed, 49 insertions, 49 deletions
diff --git a/kplato/kpttaskgeneralpanel.cc b/kplato/kpttaskgeneralpanel.cc
index 53b7e60b..7664a89f 100644
--- a/kplato/kpttaskgeneralpanel.cc
+++ b/kplato/kpttaskgeneralpanel.cc
@@ -39,27 +39,27 @@
#include <kabc/addresseedialog.h>
#include <kdatewidget.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qdatetime.h>
-#include <qdatetimeedit.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqdatetime.h>
+#include <tqdatetimeedit.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
#include <kdebug.h>
namespace KPlato
{
-TaskGeneralPanel::TaskGeneralPanel(Task &task, StandardWorktime *workTime, bool /*baseline*/, QWidget *p, const char *n)
+TaskGeneralPanel::TaskGeneralPanel(Task &task, StandardWorktime *workTime, bool /*baseline*/, TQWidget *p, const char *n)
: TaskGeneralPanelImpl(p, n),
m_task(task),
m_dayLength(24)
{
useTime = true;
setStartValues(task, workTime);
-/* Why is this done? Its useless (its not actually read only, but that may be a Qt thing) and I have to
+/* Why is this done? Its useless (its not actually read only, but that may be a TQt thing) and I have to
edit these to actually be able to OK the dialog. TZ-8-2005
namefield->setReadOnly(baseline);
leaderfield->setReadOnly(baseline);
@@ -93,13 +93,13 @@ void TaskGeneralPanel::setStartValues(Task &task, StandardWorktime *workTime) {
if (task.constraintStartTime().isValid()) {
setStartDateTime(task.constraintStartTime());
} else {
- QDate date = QDate::currentDate();
- setStartDateTime(QDateTime(date, QTime()));
+ TQDate date = TQDate::tqcurrentDate();
+ setStartDateTime(TQDateTime(date, TQTime()));
}
if (task.constraintEndTime().isValid()) {
setEndDateTime(task.constraintEndTime());
} else {
- setEndDateTime(QDateTime(startDate().addDays(1), QTime()));
+ setEndDateTime(TQDateTime(startDate().addDays(1), TQTime()));
}
//kdDebug()<<k_funcinfo<<"Effort: "<<task.effort()->expected().toString()<<endl;
setEstimate(task.effort()->expected());
@@ -226,24 +226,24 @@ void TaskGeneralPanel::scheduleTypeChanged(int value)
}
//-----------------------------
-TaskGeneralPanelImpl::TaskGeneralPanelImpl(QWidget *p, const char *n)
+TaskGeneralPanelImpl::TaskGeneralPanelImpl(TQWidget *p, const char *n)
: TaskGeneralPanelBase(p, n) {
- connect(idfield, SIGNAL(textChanged(const QString &)), SLOT(checkAllFieldsFilled()));
- connect(namefield, SIGNAL(textChanged(const QString &)), SLOT(checkAllFieldsFilled()));
- connect(leaderfield, SIGNAL(textChanged(const QString &)), SLOT(checkAllFieldsFilled()));
- connect(chooseLeader, SIGNAL(clicked()), SLOT(changeLeader()));
- connect(estimateType, SIGNAL(activated(int)), SLOT(estimationTypeChanged(int)));
- connect(scheduleType, SIGNAL(activated(int)), SLOT(scheduleTypeChanged(int)));
- connect(scheduleStartDate, SIGNAL(changed(QDate)), SLOT(startDateChanged()));
- connect(scheduleStartTime, SIGNAL(valueChanged(const QTime&)), SLOT(startTimeChanged(const QTime&)));
- connect(scheduleEndDate, SIGNAL(changed(QDate)), SLOT(endDateChanged()));
- connect(scheduleEndTime, SIGNAL(valueChanged(const QTime&)), SLOT(endTimeChanged(const QTime&)));
- connect(estimate, SIGNAL(valueChanged()), SLOT(checkAllFieldsFilled()));
- connect(optimisticValue, SIGNAL(valueChanged(int)), SLOT(checkAllFieldsFilled()));
- connect(pessimisticValue, SIGNAL(valueChanged(int)), SLOT(checkAllFieldsFilled()));
- connect(descriptionfield, SIGNAL(textChanged()), SLOT(checkAllFieldsFilled()));
- connect(risk, SIGNAL(activated(int)), SLOT(checkAllFieldsFilled()));
+ connect(idfield, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(checkAllFieldsFilled()));
+ connect(namefield, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(checkAllFieldsFilled()));
+ connect(leaderfield, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(checkAllFieldsFilled()));
+ connect(chooseLeader, TQT_SIGNAL(clicked()), TQT_SLOT(changeLeader()));
+ connect(estimateType, TQT_SIGNAL(activated(int)), TQT_SLOT(estimationTypeChanged(int)));
+ connect(scheduleType, TQT_SIGNAL(activated(int)), TQT_SLOT(scheduleTypeChanged(int)));
+ connect(scheduleStartDate, TQT_SIGNAL(changed(TQDate)), TQT_SLOT(startDateChanged()));
+ connect(scheduleStartTime, TQT_SIGNAL(valueChanged(const TQTime&)), TQT_SLOT(startTimeChanged(const TQTime&)));
+ connect(scheduleEndDate, TQT_SIGNAL(changed(TQDate)), TQT_SLOT(endDateChanged()));
+ connect(scheduleEndTime, TQT_SIGNAL(valueChanged(const TQTime&)), TQT_SLOT(endTimeChanged(const TQTime&)));
+ connect(estimate, TQT_SIGNAL(valueChanged()), TQT_SLOT(checkAllFieldsFilled()));
+ connect(optimisticValue, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(checkAllFieldsFilled()));
+ connect(pessimisticValue, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(checkAllFieldsFilled()));
+ connect(descriptionfield, TQT_SIGNAL(textChanged()), TQT_SLOT(checkAllFieldsFilled()));
+ connect(risk, TQT_SIGNAL(activated(int)), TQT_SLOT(checkAllFieldsFilled()));
}
void TaskGeneralPanelImpl::setSchedulingType(int type)
@@ -372,9 +372,9 @@ Duration TaskGeneralPanelImpl::estimationValue()
}
-void TaskGeneralPanelImpl::setEstimateFields( int mask )
+void TaskGeneralPanelImpl::setEstimateFields( int tqmask )
{
- estimate->setVisibleFields(mask);
+ estimate->setVisibleFields(tqmask);
}
@@ -387,7 +387,7 @@ void TaskGeneralPanelImpl::setEstimateScales( double day )
}
-void TaskGeneralPanelImpl::setEstimateFieldUnit( int field, QString unit )
+void TaskGeneralPanelImpl::setEstimateFieldUnit( int field, TQString unit )
{
estimate->setFieldUnit(field, unit);
}
@@ -397,7 +397,7 @@ void TaskGeneralPanelImpl::startDateChanged()
if (!scheduleStartDate->isEnabled()) {
return;
}
- QDate date = startDate();
+ TQDate date = startDate();
if (startDateTime() > endDateTime())
{
scheduleEndTime->blockSignals(true);
@@ -414,7 +414,7 @@ void TaskGeneralPanelImpl::startDateChanged()
checkAllFieldsFilled();
}
-void TaskGeneralPanelImpl::startTimeChanged( const QTime &time )
+void TaskGeneralPanelImpl::startTimeChanged( const TQTime &time )
{
if (!scheduleStartTime->isEnabled()) {
return;
@@ -438,7 +438,7 @@ void TaskGeneralPanelImpl::endDateChanged()
if (!scheduleEndDate->isEnabled()) {
return;
}
- QDate date = endDate();
+ TQDate date = endDate();
if (endDateTime() < startDateTime())
{
scheduleStartTime->blockSignals(true);
@@ -456,7 +456,7 @@ void TaskGeneralPanelImpl::endDateChanged()
checkAllFieldsFilled();
}
-void TaskGeneralPanelImpl::endTimeChanged( const QTime &time )
+void TaskGeneralPanelImpl::endTimeChanged( const TQTime &time )
{
if (!scheduleEndTime->isEnabled()) {
return;
@@ -483,68 +483,68 @@ void TaskGeneralPanelImpl::scheduleTypeChanged( int value )
}
-QDateTime TaskGeneralPanelImpl::startDateTime()
+TQDateTime TaskGeneralPanelImpl::startDateTime()
{
- return QDateTime(startDate(), startTime());
+ return TQDateTime(startDate(), startTime());
}
-QDateTime TaskGeneralPanelImpl::endDateTime()
+TQDateTime TaskGeneralPanelImpl::endDateTime()
{
- return QDateTime(endDate(), endTime());
+ return TQDateTime(endDate(), endTime());
}
-void TaskGeneralPanelImpl::setStartTime( const QTime &time )
+void TaskGeneralPanelImpl::setStartTime( const TQTime &time )
{
scheduleStartTime->setTime(time);
}
-void TaskGeneralPanelImpl::setEndTime( const QTime &time )
+void TaskGeneralPanelImpl::setEndTime( const TQTime &time )
{
scheduleEndTime->setTime(time);
}
-QTime TaskGeneralPanelImpl::startTime() const
+TQTime TaskGeneralPanelImpl::startTime() const
{
return scheduleStartTime->time();
}
-QTime TaskGeneralPanelImpl::endTime()
+TQTime TaskGeneralPanelImpl::endTime()
{
return scheduleEndTime->time();
}
-QDate TaskGeneralPanelImpl::startDate()
+TQDate TaskGeneralPanelImpl::startDate()
{
return scheduleStartDate->date();
}
-QDate TaskGeneralPanelImpl::endDate()
+TQDate TaskGeneralPanelImpl::endDate()
{
return scheduleEndDate->date();
}
-void TaskGeneralPanelImpl::setStartDateTime( const QDateTime &dt )
+void TaskGeneralPanelImpl::setStartDateTime( const TQDateTime &dt )
{
setStartDate(dt.date());
setStartTime(dt.time());
}
-void TaskGeneralPanelImpl::setEndDateTime( const QDateTime &dt )
+void TaskGeneralPanelImpl::setEndDateTime( const TQDateTime &dt )
{
setEndDate(dt.date());
setEndTime(dt.time());
}
-void TaskGeneralPanelImpl::setStartDate( const QDate &date )
+void TaskGeneralPanelImpl::setStartDate( const TQDate &date )
{
scheduleStartDate->setDate(date);
}
-void TaskGeneralPanelImpl::setEndDate( const QDate &date )
+void TaskGeneralPanelImpl::setEndDate( const TQDate &date )
{
scheduleEndDate->setDate(date);
}