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 /kdgantt/KDGanttViewSummaryItem.cpp | |
| 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 'kdgantt/KDGanttViewSummaryItem.cpp')
| -rw-r--r-- | kdgantt/KDGanttViewSummaryItem.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kdgantt/KDGanttViewSummaryItem.cpp b/kdgantt/KDGanttViewSummaryItem.cpp index 9580b6236..b0ccfac14 100644 --- a/kdgantt/KDGanttViewSummaryItem.cpp +++ b/kdgantt/KDGanttViewSummaryItem.cpp @@ -26,8 +26,8 @@ ** licensing are not clear to you. ** ** As a special exception, permission is given to link this program - ** with any edition of Qt, and distribute the resulting executable, - ** without including the source code for Qt in the source distribution. + ** with any edition of TQt, and distribute the resulting executable, + ** without including the source code for TQt in the source distribution. ** **********************************************************************/ @@ -54,8 +54,8 @@ is specified, a unique name will be generated */ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Summary, view, lvtext, name ) { initItem(); @@ -65,15 +65,15 @@ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param parent a parent item under which this one goes + \param tqparent a tqparent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* parent, - const QString& lvtext, - const QString& name ) : - KDGanttViewItem( Summary, parent, lvtext, name ) +KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* tqparent, + const TQString& lvtext, + const TQString& name ) : + KDGanttViewItem( Summary, tqparent, lvtext, name ) { initItem(); } @@ -90,8 +90,8 @@ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* parent, */ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, KDGanttViewItem* after, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Summary, view, after, lvtext, name ) { initItem(); @@ -101,17 +101,17 @@ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param parent a parent item under which this one goes + \param tqparent a tqparent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* parent, +KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* tqparent, KDGanttViewItem* after, - const QString& lvtext, - const QString& name ) : - KDGanttViewItem( Summary, parent, after, lvtext, name ) + const TQString& lvtext, + const TQString& name ) : + KDGanttViewItem( Summary, tqparent, after, lvtext, name ) { initItem(); @@ -135,13 +135,13 @@ KDGanttViewSummaryItem::~KDGanttViewSummaryItem() \param dateTime the middle time \sa middleTime() */ -void KDGanttViewSummaryItem::setMiddleTime( const QDateTime& dateTime ) +void KDGanttViewSummaryItem::setMiddleTime( const TQDateTime& dateTime ) { if (! dateTime.isValid() ) { qDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set"); return; } - if (!myMiddleTime) myMiddleTime = new QDateTime; + if (!myMiddleTime) myMiddleTime = new TQDateTime; *myMiddleTime = dateTime; if ( myEndTime < middleTime() ) setEndTime( middleTime() ); @@ -158,7 +158,7 @@ void KDGanttViewSummaryItem::setMiddleTime( const QDateTime& dateTime ) \return the middle time of this summary item. If there is no middle time defined, the start time is returned. */ -QDateTime KDGanttViewSummaryItem::middleTime() const +TQDateTime KDGanttViewSummaryItem::middleTime() const { if(myMiddleTime) return *myMiddleTime; @@ -174,7 +174,7 @@ QDateTime KDGanttViewSummaryItem::middleTime() const \param end the end time \sa endTime(), setStartTime(), startTime() */ -void KDGanttViewSummaryItem::setEndTime( const QDateTime& end ) +void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end ) { if (! end.isValid() ) { qDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set"); @@ -197,7 +197,7 @@ void KDGanttViewSummaryItem::setEndTime( const QDateTime& end ) \param start the start time \sa startTime(), setEndTime(), endTime() */ -void KDGanttViewSummaryItem::setStartTime( const QDateTime& start ) +void KDGanttViewSummaryItem::setStartTime( const TQDateTime& start ) { if (! start.isValid() ) { qDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set"); @@ -221,9 +221,9 @@ void KDGanttViewSummaryItem::setStartTime( const QDateTime& start ) \sa actualEndTime() startTime() */ -void KDGanttViewSummaryItem::setActualEndTime( const QDateTime& end ) +void KDGanttViewSummaryItem::setActualEndTime( const TQDateTime& end ) { - if (!myActualEndTime) myActualEndTime = new QDateTime; + if (!myActualEndTime) myActualEndTime = new TQDateTime; *myActualEndTime = end; updateCanvasItems(); @@ -238,7 +238,7 @@ void KDGanttViewSummaryItem::setActualEndTime( const QDateTime& end ) \sa setActualEndTime() */ -QDateTime KDGanttViewSummaryItem::actualEndTime() const +TQDateTime KDGanttViewSummaryItem::actualEndTime() const { if(myActualEndTime) return *myActualEndTime; @@ -267,12 +267,12 @@ void KDGanttViewSummaryItem::hideMe() void KDGanttViewSummaryItem::showItem( bool show, int coordY ) { isVisibleInGanttView = show; - invalidateHeight () ; + tqinvalidateHeight () ; if (!show) { hideMe(); return; } - if ( displaySubitemsAsGroup() && !parent() && !isOpen() ) { + if ( displaySubitemsAsGroup() && !tqparent() && !isOpen() ) { hideMe(); return; } |
