summaryrefslogtreecommitdiffstats
path: root/kplato/kpttaskprogresspanel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kpttaskprogresspanel.cc')
-rw-r--r--kplato/kpttaskprogresspanel.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/kplato/kpttaskprogresspanel.cc b/kplato/kpttaskprogresspanel.cc
index e85c65389..52cab18e9 100644
--- a/kplato/kpttaskprogresspanel.cc
+++ b/kplato/kpttaskprogresspanel.cc
@@ -19,9 +19,9 @@
#include "kpttaskprogresspanel.h"
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
#include <klineedit.h>
#include <ktextedit.h>
@@ -41,8 +41,8 @@
namespace KPlato
{
-TaskProgressPanel::TaskProgressPanel(Task &task, StandardWorktime *workTime, QWidget *parent, const char *name)
- : TaskProgressPanelImpl(parent, name),
+TaskProgressPanel::TaskProgressPanel(Task &task, StandardWorktime *workTime, TQWidget *tqparent, const char *name)
+ : TaskProgressPanelImpl(tqparent, name),
m_task(task),
m_dayLength(24)
{
@@ -100,7 +100,7 @@ bool TaskProgressPanel::ok() {
KCommand *TaskProgressPanel::buildCommand(Part *part) {
KCommand *cmd = 0;
- QString c = i18n("Modify progress");
+ TQString c = i18n("Modify progress");
if (m_task.progress() != m_progress) {
cmd = new TaskModifyProgressCmd(part, m_task, m_progress, c);
}
@@ -124,20 +124,20 @@ void TaskProgressPanel::setEstimateScales( int day )
//-------------------------------------
-TaskProgressPanelImpl::TaskProgressPanelImpl(QWidget *parent, const char *name, WFlags f)
- : TaskProgressPanelBase(parent, name, f) {
+TaskProgressPanelImpl::TaskProgressPanelImpl(TQWidget *tqparent, const char *name, WFlags f)
+ : TaskProgressPanelBase(tqparent, name, f) {
- connect(started, SIGNAL(toggled(bool)), SLOT(slotStartedChanged(bool)));
- connect(finished, SIGNAL(toggled(bool)), SLOT(slotFinishedChanged(bool)));
+ connect(started, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotStartedChanged(bool)));
+ connect(finished, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotFinishedChanged(bool)));
- connect(percentFinished, SIGNAL(valueChanged(int)), SLOT(slotPercentFinishedChanged(int)));
- connect(percentFinished, SIGNAL(valueChanged(int)), SLOT(slotChanged()));
+ connect(percentFinished, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotPercentFinishedChanged(int)));
+ connect(percentFinished, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotChanged()));
- connect(startTime, SIGNAL(valueChanged(const QDateTime &)), SLOT(slotChanged()));
- connect(finishTime, SIGNAL(valueChanged(const QDateTime &)), SLOT(slotChanged()));
+ connect(startTime, TQT_SIGNAL(valueChanged(const TQDateTime &)), TQT_SLOT(slotChanged()));
+ connect(finishTime, TQT_SIGNAL(valueChanged(const TQDateTime &)), TQT_SLOT(slotChanged()));
- connect(remainingEffort, SIGNAL(valueChanged()), SLOT(slotChanged()));
- connect(actualEffort, SIGNAL(valueChanged()), SLOT(slotChanged()));
+ connect(remainingEffort, TQT_SIGNAL(valueChanged()), TQT_SLOT(slotChanged()));
+ connect(actualEffort, TQT_SIGNAL(valueChanged()), TQT_SLOT(slotChanged()));
}
@@ -147,7 +147,7 @@ void TaskProgressPanelImpl::slotChanged() {
void TaskProgressPanelImpl::slotStartedChanged(bool state) {
if (state) {
- startTime->setDateTime(QDateTime::currentDateTime());
+ startTime->setDateTime(TQDateTime::tqcurrentDateTime());
percentFinished->setValue(0);
}
enableWidgets();
@@ -158,7 +158,7 @@ void TaskProgressPanelImpl::slotFinishedChanged(bool state) {
if (state) {
percentFinished->setValue(100);
if (!finishTime->dateTime().isValid()) {
- finishTime->setDateTime(QDateTime::currentDateTime());
+ finishTime->setDateTime(TQDateTime::tqcurrentDateTime());
}
}
enableWidgets();