diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kchart/kdchart/KDXMLTools.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kdchart/KDXMLTools.h')
-rw-r--r-- | kchart/kdchart/KDXMLTools.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/kchart/kdchart/KDXMLTools.h b/kchart/kdchart/KDXMLTools.h index 7798c20e..c633fba2 100644 --- a/kchart/kdchart/KDXMLTools.h +++ b/kchart/kdchart/KDXMLTools.h @@ -32,73 +32,73 @@ // *must* include this one as first one: #include <KDChartGlobal.h> -#include <qpen.h> -#include <qdom.h> -#include <qstring.h> -#include <qcolor.h> -#include <qbrush.h> -#include <qsize.h> -#include <qrect.h> -#include <qfont.h> -#include <qstringlist.h> -#include <qdatetime.h> +#include <tqpen.h> +#include <tqdom.h> +#include <tqstring.h> +#include <tqcolor.h> +#include <tqbrush.h> +#include <tqsize.h> +#include <tqrect.h> +#include <tqfont.h> +#include <tqstringlist.h> +#include <tqdatetime.h> namespace KDXML { - QString penStyleToString( Qt::PenStyle style ); - Qt::PenStyle stringToPenStyle( const QString& style ); - QString brushStyleToString( Qt::BrushStyle style ); - Qt::BrushStyle stringToBrushStyle( const QString& style ); + TQString penStyleToString( Qt::PenStyle style ); + Qt::PenStyle stringToPenStyle( const TQString& style ); + TQString brushStyleToString( Qt::BrushStyle style ); + Qt::BrushStyle stringToBrushStyle( const TQString& style ); - void createBoolNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, bool value ); - void createOrientationNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, Qt::Orientation value ); - void createSizeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QSize& value ); - void createIntNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, int value ); - void createDoubleNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, double value ); - void createStringNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QString& text ); - void createColorNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QColor& color ); - void createBrushNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QBrush& brush ); - void createPixmapNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QPixmap& pixmap ); - void createRectNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QRect& rect ); - void createStringListNodes( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QStringList* thelist ); // PCH: This is required to avoid MSVC compiler warnings and errors. - void createFontNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QFont& font ); + void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, bool value ); + void createOrientationNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, Qt::Orientation value ); + void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQSize& value ); + void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, int value ); + void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, double value ); + void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQString& text ); + void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQColor& color ); + void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQBrush& brush ); + void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQPixmap& pixmap ); + void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQRect& rect ); + void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQStringList* thelist ); // PCH: This is required to avoid MSVC compiler warnings and errors. + void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQFont& font ); - void createPenNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QPen& pen ); - void createDateTimeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QDateTime& datetime ); - void createDateNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QDate& date ); - void createTimeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QTime& time ); - bool readIntNode( const QDomElement& element, int& value ); - bool readStringNode( const QDomElement& element, QString& value ); - bool readDoubleNode( const QDomElement& element, double& value ); - bool readBoolNode( const QDomElement& element, bool& value ); - bool readOrientationNode( const QDomElement& element, Qt::Orientation& value ); - bool readSizeNode( const QDomElement& element, QSize& value ); - bool readColorNode( const QDomElement& element, QColor& value ); - bool readBrushNode( const QDomElement& element, QBrush& brush ); - bool readPixmapNode( const QDomElement& element, QPixmap& pixmap ); - bool readRectNode( const QDomElement& element, QRect& value ); - bool readFontNode( const QDomElement& element, QFont& font ); - bool readPenNode( const QDomElement& element, QPen& pen ); - bool readDateTimeNode( const QDomElement& element, QDateTime& datetime ); - bool readDateNode( const QDomElement& element, QDate& date ); - bool readTimeNode( const QDomElement& element, QTime& time ); + void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQPen& pen ); + void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQDateTime& datetime ); + void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQDate& date ); + void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQTime& time ); + bool readIntNode( const TQDomElement& element, int& value ); + bool readStringNode( const TQDomElement& element, TQString& value ); + bool readDoubleNode( const TQDomElement& element, double& value ); + bool readBoolNode( const TQDomElement& element, bool& value ); + bool readOrientationNode( const TQDomElement& element, Qt::Orientation& value ); + bool readSizeNode( const TQDomElement& element, TQSize& value ); + bool readColorNode( const TQDomElement& element, TQColor& value ); + bool readBrushNode( const TQDomElement& element, TQBrush& brush ); + bool readPixmapNode( const TQDomElement& element, TQPixmap& pixmap ); + bool readRectNode( const TQDomElement& element, TQRect& value ); + bool readFontNode( const TQDomElement& element, TQFont& font ); + bool readPenNode( const TQDomElement& element, TQPen& pen ); + bool readDateTimeNode( const TQDomElement& element, TQDateTime& datetime ); + bool readDateNode( const TQDomElement& element, TQDate& date ); + bool readTimeNode( const TQDomElement& element, TQTime& time ); } #endif |