summaryrefslogtreecommitdiffstats
path: root/kplato/kptcalendaredit.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/kptcalendaredit.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/kptcalendaredit.cc')
-rw-r--r--kplato/kptcalendaredit.cc60
1 files changed, 30 insertions, 30 deletions
diff --git a/kplato/kptcalendaredit.cc b/kplato/kptcalendaredit.cc
index f9d76316..297fc64d 100644
--- a/kplato/kptcalendaredit.cc
+++ b/kplato/kptcalendaredit.cc
@@ -24,33 +24,33 @@
#include "kptmap.h"
#include "intervalitem.h"
-#include <qbuttongroup.h>
-#include <qheader.h>
-#include <qpushbutton.h>
-#include <qradiobutton.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 <tqbuttongroup.h>
+#include <tqheader.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.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 <klocale.h>
#include <kabc/addressee.h>
#include <kabc/addresseedialog.h>
-#include <qmap.h>
+#include <tqmap.h>
#include <kdebug.h>
namespace KPlato
{
-CalendarEdit::CalendarEdit (QWidget *parent, const char */*name*/)
- : CalendarEditBase(parent),
+CalendarEdit::CalendarEdit (TQWidget *tqparent, const char */*name*/)
+ : CalendarEditBase(tqparent),
m_calendar(0)
{
@@ -59,15 +59,15 @@ CalendarEdit::CalendarEdit (QWidget *parent, const char */*name*/)
intervalList->setShowSortIndicator(true);
intervalList->setSorting(0);
- connect (calendarPanel, SIGNAL(dateChanged(QDate)), SLOT(slotDateSelected(QDate)));
- connect (calendarPanel, SIGNAL(weekdaySelected(int)), SLOT(slotWeekdaySelected(int)));
- connect(calendarPanel, SIGNAL(selectionCleared()), SLOT(slotSelectionCleared()));
+ connect (calendarPanel, TQT_SIGNAL(dateChanged(TQDate)), TQT_SLOT(slotDateSelected(TQDate)));
+ connect (calendarPanel, TQT_SIGNAL(weekdaySelected(int)), TQT_SLOT(slotWeekdaySelected(int)));
+ connect(calendarPanel, TQT_SIGNAL(selectionCleared()), TQT_SLOT(slotSelectionCleared()));
- connect (state, SIGNAL(activated(int)), SLOT(slotStateActivated(int)));
- connect (bClear, SIGNAL(clicked()), SLOT(slotClearClicked()));
- connect (bAddInterval, SIGNAL(clicked()), SLOT(slotAddIntervalClicked()));
+ connect (state, TQT_SIGNAL(activated(int)), TQT_SLOT(slotStateActivated(int)));
+ connect (bClear, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearClicked()));
+ connect (bAddInterval, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddIntervalClicked()));
- connect (bApply, SIGNAL(clicked()), SLOT(slotApplyClicked()));
+ connect (bApply, TQT_SIGNAL(clicked()), TQT_SLOT(slotApplyClicked()));
}
void CalendarEdit::slotStateActivated(int id) {
@@ -112,7 +112,7 @@ void CalendarEdit::slotApplyClicked() {
//kdDebug()<<k_funcinfo<<"("<<m_calendar<<")"<<endl;
DateMap dates = calendarPanel->selectedDates();
for(DateMap::iterator it = dates.begin(); it != dates.end(); ++it) {
- QDate date = QDate::fromString(it.key(), Qt::ISODate);
+ TQDate date = TQDate::fromString(it.key(), Qt::ISODate);
//kdDebug()<<k_funcinfo<<"Date: "<<date<<endl;
CalendarDay *calDay = m_calendar->findDay(date);
if (!calDay) {
@@ -122,7 +122,7 @@ void CalendarEdit::slotApplyClicked() {
calDay->setState(state->currentItem()); //NOTE!!
calDay->clearIntervals();
if (calDay->state() == Map::Working) {
- for (QListViewItem *item = intervalList->firstChild(); item; item = item->nextSibling()) {
+ for (TQListViewItem *item = intervalList->firstChild(); item; item = item->nextSibling()) {
//kdDebug()<<k_funcinfo<<"Adding interval: "<<static_cast<IntervalItem *>(item)->interval().first.toString()<<"-"<<static_cast<IntervalItem *>(item)->interval().second.toString()<<endl;
calDay->addInterval(static_cast<IntervalItem *>(item)->interval());
}
@@ -136,7 +136,7 @@ void CalendarEdit::slotApplyClicked() {
weekday->setState(state->currentItem());//NOTE!!
weekday->clearIntervals();
if (weekday->state() == Map::Working) {
- for (QListViewItem *item = intervalList->firstChild(); item; item = item->nextSibling()) {
+ for (TQListViewItem *item = intervalList->firstChild(); item; item = item->nextSibling()) {
//kdDebug()<<k_funcinfo<<"Adding interval: "<<static_cast<IntervalItem *>(item)->interval().first.toString()<<"-"<<static_cast<IntervalItem *>(item)->interval().second.toString()<<endl;
weekday->addInterval(static_cast<IntervalItem *>(item)->interval());
}
@@ -182,9 +182,9 @@ void CalendarEdit::clearEditPart() {
intervalList->clear();
intervalList->setEnabled(false);
startTime->setEnabled(false);
- startTime->setTime(QTime(8, 0, 0)); //FIXME
+ startTime->setTime(TQTime(8, 0, 0)); //FIXME
endTime->setEnabled(false);
- endTime->setTime(QTime(16, 0, 0)); //FIXME
+ endTime->setTime(TQTime(16, 0, 0)); //FIXME
bAddInterval->setEnabled(false);
bClear->setEnabled(false);
@@ -192,7 +192,7 @@ void CalendarEdit::clearEditPart() {
state->setEnabled(false);
}
-void CalendarEdit::slotDateSelected(QDate date) {
+void CalendarEdit::slotDateSelected(TQDate date) {
if (m_calendar == 0)
return;
//kdDebug()<<k_funcinfo<<"("<<date.toString()<<")"<<endl;
@@ -205,7 +205,7 @@ void CalendarEdit::slotDateSelected(QDate date) {
CalendarDay *calDay = m_calendar->findDay(date);
state->setEnabled(true);
if (calDay) {
- QPtrListIterator<QPair<QTime, QTime> > it = calDay->workingIntervals();
+ TQPtrListIterator<TQPair<TQTime, TQTime> > it = calDay->workingIntervals();
for (; it.current(); ++it) {
IntervalItem *item = new IntervalItem(intervalList, it.current()->first, it.current()->second);
intervalList->insertItem(item);
@@ -250,7 +250,7 @@ void CalendarEdit::slotWeekdaySelected(int day_/* 1..7 */) {
state->insertItem(i18n("Undefined"));
state->insertItem(i18n("Non-working"));
state->insertItem(i18n("Working"));
- QPtrListIterator<QPair<QTime, QTime> > it = calDay->workingIntervals();
+ TQPtrListIterator<TQPair<TQTime, TQTime> > it = calDay->workingIntervals();
for (; it.current(); ++it) {
IntervalItem *item = new IntervalItem(intervalList, it.current()->first, it.current()->second);
intervalList->insertItem(item);