summaryrefslogtreecommitdiffstats
path: root/kplato/kptprojectdialog.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptprojectdialog.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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/kptprojectdialog.cc')
-rw-r--r--kplato/kptprojectdialog.cc64
1 files changed, 32 insertions, 32 deletions
diff --git a/kplato/kptprojectdialog.cc b/kplato/kptprojectdialog.cc
index 6fe79067..add74c8e 100644
--- a/kplato/kptprojectdialog.cc
+++ b/kplato/kptprojectdialog.cc
@@ -17,15 +17,15 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qtextedit.h>
-#include <qlineedit.h>
-#include <qdatetimeedit.h>
-#include <qdatetime.h>
-#include <qtabwidget.h>
-#include <qtextbrowser.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
+#include <tqlineedit.h>
+#include <tqdatetimeedit.h>
+#include <tqdatetime.h>
+#include <tqtabwidget.h>
+#include <tqtextbrowser.h>
#include <kdatepicker.h>
#include <klocale.h>
@@ -44,8 +44,8 @@
namespace KPlato
{
-ProjectDialog::ProjectDialog(Project &p, QWidget *parent, const char *name)
- : KDialogBase( Swallow, i18n("Project Settings"), Ok|Cancel, Ok, parent, name, true, true),
+ProjectDialog::ProjectDialog(Project &p, TQWidget *tqparent, const char *name)
+ : KDialogBase( Swallow, i18n("Project Settings"), Ok|Cancel, Ok, tqparent, name, true, true),
project(p)
{
dia = new ProjectDialogImpl(this);
@@ -57,21 +57,21 @@ ProjectDialog::ProjectDialog(Project &p, QWidget *parent, const char *name)
dia->namefield->setText(project.name());
dia->leaderfield->setText(project.leader());
- connect(dia, SIGNAL( obligatedFieldsFilled(bool) ), this, SLOT( enableButtonOK(bool) ));
- connect(dia, SIGNAL( schedulingTypeChanged(int) ), this, SLOT( slotSchedulingChanged(int) ));
+ connect(dia, TQT_SIGNAL( obligatedFieldsFilled(bool) ), this, TQT_SLOT( enableButtonOK(bool) ));
+ connect(dia, TQT_SIGNAL( schedulingTypeChanged(int) ), this, TQT_SLOT( slotSchedulingChanged(int) ));
slotSchedulingChanged(dia->schedulerType->currentItem());
dia->namefield->setFocus();
- connect(resourcesTab, SIGNAL( changed() ), dia, SLOT( slotCheckAllFieldsFilled() ));
+ connect(resourcesTab, TQT_SIGNAL( changed() ), dia, TQT_SLOT( slotCheckAllFieldsFilled() ));
}
void ProjectDialog::slotOk() {
project.setConstraint((Node::ConstraintType) dia->schedulerType->currentItem());
//FIXME
- project.setStartTime(QDateTime(dia->schedulerDate->date(), dia->schedulerTime->time()));
- project.setConstraintStartTime(QDateTime(dia->schedulerDate->date(), dia->schedulerTime->time()));
+ project.setStartTime(TQDateTime(dia->schedulerDate->date(), dia->schedulerTime->time()));
+ project.setConstraintStartTime(TQDateTime(dia->schedulerDate->date(), dia->schedulerTime->time()));
project.setName(dia->namefield->text());
project.setLeader(dia->leaderfield->text());
@@ -87,28 +87,28 @@ void ProjectDialog::slotSchedulingChanged(int activated) {
dia->schedulerTime->setEnabled(needDate);
dia->schedulerDate->setEnabled(needDate);
- QString label = QString("<p><font size=\"4\" color=\"#7797BC\"><b>%1</b></font></p><p>%2</p>");
+ TQString label = TQString("<p><font size=\"4\" color=\"#7797BC\"><b>%1</b></font></p><p>%2</p>");
switch(activated) {
// TODO please provide nice explenations on this.
case 0: // ASAP
- label = label.arg(i18n("As Soon as Possible"));
- label = label.arg(i18n("Place all events at the earliest possible moment permitted in the schedule"));
+ label = label.tqarg(i18n("As Soon as Possible"));
+ label = label.tqarg(i18n("Place all events at the earliest possible moment permitted in the schedule"));
break;
case 1: // ALAP
- label = label.arg(i18n("As Late as Possible"));
- label = label.arg(i18n("Place all events at the last possible moment permitted in the schedule"));
+ label = label.tqarg(i18n("As Late as Possible"));
+ label = label.tqarg(i18n("Place all events at the last possible moment permitted in the schedule"));
break;
case 2: // Start not earlier then
- label = label.arg(i18n("Start not Earlier then"));
- label = label.arg(i18n(""));
+ label = label.tqarg(i18n("Start not Earlier then"));
+ label = label.tqarg(i18n(""));
break;
case 3: // Finish not later then
- label = label.arg(i18n("Finish not Later then"));
- label = label.arg(i18n(""));
+ label = label.tqarg(i18n("Finish not Later then"));
+ label = label.tqarg(i18n(""));
break;
case 4: // Must start on
- label = label.arg(i18n("Must Start on"));
- label = label.arg(i18n(""));
+ label = label.tqarg(i18n("Must Start on"));
+ label = label.tqarg(i18n(""));
break;
default: // error ...
dia->lSchedulingExplain->setText("");
@@ -117,11 +117,11 @@ void ProjectDialog::slotSchedulingChanged(int activated) {
dia->lSchedulingExplain->setText(label);
}
-ProjectDialogImpl::ProjectDialogImpl (QWidget *parent) : ProjectDialogBase(parent) {
- connect (namefield, SIGNAL(textChanged( const QString& )), this, SLOT(slotCheckAllFieldsFilled()) );
- connect (leaderfield, SIGNAL(textChanged( const QString& )), this, SLOT(slotCheckAllFieldsFilled()) );
- connect (schedulerType, SIGNAL(activated( int )), this, SLOT(slotSchedulingChanged( int )) );
- connect (chooseLeader, SIGNAL(pressed()), this, SLOT(slotChooseLeader()));
+ProjectDialogImpl::ProjectDialogImpl (TQWidget *tqparent) : ProjectDialogBase(tqparent) {
+ connect (namefield, TQT_SIGNAL(textChanged( const TQString& )), this, TQT_SLOT(slotCheckAllFieldsFilled()) );
+ connect (leaderfield, TQT_SIGNAL(textChanged( const TQString& )), this, TQT_SLOT(slotCheckAllFieldsFilled()) );
+ connect (schedulerType, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSchedulingChanged( int )) );
+ connect (chooseLeader, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotChooseLeader()));
}
void ProjectDialogImpl::slotCheckAllFieldsFilled() {