diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /libkdchart/KDFrameProfileSection.h | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
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
Diffstat (limited to 'libkdchart/KDFrameProfileSection.h')
-rw-r--r-- | libkdchart/KDFrameProfileSection.h | 38 |
1 files changed, 19 insertions, 19 deletions
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 <qregion.h> -#include <qpen.h> -#include <qdom.h> +#include <tqregion.h> +#include <tqpen.h> +#include <tqdom.h> #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 |