diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kdgantt/KDGanttViewTaskLinkGroup.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttViewTaskLinkGroup.cpp')
-rw-r--r-- | kdgantt/KDGanttViewTaskLinkGroup.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kdgantt/KDGanttViewTaskLinkGroup.cpp b/kdgantt/KDGanttViewTaskLinkGroup.cpp index c7142f672..5109168d5 100644 --- a/kdgantt/KDGanttViewTaskLinkGroup.cpp +++ b/kdgantt/KDGanttViewTaskLinkGroup.cpp @@ -36,7 +36,7 @@ #include "KDGanttXMLTools.h" #include "KDGanttView.h" -QDict<KDGanttViewTaskLinkGroup> KDGanttViewTaskLinkGroup::sGroupDict; +TQDict<KDGanttViewTaskLinkGroup> KDGanttViewTaskLinkGroup::sGroupDict; /*! \class KDGanttViewTaskLinkGroup KDGanttViewTaskLinkGroup.h A group of task links. @@ -50,7 +50,7 @@ QDict<KDGanttViewTaskLinkGroup> KDGanttViewTaskLinkGroup::sGroupDict; */ KDGanttViewTaskLinkGroup::KDGanttViewTaskLinkGroup() { - generateAndInsertName(QString()); + generateAndInsertName(TQString()); } /*! @@ -74,7 +74,7 @@ KDGanttViewTaskLinkGroup::~KDGanttViewTaskLinkGroup() \param name the search name of this task link group */ -KDGanttViewTaskLinkGroup::KDGanttViewTaskLinkGroup( const QString& name ) +KDGanttViewTaskLinkGroup::KDGanttViewTaskLinkGroup( const TQString& name ) { generateAndInsertName( name ); } @@ -121,7 +121,7 @@ bool KDGanttViewTaskLinkGroup::remove (KDGanttViewTaskLink* link) void KDGanttViewTaskLinkGroup::setVisible( bool show ) { isvisible = show; - QPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); + TQPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); for ( ; it.current(); ++it ) { it.current()->setVisible(show); } @@ -151,7 +151,7 @@ bool KDGanttViewTaskLinkGroup::visible() const void KDGanttViewTaskLinkGroup::setHighlight( bool highlight ) { ishighlighted= highlight; - QPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); + TQPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); for ( ; it.current(); ++it ) it.current()->setHighlight(highlight ); @@ -179,10 +179,10 @@ bool KDGanttViewTaskLinkGroup::highlight() const \param color the color to draw the task links in this group in \sa color() */ -void KDGanttViewTaskLinkGroup::setColor( const QColor& color ) +void KDGanttViewTaskLinkGroup::setColor( const TQColor& color ) { myColor = color; - QPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); + TQPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); for ( ; it.current(); ++it ) it.current()->setColor(color); } @@ -198,7 +198,7 @@ void KDGanttViewTaskLinkGroup::setColor( const QColor& color ) \return the color in which the task links in this group are drawn \sa setColor() */ -QColor KDGanttViewTaskLinkGroup::color() const +TQColor KDGanttViewTaskLinkGroup::color() const { return myColor; } @@ -210,11 +210,11 @@ QColor KDGanttViewTaskLinkGroup::color() const \param color the highlight color to draw the task links in this group in \sa color() */ -void KDGanttViewTaskLinkGroup::setHighlightColor( const QColor& color ) +void KDGanttViewTaskLinkGroup::setHighlightColor( const TQColor& color ) { myColorHL = color; - QPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); + TQPtrListIterator<KDGanttViewTaskLink> it(myTaskLinkList); for ( ; it.current(); ++it ) it.current()->setHighlightColor(color); } @@ -230,7 +230,7 @@ void KDGanttViewTaskLinkGroup::setHighlightColor( const QColor& color ) are drawn \sa setColor() */ -QColor KDGanttViewTaskLinkGroup::highlightColor() const +TQColor KDGanttViewTaskLinkGroup::highlightColor() const { return myColorHL; } @@ -268,7 +268,7 @@ void KDGanttViewTaskLinkGroup::removeItem (KDGanttViewTaskLink* link) \return the task link group with the specified name; 0 if no group with that name exists */ -KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::find( const QString& name ) +KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::find( const TQString& name ) { if (name.isEmpty()) // avoid error msg from QDict return 0; @@ -282,10 +282,10 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::find( const QString& name ) \param doc the DOM document to which the node belongs \param parentElement the element into which to insert this node */ -void KDGanttViewTaskLinkGroup::createNode( QDomDocument& doc, - QDomElement& parentElement ) +void KDGanttViewTaskLinkGroup::createNode( TQDomDocument& doc, + TQDomElement& parentElement ) { - QDomElement taskLinkGroupElement = doc.createElement( "TaskLink" ); + TQDomElement taskLinkGroupElement = doc.createElement( "TaskLink" ); parentElement.appendChild( taskLinkGroupElement ); KDGanttXML::createBoolNode( doc, taskLinkGroupElement, "Highlight", @@ -306,16 +306,16 @@ void KDGanttViewTaskLinkGroup::createNode( QDomDocument& doc, \param element the DOM element from which to read the specification \return the newly created task link group */ -KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( QDomElement& element ) +KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( TQDomElement& element ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); bool highlight = false, visible = false; - QColor color, highlightColor; - QString name; + TQColor color, highlightColor; + TQString name; while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Highlight" ) { bool value; if( KDGanttXML::readBoolNode( element, value ) ) @@ -325,15 +325,15 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( QDomEl if( KDGanttXML::readBoolNode( element, value ) ) visible = value; } else if( tagName == "Color" ) { - QColor value; + TQColor value; if( KDGanttXML::readColorNode( element, value ) ) color = value; } else if( tagName == "HighlightColor" ) { - QColor value; + TQColor value; if( KDGanttXML::readColorNode( element, value ) ) highlightColor = value; } else if( tagName == "Name" ) { - QString value; + TQString value; if( KDGanttXML::readStringNode( element, value ) ) name = value; } else { @@ -362,7 +362,7 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( QDomEl Generates a unique name if necessary and inserts it into the group dictionary. */ -void KDGanttViewTaskLinkGroup::generateAndInsertName( const QString& name ) +void KDGanttViewTaskLinkGroup::generateAndInsertName( const TQString& name ) { // First check if we already had a name. This can be the case if // the item was reconstructed from an XML file. @@ -370,7 +370,7 @@ void KDGanttViewTaskLinkGroup::generateAndInsertName( const QString& name ) // We had a name, remove it sGroupDict.remove( _name ); - QString newName; + TQString newName; if ( name.isEmpty() || sGroupDict.find( name ) ) { // create unique name newName.sprintf( "%p", (void* )this ); |