summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewItem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch)
tree0212ba6d2c749043134005a41f2bd0379619d40f /kdgantt/KDGanttViewItem.cpp
parent4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff)
downloadtdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz
tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttViewItem.cpp')
-rw-r--r--kdgantt/KDGanttViewItem.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp
index 687618139..de80477a5 100644
--- a/kdgantt/KDGanttViewItem.cpp
+++ b/kdgantt/KDGanttViewItem.cpp
@@ -148,10 +148,10 @@
\a KDGanttView::setDisplaySubitemsAsGroup( true );
Insert root items in the Gantt view.
Insert items as tqchildren of these root item in the Gantt view.
- You may use any item type as tqparent and child; there are no limitations.
+ You may use any item type as parent and child; there are no limitations.
It is, however, recommended to use KDGanttViewTaskItems
Actually, you may add child items to the tqchildren themselves.
- Such a child behaves then like a tqparent.
+ Such a child behaves then like a parent.
Now set the start/end time of the tqchildren to specify a time
interval for these items.
*/
@@ -182,7 +182,7 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view,
Constructs an empty Gantt item.
\param type the type of the item to insert
- \param parentItem a tqparent item under which this one goes
+ \param parentItem a parent 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
@@ -224,7 +224,7 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view,
Constructs an empty Gantt item.
\param type the type of the item to insert
- \param parentItem a tqparent item under which this one goes
+ \param parentItem a parent 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
@@ -268,8 +268,8 @@ KDGanttViewItem::~KDGanttViewItem()
if ( listView() ) {
if ( isOpen() )
setOpen( false );
- if ( tqparent() )
- tqparent()->takeItem( this );
+ if ( parent() )
+ parent()->takeItem( this );
else
myGanttView->myListView->takeItem( this );
myGanttView->myTimeTable->updateMyContent();
@@ -463,9 +463,9 @@ void KDGanttViewItem::setDisplaySubitemsAsGroup( bool show )
if ( !show && _displaySubitemsAsGroup)
isVisibleInGanttView = true;
_displaySubitemsAsGroup = show;
- if ( tqparent() )
- if ( tqparent()->isOpen() )
- tqparent()->setOpen( true );
+ if ( parent() )
+ if ( parent()->isOpen() )
+ parent()->setOpen( true );
if ( isOpen() )
setOpen( true );
updateCanvasItems();
@@ -1248,14 +1248,14 @@ KDGanttViewItem* KDGanttViewItem::nextSibling() const
/*!
- Returns the tqparent item of this item
+ Returns the parent item of this item
- \return the tqparent item of this item, 0 if this item is a top-level
+ \return the parent item of this item, 0 if this item is a top-level
item
*/
-KDGanttViewItem* KDGanttViewItem::tqparent() const
+KDGanttViewItem* KDGanttViewItem::parent() const
{
- return (KDGanttViewItem*)TQListViewItem::tqparent();
+ return (KDGanttViewItem*)TQListViewItem::parent();
}
@@ -1674,22 +1674,22 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view,
Creates a KDGanttViewItem according to the specification in a DOM
element.
- \param tqparent the tqparent item under which the item will be inserted
+ \param parent the parent item under which the item will be inserted
\param element the DOM element from which to read the specification
\return the newly created element
*/
-KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparent,
+KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
TQDomElement& element )
{
TQString typeString = element.attribute( "Type" );
Q_ASSERT( !typeString.isEmpty() );
KDGanttViewItem* item;
if( typeString == "Task" )
- item = new KDGanttViewTaskItem( tqparent );
+ item = new KDGanttViewTaskItem( parent );
else if( typeString == "Summary" )
- item = new KDGanttViewSummaryItem( tqparent );
+ item = new KDGanttViewSummaryItem( parent );
else if( typeString == "Event" )
- item = new KDGanttViewEventItem( tqparent );
+ item = new KDGanttViewEventItem( parent );
else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0;
@@ -1704,12 +1704,12 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparen
Creates a KDGanttViewItem according to the specification in a DOM
element.
- \param tqparent the tqparent item under which the item will be inserted
+ \param parent the parent item under which the item will be inserted
\param previous to item behind this one should appear
\param element the DOM element from which to read the specification
\return the newly created element
*/
-KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparent,
+KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
KDGanttViewItem* previous,
TQDomElement& element )
{
@@ -1717,11 +1717,11 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparen
Q_ASSERT( !typeString.isEmpty() );
KDGanttViewItem* item;
if( typeString == "Task" )
- item = new KDGanttViewTaskItem( tqparent, previous );
+ item = new KDGanttViewTaskItem( parent, previous );
else if( typeString == "Summary" )
- item = new KDGanttViewSummaryItem( tqparent, previous );
+ item = new KDGanttViewSummaryItem( parent, previous );
else if( typeString == "Event" )
- item = new KDGanttViewEventItem( tqparent, previous );
+ item = new KDGanttViewEventItem( parent, previous );
else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0;
@@ -2228,7 +2228,7 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg,
int x_c = w/2;
int y_c = y+y_coord+ temp->height ()/2;
int y_ce ;
- if ( temp->itemBelow() && temp->itemBelow()->tqparent() == this )
+ if ( temp->itemBelow() && temp->itemBelow()->parent() == this )
y_ce =y+y_coord+ temp->height ();
else
y_ce = y_c;
@@ -2255,11 +2255,11 @@ void KDGanttViewItem::resetSubitemVisibility()
if ( myGanttView->calendarMode() ) {
// in calendarmode only items can be opened which have subitems which have subitems
if ( ! temp ) {
- if ( !tqparent() )
- // has no tqparent, has no child : show!
+ if ( !parent() )
+ // has no parent, has no child : show!
setVisible( true );
else
- // has tqparent, has no child : hide!
+ // has parent, has no child : hide!
setVisible( false );
return;
}