From 1c93fca14d9ce37499bcfdf994c660186a0b6f17 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 14 Apr 2011 20:16:30 +0000 Subject: Enable kdepim compilation under Qt4 This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdgantt/KDGanttXMLTools.cpp | 102 ++++++++++++++++++++++---------------------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'kdgantt/KDGanttXMLTools.cpp') diff --git a/kdgantt/KDGanttXMLTools.cpp b/kdgantt/KDGanttXMLTools.cpp index 248829d3e..e6246138c 100644 --- a/kdgantt/KDGanttXMLTools.cpp +++ b/kdgantt/KDGanttXMLTools.cpp @@ -4,7 +4,7 @@ */ /**************************************************************************** - ** Copyright (C) 2002-2004 Klarälvdalens Datakonsult AB. All rights reserved. + ** Copyright (C) 2002-2004 Klar�lvdalens Datakonsult AB. All rights reserved. ** ** This file is part of the KDGantt library. ** @@ -266,20 +266,20 @@ void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, } -TQString penStyleToString( TQt::PenStyle style ) +TQString penStyleToString( Qt::PenStyle style ) { switch( style ) { - case TQt::NoPen: + case Qt::NoPen: return "NoPen"; - case TQt::SolidLine: + case Qt::SolidLine: return "SolidLine"; - case TQt::DashLine: + case Qt::DashLine: return "DashLine"; - case TQt::DotLine: + case Qt::DotLine: return "DotLine"; - case TQt::DashDotLine: + case Qt::DashDotLine: return "DashDotLine"; - case TQt::DashDotDotLine: + case Qt::DashDotDotLine: return "DashDotDotLine"; default: // should not happen return "SolidLine"; @@ -288,39 +288,39 @@ TQString penStyleToString( TQt::PenStyle style ) -TQString brushStyleToString( TQt::BrushStyle style ) +TQString brushStyleToString( Qt::BrushStyle style ) { // PENDING(kalle) Support custom patterns switch( style ) { - case TQt::NoBrush: + case Qt::NoBrush: return "NoBrush"; - case TQt::SolidPattern: + case Qt::SolidPattern: return "SolidPattern"; - case TQt::Dense1Pattern: + case Qt::Dense1Pattern: return "Dense1Pattern"; - case TQt::Dense2Pattern: + case Qt::Dense2Pattern: return "Dense2Pattern"; - case TQt::Dense3Pattern: + case Qt::Dense3Pattern: return "Dense3Pattern"; - case TQt::Dense4Pattern: + case Qt::Dense4Pattern: return "Dense4Pattern"; - case TQt::Dense5Pattern: + case Qt::Dense5Pattern: return "Dense5Pattern"; - case TQt::Dense6Pattern: + case Qt::Dense6Pattern: return "Dense6Pattern"; - case TQt::Dense7Pattern: + case Qt::Dense7Pattern: return "Dense7Pattern"; - case TQt::HorPattern: + case Qt::HorPattern: return "HorPattern"; - case TQt::VerPattern: + case Qt::VerPattern: return "VerPattern"; - case TQt::CrossPattern: + case Qt::CrossPattern: return "CrossPattern"; - case TQt::BDiagPattern: + case Qt::BDiagPattern: return "BDiagPattern"; - case TQt::FDiagPattern: + case Qt::FDiagPattern: return "FDiagPattern"; - case TQt::DiagCrossPattern: + case Qt::DiagCrossPattern: return "DiagCrossPattern"; default: // should not happen (but can for a custom pattern) return "SolidPattern"; @@ -399,7 +399,7 @@ bool readBrushNode( const TQDomElement& element, TQBrush& brush ) { bool ok = true; TQColor tempColor; - TQt::BrushStyle tempStyle; + Qt::BrushStyle tempStyle; TQPixmap tempPixmap; TQDomNode node = element.firstChild(); while( !node.isNull() ) { @@ -506,7 +506,7 @@ bool readPenNode( const TQDomElement& element, TQPen& pen ) bool ok = true; int tempWidth; TQColor tempColor; - TQt::PenStyle tempStyle; + Qt::PenStyle tempStyle; TQDomNode node = element.firstChild(); while( !node.isNull() ) { TQDomElement element = node.toElement(); @@ -705,60 +705,60 @@ bool readTimeNode( const TQDomElement& element, TQTime& value ) -TQt::PenStyle stringToPenStyle( const TQString& style ) +Qt::PenStyle stringToPenStyle( const TQString& style ) { if( style == "NoPen" ) - return TQt::NoPen; + return Qt::NoPen; else if( style == "SolidLine" ) - return TQt::SolidLine; + return Qt::SolidLine; else if( style == "DashLine" ) - return TQt::DashLine; + return Qt::DashLine; else if( style == "DotLine" ) - return TQt::DotLine; + return Qt::DotLine; else if( style == "DashDotLine" ) - return TQt::DashDotLine; + return Qt::DashDotLine; else if( style == "DashDotDotLine" ) - return TQt::DashDotDotLine; + return Qt::DashDotDotLine; else // should not happen - return TQt::SolidLine; + return Qt::SolidLine; } -TQt::BrushStyle stringToBrushStyle( const TQString& style ) +Qt::BrushStyle stringToBrushStyle( const TQString& style ) { // PENDING(kalle) Support custom patterns if( style == "NoBrush" ) - return TQt::NoBrush; + return Qt::NoBrush; else if( style == "SolidPattern" ) - return TQt::SolidPattern; + return Qt::SolidPattern; else if( style == "Dense1Pattern" ) - return TQt::Dense1Pattern; + return Qt::Dense1Pattern; else if( style == "Dense2Pattern" ) - return TQt::Dense2Pattern; + return Qt::Dense2Pattern; else if( style == "Dense3Pattern" ) - return TQt::Dense3Pattern; + return Qt::Dense3Pattern; else if( style == "Dense4Pattern" ) - return TQt::Dense4Pattern; + return Qt::Dense4Pattern; else if( style == "Dense5Pattern" ) - return TQt::Dense5Pattern; + return Qt::Dense5Pattern; else if( style == "Dense6Pattern" ) - return TQt::Dense6Pattern; + return Qt::Dense6Pattern; else if( style == "Dense7Pattern" ) - return TQt::Dense7Pattern; + return Qt::Dense7Pattern; else if( style == "HorPattern" ) - return TQt::HorPattern; + return Qt::HorPattern; else if( style == "VerPattern" ) - return TQt::VerPattern; + return Qt::VerPattern; else if( style == "CrossPattern" ) - return TQt::CrossPattern; + return Qt::CrossPattern; else if( style == "BDiagPattern" ) - return TQt::BDiagPattern; + return Qt::BDiagPattern; else if( style == "FDiagPattern" ) - return TQt::FDiagPattern; + return Qt::FDiagPattern; else if( style == "DiagCrossPattern" ) - return TQt::DiagCrossPattern; + return Qt::DiagCrossPattern; else // should not happen (but can with custom patterns) - return TQt::SolidPattern; + return Qt::SolidPattern; } } -- cgit v1.2.1