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/kptstandardworktimedialog.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/kptstandardworktimedialog.cc')
-rw-r--r-- | kplato/kptstandardworktimedialog.cc | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kplato/kptstandardworktimedialog.cc b/kplato/kptstandardworktimedialog.cc index 936c3c38..3e7fb267 100644 --- a/kplato/kptstandardworktimedialog.cc +++ b/kplato/kptstandardworktimedialog.cc @@ -25,16 +25,16 @@ #include "kptintervaledit.h" #include "kptpart.h" -#include <qgroupbox.h> -#include <qheader.h> -#include <qpushbutton.h> -#include <qspinbox.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qdatetimeedit.h> -#include <qdatetime.h> +#include <tqgroupbox.h> +#include <tqheader.h> +#include <tqpushbutton.h> +#include <tqspinbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqdatetimeedit.h> +#include <tqdatetime.h> #include <kdebug.h> #include <kcombobox.h> @@ -49,8 +49,8 @@ namespace KPlato class WeekdayListItem : public KListViewItem { public: - WeekdayListItem(Calendar *cal, int wd, KListView *parent, QString name, KListViewItem *after) - : KListViewItem(parent, after), + WeekdayListItem(Calendar *cal, int wd, KListView *tqparent, TQString name, KListViewItem *after) + : KListViewItem(tqparent, after), original(cal->weekday(wd)), calendar(cal), weekday(wd) @@ -70,7 +70,7 @@ public: setText(1, "-"); day->clearIntervals(); } - void setIntervals(QPtrList<QPair<QTime, QTime> > intervals) { + void setIntervals(TQPtrList<TQPair<TQTime, TQTime> > intervals) { day->setIntervals(intervals); setText(1, KGlobal::locale()->formatNumber(day->duration().toDouble(Duration::Unit_h))); } @@ -92,8 +92,8 @@ public: int weekday; }; -StandardWorktimeDialog::StandardWorktimeDialog(Project &p, QWidget *parent, const char *name) - : KDialogBase( Swallow, i18n("Standard Worktime"), Ok|Cancel, Ok, parent, name, true, true), +StandardWorktimeDialog::StandardWorktimeDialog(Project &p, TQWidget *tqparent, const char *name) + : KDialogBase( Swallow, i18n("Standard Worktime"), Ok|Cancel, Ok, tqparent, name, true, true), project(p) { //kdDebug()<<k_funcinfo<<&p<<endl; @@ -103,13 +103,13 @@ StandardWorktimeDialog::StandardWorktimeDialog(Project &p, QWidget *parent, cons setMainWidget(dia); enableButtonOK(false); - connect(dia, SIGNAL(obligatedFieldsFilled(bool) ), SLOT(enableButtonOK(bool))); - connect(dia, SIGNAL(enableButtonOk(bool)), SLOT(enableButtonOK(bool))); + connect(dia, TQT_SIGNAL(obligatedFieldsFilled(bool) ), TQT_SLOT(enableButtonOK(bool))); + connect(dia, TQT_SIGNAL(enableButtonOk(bool)), TQT_SLOT(enableButtonOK(bool))); } KMacroCommand *StandardWorktimeDialog::buildCommand(Part *part) { //kdDebug()<<k_funcinfo<<endl; - QString n = i18n("Modify Standard Worktime"); + TQString n = i18n("Modify Standard Worktime"); KMacroCommand *cmd = 0; if (m_original->year() != dia->inYear()) { if (cmd == 0) cmd = new KMacroCommand(n); @@ -127,7 +127,7 @@ KMacroCommand *StandardWorktimeDialog::buildCommand(Part *part) { if (cmd == 0) cmd = new KMacroCommand(n); cmd->addCommand(new ModifyStandardWorktimeDayCmd(part, m_original, m_original->day(), dia->inDay())); } - QListViewItem *item = dia->weekdayList->firstChild(); + TQListViewItem *item = dia->weekdayList->firstChild(); for (; item; item = item->nextSibling()) { KCommand *c = static_cast<WeekdayListItem*>(item)->save(part); if (c) { @@ -144,13 +144,13 @@ void StandardWorktimeDialog::slotOk() { } -StandardWorktimeDialogImpl::StandardWorktimeDialogImpl(StandardWorktime *std, QWidget *parent) - : StandardWorktimeDialogBase(parent), +StandardWorktimeDialogImpl::StandardWorktimeDialogImpl(StandardWorktime *std, TQWidget *tqparent) + : StandardWorktimeDialogBase(tqparent), m_std(std) { if (!std) { m_std = new StandardWorktime(); } - QBoxLayout *l = new QVBoxLayout(intervalBox); + TQBoxLayout *l = new TQVBoxLayout(intervalBox); m_intervalEdit = new IntervalEdit(intervalBox); l->addWidget(m_intervalEdit); @@ -179,15 +179,15 @@ StandardWorktimeDialogImpl::StandardWorktimeDialogImpl(StandardWorktime *std, QW weekdayList->insertItem(item); } } - connect(year, SIGNAL(valueChanged(double)), SLOT(slotYearChanged(double))); - connect(month, SIGNAL(valueChanged(double)), SLOT(slotMonthChanged(double))); - connect(week, SIGNAL(valueChanged(double)), SLOT(slotWeekChanged(double))); - connect(day, SIGNAL(valueChanged(double)), SLOT(slotDayChanged(double))); + connect(year, TQT_SIGNAL(valueChanged(double)), TQT_SLOT(slotYearChanged(double))); + connect(month, TQT_SIGNAL(valueChanged(double)), TQT_SLOT(slotMonthChanged(double))); + connect(week, TQT_SIGNAL(valueChanged(double)), TQT_SLOT(slotWeekChanged(double))); + connect(day, TQT_SIGNAL(valueChanged(double)), TQT_SLOT(slotDayChanged(double))); - connect(m_intervalEdit, SIGNAL(changed()), SLOT(slotIntervalChanged())); - connect(bApply, SIGNAL(clicked()), SLOT(slotApplyClicked())); - connect(weekdayList, SIGNAL(selectionChanged()), SLOT(slotWeekdaySelected())); - connect(state, SIGNAL(activated(int)), SLOT(slotStateChanged(int))); + connect(m_intervalEdit, TQT_SIGNAL(changed()), TQT_SLOT(slotIntervalChanged())); + connect(bApply, TQT_SIGNAL(clicked()), TQT_SLOT(slotApplyClicked())); + connect(weekdayList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotWeekdaySelected())); + connect(state, TQT_SIGNAL(activated(int)), TQT_SLOT(slotStateChanged(int))); if (weekdayList->firstChild()) { weekdayList->setSelected(weekdayList->firstChild(), true); @@ -248,7 +248,7 @@ void StandardWorktimeDialogImpl::slotIntervalChanged() { void StandardWorktimeDialogImpl::slotApplyClicked() { //kdDebug()<<k_funcinfo<<"state="<<state->currentItem()<<endl; - QListViewItem *item = weekdayList->firstChild(); + TQListViewItem *item = weekdayList->firstChild(); for (; item; item = item->nextSibling()) { if (item->isSelected()) { //kdDebug()<<k_funcinfo<<item->text(0)<<" selected"<<endl; @@ -267,7 +267,7 @@ void StandardWorktimeDialogImpl::slotApplyClicked() { void StandardWorktimeDialogImpl::slotWeekdaySelected() { //kdDebug()<<k_funcinfo<<"state="<<state->currentItem()<<endl; - QListViewItem *item = weekdayList->firstChild(); + TQListViewItem *item = weekdayList->firstChild(); for (; item; item = item->nextSibling()) { if (item->isSelected()) { //kdDebug()<<k_funcinfo<<item->text(0)<<" selected"<<endl; |