From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- kplato/kptintervaledit.cc | 48 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kplato/kptintervaledit.cc') diff --git a/kplato/kptintervaledit.cc b/kplato/kptintervaledit.cc index 8d74b357..7985d7db 100644 --- a/kplato/kptintervaledit.cc +++ b/kplato/kptintervaledit.cc @@ -20,16 +20,16 @@ #include "kptintervaledit.h" #include "intervalitem.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -37,23 +37,23 @@ namespace KPlato { -IntervalEdit::IntervalEdit(QWidget *parent, const char *name) - : IntervalEditImpl(parent) +IntervalEdit::IntervalEdit(TQWidget *tqparent, const char *name) + : IntervalEditImpl(tqparent) { //kdDebug()<header()->setStretchEnabled(true); intervalList->setSortColumn(0); - connect(bClear, SIGNAL(clicked()), SLOT(slotClearClicked())); - connect(bAddInterval, SIGNAL(clicked()), SLOT(slotAddIntervalClicked())); - connect(intervalList, SIGNAL(selectionChanged(QListViewItem*)), SLOT(slotIntervalSelectionChanged(QListViewItem*))); + connect(bClear, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearClicked())); + connect(bAddInterval, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddIntervalClicked())); + connect(intervalList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), TQT_SLOT(slotIntervalSelectionChanged(TQListViewItem*))); } @@ -69,7 +69,7 @@ void IntervalEditImpl::slotAddIntervalClicked() { emit changed(); } -void IntervalEditImpl::slotIntervalSelectionChanged(QListViewItem *item) { +void IntervalEditImpl::slotIntervalSelectionChanged(TQListViewItem *item) { IntervalItem *ii = dynamic_cast(item); if (!ii) return; @@ -77,20 +77,20 @@ void IntervalEditImpl::slotIntervalSelectionChanged(QListViewItem *item) { endTime->setTime(ii->interval().second); } -QPtrList > IntervalEditImpl::intervals() const { - QPtrList > l; - QListViewItem *i = intervalList->firstChild(); +TQPtrList > IntervalEditImpl::intervals() const { + TQPtrList > l; + TQListViewItem *i = intervalList->firstChild(); for (; i; i = i->nextSibling()) { IntervalItem *item = dynamic_cast(i); if (i) - l.append(new QPair(item->interval().first, item->interval().second)); + l.append(new TQPair(item->interval().first, item->interval().second)); } return l; } -void IntervalEditImpl::setIntervals(const QPtrList > &intervals) const { +void IntervalEditImpl::setIntervals(const TQPtrList > &intervals) const { intervalList->clear(); - QPtrListIterator > it =intervals; + TQPtrListIterator > it =intervals; for (; it.current(); ++it) { new IntervalItem(intervalList, it.current()->first, it.current()->second); } -- cgit v1.2.1