diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kgantt/kgantt/KGanttItem.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgantt/kgantt/KGanttItem.cpp')
-rw-r--r-- | kgantt/kgantt/KGanttItem.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kgantt/kgantt/KGanttItem.cpp b/kgantt/kgantt/KGanttItem.cpp index 3632e170..7939d49c 100644 --- a/kgantt/kgantt/KGanttItem.cpp +++ b/kgantt/kgantt/KGanttItem.cpp @@ -12,28 +12,28 @@ TQBrush KGanttItem::_selectBrush(TQColor(255,0,0)); -KGanttItem::KGanttItem(KGanttItem* parentItem, const TQString& text, +KGanttItem::KGanttItem(KGanttItem* tqparentItem, const TQString& text, const TQDateTime& start, const TQDateTime& end) : TQObject() //////////////////////////////////////////////////////// { - init(parentItem,text, start,end); + init(tqparentItem,text, start,end); } -KGanttItem::KGanttItem(KGanttItem* parentItem, const TQString& text, +KGanttItem::KGanttItem(KGanttItem* tqparentItem, const TQString& text, const TQDateTime& start, long durationMin) : TQObject() //////////////////////////////////////////////////////// { - init(parentItem, text, start, start.addSecs( durationMin * 60)); + init(tqparentItem, text, start, start.addSecs( durationMin * 60)); } void -KGanttItem::init(KGanttItem* parentItem, const TQString& text, +KGanttItem::init(KGanttItem* tqparentItem, const TQString& text, const TQDateTime& start, const TQDateTime& end) /////////////////////////////////////////////////////////////// { @@ -55,10 +55,10 @@ KGanttItem::init(KGanttItem* parentItem, const TQString& text, _start = start; _minDateTime = start; _end = end; _maxDateTime = end; - _parentItem = parentItem; + _tqparentItem = tqparentItem; - if(_parentItem) - _parentItem->registerItem(this); + if(_tqparentItem) + _tqparentItem->registerItem(this); } @@ -71,8 +71,8 @@ KGanttItem::~KGanttItem() printf("-> delete %s \n", getText().latin1() ); #endif - if(_parentItem) - _parentItem->unregisterItem(this); + if(_tqparentItem) + _tqparentItem->unregisterItem(this); _subitems.setAutoDelete(true); _subitems.clear(); @@ -90,7 +90,7 @@ KGanttRelation* KGanttItem::addRelation(KGanttItem* from, KGanttItem* to, const TQString& text) { - if(_subitems.tqcontainsRef(from) > 0 && _subitems.tqcontainsRef(to) >0) { + if(_subitems.containsRef(from) > 0 && _subitems.containsRef(to) >0) { KGanttRelation* rel = new KGanttRelation(from,to,text); _relations.append(rel); @@ -595,7 +595,7 @@ KGanttItem::dump(TQTextOStream& cout, const TQString& pre) } -QString +TQString KGanttItem::ChangeAsString(Change c) ////////////////////////////////// { |