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/kptintervaledit.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/kptintervaledit.cc')
-rw-r--r-- | kplato/kptintervaledit.cc | 48 |
1 files changed, 24 insertions, 24 deletions
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 <qpushbutton.h> -#include <qcombobox.h> -#include <qheader.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qdatetimeedit.h> -#include <qdatetime.h> -#include <qlistview.h> -#include <qpair.h> -#include <qdatetime.h> +#include <tqpushbutton.h> +#include <tqcombobox.h> +#include <tqheader.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqdatetimeedit.h> +#include <tqdatetime.h> +#include <tqlistview.h> +#include <tqpair.h> +#include <tqdatetime.h> #include <klocale.h> #include <kdebug.h> @@ -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()<<k_funcinfo<<endl; } //-------------------------------------------- -IntervalEditImpl::IntervalEditImpl(QWidget *parent) - : IntervalEditBase(parent) { +IntervalEditImpl::IntervalEditImpl(TQWidget *tqparent) + : IntervalEditBase(tqparent) { intervalList->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<IntervalItem *>(item); if (!ii) return; @@ -77,20 +77,20 @@ void IntervalEditImpl::slotIntervalSelectionChanged(QListViewItem *item) { endTime->setTime(ii->interval().second); } -QPtrList<QPair<QTime, QTime> > IntervalEditImpl::intervals() const { - QPtrList<QPair<QTime, QTime> > l; - QListViewItem *i = intervalList->firstChild(); +TQPtrList<TQPair<TQTime, TQTime> > IntervalEditImpl::intervals() const { + TQPtrList<TQPair<TQTime, TQTime> > l; + TQListViewItem *i = intervalList->firstChild(); for (; i; i = i->nextSibling()) { IntervalItem *item = dynamic_cast<IntervalItem*>(i); if (i) - l.append(new QPair<QTime, QTime>(item->interval().first, item->interval().second)); + l.append(new TQPair<TQTime, TQTime>(item->interval().first, item->interval().second)); } return l; } -void IntervalEditImpl::setIntervals(const QPtrList<QPair<QTime, QTime> > &intervals) const { +void IntervalEditImpl::setIntervals(const TQPtrList<TQPair<TQTime, TQTime> > &intervals) const { intervalList->clear(); - QPtrListIterator<QPair<QTime, QTime> > it =intervals; + TQPtrListIterator<TQPair<TQTime, TQTime> > it =intervals; for (; it.current(); ++it) { new IntervalItem(intervalList, it.current()->first, it.current()->second); } |