diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kpttaskprogresspanel.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kpttaskprogresspanel.cc')
-rw-r--r-- | kplato/kpttaskprogresspanel.cc | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kplato/kpttaskprogresspanel.cc b/kplato/kpttaskprogresspanel.cc index e85c6538..52cab18e 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(); |