summaryrefslogtreecommitdiffstats
path: root/kplato/kpttaskdefaultpanel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kpttaskdefaultpanel.cc')
-rw-r--r--kplato/kpttaskdefaultpanel.cc92
1 files changed, 46 insertions, 46 deletions
diff --git a/kplato/kpttaskdefaultpanel.cc b/kplato/kpttaskdefaultpanel.cc
index a76249d3..dc116897 100644
--- a/kplato/kpttaskdefaultpanel.cc
+++ b/kplato/kpttaskdefaultpanel.cc
@@ -38,21 +38,21 @@
#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
{
-TaskDefaultPanel::TaskDefaultPanel(Task &task, StandardWorktime *workTime, QWidget *parent, const char *n)
- : ConfigTaskPanelImpl(parent, n),
+TaskDefaultPanel::TaskDefaultPanel(Task &task, StandardWorktime *workTime, TQWidget *tqparent, const char *n)
+ : ConfigTaskPanelImpl(tqparent, n),
m_task(task),
m_dayLength(24)
{
@@ -81,13 +81,13 @@ void TaskDefaultPanel::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());
@@ -189,21 +189,21 @@ void TaskDefaultPanel::scheduleTypeChanged(int value)
//-----------------------------
-ConfigTaskPanelImpl::ConfigTaskPanelImpl(QWidget *p, const char *n)
+ConfigTaskPanelImpl::ConfigTaskPanelImpl(TQWidget *p, const char *n)
: ConfigTaskPanelBase(p, n) {
- 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(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()));
}
void ConfigTaskPanelImpl::setSchedulingType(int type)
@@ -332,9 +332,9 @@ Duration ConfigTaskPanelImpl::estimationValue()
}
-void ConfigTaskPanelImpl::setEstimateFields( int mask )
+void ConfigTaskPanelImpl::setEstimateFields( int tqmask )
{
- estimate->setVisibleFields(mask);
+ estimate->setVisibleFields(tqmask);
}
@@ -347,7 +347,7 @@ void ConfigTaskPanelImpl::setEstimateScales( double day )
}
-void ConfigTaskPanelImpl::setEstimateFieldUnit( int field, QString unit )
+void ConfigTaskPanelImpl::setEstimateFieldUnit( int field, TQString unit )
{
estimate->setFieldUnit(field, unit);
}
@@ -357,7 +357,7 @@ void ConfigTaskPanelImpl::startDateChanged()
if (!scheduleStartDate->isEnabled()) {
return;
}
- QDate date = startDate();
+ TQDate date = startDate();
if (startDateTime() > endDateTime())
{
scheduleEndTime->blockSignals(true);
@@ -374,7 +374,7 @@ void ConfigTaskPanelImpl::startDateChanged()
checkAllFieldsFilled();
}
-void ConfigTaskPanelImpl::startTimeChanged( const QTime &time )
+void ConfigTaskPanelImpl::startTimeChanged( const TQTime &time )
{
if (!scheduleStartTime->isEnabled()) {
return;
@@ -398,7 +398,7 @@ void ConfigTaskPanelImpl::endDateChanged()
if (!scheduleEndDate->isEnabled()) {
return;
}
- QDate date = endDate();
+ TQDate date = endDate();
if (endDateTime() < startDateTime())
{
scheduleStartTime->blockSignals(true);
@@ -416,7 +416,7 @@ void ConfigTaskPanelImpl::endDateChanged()
checkAllFieldsFilled();
}
-void ConfigTaskPanelImpl::endTimeChanged( const QTime &time )
+void ConfigTaskPanelImpl::endTimeChanged( const TQTime &time )
{
if (!scheduleEndTime->isEnabled()) {
return;
@@ -443,68 +443,68 @@ void ConfigTaskPanelImpl::scheduleTypeChanged( int value )
}
-QDateTime ConfigTaskPanelImpl::startDateTime()
+TQDateTime ConfigTaskPanelImpl::startDateTime()
{
- return QDateTime(startDate(), startTime());
+ return TQDateTime(startDate(), startTime());
}
-QDateTime ConfigTaskPanelImpl::endDateTime()
+TQDateTime ConfigTaskPanelImpl::endDateTime()
{
- return QDateTime(endDate(), endTime());
+ return TQDateTime(endDate(), endTime());
}
-void ConfigTaskPanelImpl::setStartTime( const QTime &time )
+void ConfigTaskPanelImpl::setStartTime( const TQTime &time )
{
scheduleStartTime->setTime(time);
}
-void ConfigTaskPanelImpl::setEndTime( const QTime &time )
+void ConfigTaskPanelImpl::setEndTime( const TQTime &time )
{
scheduleEndTime->setTime(time);
}
-QTime ConfigTaskPanelImpl::startTime() const
+TQTime ConfigTaskPanelImpl::startTime() const
{
return scheduleStartTime->time();
}
-QTime ConfigTaskPanelImpl::endTime()
+TQTime ConfigTaskPanelImpl::endTime()
{
return scheduleEndTime->time();
}
-QDate ConfigTaskPanelImpl::startDate()
+TQDate ConfigTaskPanelImpl::startDate()
{
return scheduleStartDate->date();
}
-QDate ConfigTaskPanelImpl::endDate()
+TQDate ConfigTaskPanelImpl::endDate()
{
return scheduleEndDate->date();
}
-void ConfigTaskPanelImpl::setStartDateTime( const QDateTime &dt )
+void ConfigTaskPanelImpl::setStartDateTime( const TQDateTime &dt )
{
setStartDate(dt.date());
setStartTime(dt.time());
}
-void ConfigTaskPanelImpl::setEndDateTime( const QDateTime &dt )
+void ConfigTaskPanelImpl::setEndDateTime( const TQDateTime &dt )
{
setEndDate(dt.date());
setEndTime(dt.time());
}
-void ConfigTaskPanelImpl::setStartDate( const QDate &date )
+void ConfigTaskPanelImpl::setStartDate( const TQDate &date )
{
scheduleStartDate->setDate(date);
}
-void ConfigTaskPanelImpl::setEndDate( const QDate &date )
+void ConfigTaskPanelImpl::setEndDate( const TQDate &date )
{
scheduleEndDate->setDate(date);
}