From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDFrameProfileSection.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'libkdchart/KDFrameProfileSection.h') diff --git a/libkdchart/KDFrameProfileSection.h b/libkdchart/KDFrameProfileSection.h index f1b4ac8..8ca011e 100644 --- a/libkdchart/KDFrameProfileSection.h +++ b/libkdchart/KDFrameProfileSection.h @@ -29,9 +29,9 @@ #ifndef __KDFRAMEPROFILESECTION__ #define __KDFRAMEPROFILESECTION__ -#include -#include -#include +#include +#include +#include #include "KDChartGlobal.h" @@ -51,7 +51,7 @@ public: \Note Since a frame border may consist of several parts you must specify the direction mode for each of these parts. This is quite different from the - QFrame::Shadow / QFrame::Shape schema where you would select a predefined + TQFrame::Shadow / TQFrame::Shape schema where you would select a predefined profile. KDFrame lets you specify both the number of sections used to compose frame border's profile and the look of each individual section by calling \c addProfileSection() multiple times. @@ -70,7 +70,7 @@ public: \param dir the direction enum to convert \return the string representation of the direction enum */ - static QString directionToString( Direction dir ) { + static TQString directionToString( Direction dir ) { switch( dir ) { case DirPlain: return "Plain"; @@ -90,7 +90,7 @@ public: \param string the string to convert \return the direction enum value */ - static Direction stringToDirection( const QString& string ) { + static Direction stringToDirection( const TQString& string ) { if( string == "Plain" ) return DirPlain; else if( string == "Raising" ) @@ -104,7 +104,7 @@ public: /** - Profile Curvature Mode: specifying the shape of a frame profile section. + Profile Curvature Mode: specifying the tqshape of a frame profile section. (curvature setting will be ignored for \c DirPlain profiles) \li \c CvtFlat looking like a evenly sloping surface. @@ -119,7 +119,7 @@ public: \param curv the curvature enum to convert \return the string representation of the curvature enum */ - static QString curvatureToString( Curvature curv ) { + static TQString curvatureToString( Curvature curv ) { switch( curv ) { case CvtPlain: return "Plain"; @@ -139,7 +139,7 @@ public: \param string the string to convert \return the curvature enum value */ - static Curvature stringToCurvature( const QString& string ) { + static Curvature stringToCurvature( const TQString& string ) { if( string == "Plain" ) return CvtPlain; else if( string == "Convex" ) @@ -160,7 +160,7 @@ public: KDFrameProfileSection( Direction direction, Curvature curvature, int width, - QPen pen ) + TQPen pen ) : _direction( direction ), _curvature( curvature ), _width( width ), @@ -176,7 +176,7 @@ public: _direction = DirPlain; _curvature = CvtPlain; _width = 1; - _pen = QPen( Qt::SolidLine ); + _pen = TQPen( TQt::SolidLine ); } /** @@ -189,13 +189,13 @@ public: section for use in a DOM document. \param document the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param section the section to be represented */ - static void createFrameProfileSectionNode( QDomDocument& document, - QDomNode& parent, - const QString& elementName, + static void createFrameProfileSectionNode( TQDomDocument& document, + TQDomNode& tqparent, + const TQString& elementName, const KDFrameProfileSection* section ); /** @@ -207,19 +207,19 @@ public: \param section a pointer to the frame profile section object to read the data into */ - static bool readFrameProfileSectionNode( const QDomElement& element, + static bool readFrameProfileSectionNode( const TQDomElement& element, KDFrameProfileSection* section ); Direction direction() const { return _direction; } Curvature curvature() const { return _curvature; } int width() const { return _width; } - QPen pen() const { return _pen; } + TQPen pen() const { return _pen; } private: Direction _direction; Curvature _curvature; int _width; - QPen _pen; + TQPen _pen; }; /** @@ -227,6 +227,6 @@ private: \sa setProfile, profile */ -typedef QPtrList < KDFrameProfileSection > KDFrameProfile; +typedef TQPtrList < KDFrameProfileSection > KDFrameProfile; #endif -- cgit v1.2.1