summaryrefslogtreecommitdiffstats
path: root/libkdchart
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit902ba103f2215bcefa22d62b1c9138aa4b88891c (patch)
tree63ef88424b9be33a31e5a8de61343fb8d7633937 /libkdchart
parent7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (diff)
downloadkmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.tar.gz
kmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdchart')
-rw-r--r--libkdchart/KDChartCustomBox.cpp4
-rw-r--r--libkdchart/KDChartCustomBox.h4
-rw-r--r--libkdchart/KDChartParams.h10
-rw-r--r--libkdchart/KDChartParams_frame.cpp6
-rw-r--r--libkdchart/KDChartParams_io.cpp26
-rw-r--r--libkdchart/KDChartPropertySet.h6
-rw-r--r--libkdchart/KDChartWidget.cpp12
-rw-r--r--libkdchart/KDChartWidget.h4
-rw-r--r--libkdchart/KDDrawText.cpp6
-rw-r--r--libkdchart/KDFrame.cpp12
-rw-r--r--libkdchart/KDFrame.h16
-rw-r--r--libkdchart/KDFrameProfileSection.cpp4
-rw-r--r--libkdchart/KDFrameProfileSection.h4
-rw-r--r--libkdchart/KDXMLTools.cpp64
-rw-r--r--libkdchart/KDXMLTools.h32
15 files changed, 105 insertions, 105 deletions
diff --git a/libkdchart/KDChartCustomBox.cpp b/libkdchart/KDChartCustomBox.cpp
index d500356..9b4d785 100644
--- a/libkdchart/KDChartCustomBox.cpp
+++ b/libkdchart/KDChartCustomBox.cpp
@@ -347,12 +347,12 @@ qDebug("pdWidth: %i box myRect w: %i h %i",pdWidth,myRect.width(),myRect.hei
void KDChartCustomBox::createCustomBoxNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDChartCustomBox* custombox )
{
TQDomElement customBoxElement = document.createElement( elementName );
- tqparent.appendChild( customBoxElement );
+ parent.appendChild( customBoxElement );
KDXML::createIntNode( document, customBoxElement, "Rotation", custombox->_rotation );
KDXML::createStringNode( document, customBoxElement, "ContentText",
custombox->_content.text() );
diff --git a/libkdchart/KDChartCustomBox.h b/libkdchart/KDChartCustomBox.h
index 17b4782..223920e 100644
--- a/libkdchart/KDChartCustomBox.h
+++ b/libkdchart/KDChartCustomBox.h
@@ -368,12 +368,12 @@ public:
in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param custombox the custom box to be represented
*/
static void createCustomBoxNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDChartCustomBox* custombox );
diff --git a/libkdchart/KDChartParams.h b/libkdchart/KDChartParams.h
index 7ae8c27..1672269 100644
--- a/libkdchart/KDChartParams.h
+++ b/libkdchart/KDChartParams.h
@@ -329,7 +329,7 @@ public:
static void createFrameSettingsNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDChartFrameSettings* settings,
uint areaId );
@@ -2418,18 +2418,18 @@ public:
friend TQTextStream& operator>>( TQTextStream& s, KDChartParams& p );
public slots:
- static void createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent,
+ static void createChartValueNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQVariant& valY,
const TQVariant& valX,
const int& propID );
- static void createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ static void createColorMapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQMap< uint, TQColor >& map );
- static void createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ static void createDoubleMapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQMap< int, double >& map );
- static void createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+ static void createChartFontNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQFont& font, bool useRelFont,
int relFont,
diff --git a/libkdchart/KDChartParams_frame.cpp b/libkdchart/KDChartParams_frame.cpp
index 30aec04..2c8d92e 100644
--- a/libkdchart/KDChartParams_frame.cpp
+++ b/libkdchart/KDChartParams_frame.cpp
@@ -248,18 +248,18 @@ bool KDChartParams::KDChartFrameSettings::readFrameSettingsNode( const TQDomElem
object for use in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param settings the frame settings to be represented
*/
void KDChartParams::KDChartFrameSettings::createFrameSettingsNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDChartParams::KDChartFrameSettings* settings,
uint areaId )
{
TQDomElement frameSettingsElement = document.createElement( elementName );
- tqparent.appendChild( frameSettingsElement );
+ parent.appendChild( frameSettingsElement );
if( settings->_frame )
KDFrame::createFrameNode( document, frameSettingsElement, "Frame",
*settings->_frame );
diff --git a/libkdchart/KDChartParams_io.cpp b/libkdchart/KDChartParams_io.cpp
index 2feaf17..4f17e65 100644
--- a/libkdchart/KDChartParams_io.cpp
+++ b/libkdchart/KDChartParams_io.cpp
@@ -2247,17 +2247,17 @@ bool KDChartParams::loadXML( const TQDomDocument& doc )
for use in a DOM document.
\param doc the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param map the map of colors to be represented
*/
-void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQMap< uint, TQColor >& map )
{
TQDomElement mapElement =
doc.createElement( elementName );
- tqparent.appendChild( mapElement );
+ parent.appendChild( mapElement );
for( TQMap<uint,TQColor>::ConstIterator it = map.begin();
it != map.end(); ++it ) {
// Dataset element
@@ -2277,17 +2277,17 @@ void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent,
for use in a DOM document.
\param doc the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param map the map of doubles to be represented
*/
-void KDChartParams::createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+void KDChartParams::createDoubleMapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQMap< int, double >& map )
{
TQDomElement mapElement =
doc.createElement( elementName );
- tqparent.appendChild( mapElement );
+ parent.appendChild( mapElement );
for( TQMap<int,double>::ConstIterator it = map.begin();
it != map.end(); ++it ) {
// Dataset element
@@ -2321,18 +2321,18 @@ void dataCoordToElementAttr(const TQVariant& val, TQDomElement& element, const T
chart value for use in a DOM document.
\param doc the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param data the chart value to be represented
*/
-void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent,
+void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQVariant& valY,
const TQVariant& valX,
const int& propID )
{
TQDomElement element = doc.createElement( elementName );
- tqparent.appendChild( element );
+ parent.appendChild( element );
dataCoordToElementAttr( valY, element, "" ); // no postfix for Y value: backwards compat.
dataCoordToElementAttr( valX, element, "X" );
element.setAttribute( "PropertySetID",
@@ -2346,7 +2346,7 @@ void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparen
chart for use in a DOM document.
\param doc the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param font the font to be resented
\param useRelFont the specification whether the font size
@@ -2354,14 +2354,14 @@ void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparen
\param relFont the relative font size
\param minFont the minimal font size in points, leave this parameter out if not needed
*/
-void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQFont& font, bool useRelFont,
int relFont,
int minFont )
{
TQDomElement chartFontElement = doc.createElement( elementName );
- tqparent.appendChild( chartFontElement );
+ parent.appendChild( chartFontElement );
KDXML::createFontNode( doc, chartFontElement, "Font", font );
KDXML::createBoolNode( doc, chartFontElement, "UseRelFontSize",
useRelFont );
@@ -2379,7 +2379,7 @@ void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent
for use in a DOM document.
\param doc the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param map the color map to be represented
*/
diff --git a/libkdchart/KDChartPropertySet.h b/libkdchart/KDChartPropertySet.h
index a3e9495..cdd64f7 100644
--- a/libkdchart/KDChartPropertySet.h
+++ b/libkdchart/KDChartPropertySet.h
@@ -107,12 +107,12 @@ class KDCHART_EXPORT KDChartPropertySet :public TQObject
This constructor may be used to initialize a property set
and let it have all property IDs set to a specific value,
e.g. you might pass KDCHART_PROPSET_NORMAL_DATA
- as ID to make the default property set the tqparent of all
+ as ID to make the default property set the parent of all
values.
\param name (may be empty) a name describing this property set.
- \param idParent the ID of the tqparent property set. Skip this paramter
- to define a property set without specifying a tqparent.
+ \param idParent the ID of the parent property set. Skip this paramter
+ to define a property set without specifying a parent.
*/
KDChartPropertySet( const TQString& name, int idParent=KDChartPropertySet::UndefinedID ) :
mOwnID( UndefinedID )
diff --git a/libkdchart/KDChartWidget.cpp b/libkdchart/KDChartWidget.cpp
index c3e42b8..d530ea1 100644
--- a/libkdchart/KDChartWidget.cpp
+++ b/libkdchart/KDChartWidget.cpp
@@ -65,12 +65,12 @@
and setData before using this chart otherwise only a simple
default bar chart will be shown.
- \param tqparent the widget tqparent; passed on to TQWidget
+ \param parent the widget parent; passed on to TQWidget
\param name the widget name; passed on to TQWidget
*/
-KDChartWidget::KDChartWidget( TQWidget* tqparent, const char* name ) :
-TQWidget( tqparent, name ),
+KDChartWidget::KDChartWidget( TQWidget* parent, const char* name ) :
+TQWidget( parent, name ),
_params( 0 ),
_data( 0 ),
_activeData( false ),
@@ -87,14 +87,14 @@ _mousePressedOnRegion( 0 )
\param params the specification of the chart
\param data the data to be displayed as a chart
- \param tqparent the widget tqparent; passed on to TQWidget
+ \param parent the widget parent; passed on to TQWidget
\param name the widget name; passed on to TQWidget
*/
KDChartWidget::KDChartWidget( KDChartParams* params,
KDChartTableDataBase* data,
- TQWidget* tqparent, const char* name ) :
-TQWidget( tqparent, name ),
+ TQWidget* parent, const char* name ) :
+TQWidget( parent, name ),
_params( params ),
_data( data ),
_activeData( false ),
diff --git a/libkdchart/KDChartWidget.h b/libkdchart/KDChartWidget.h
index 635e0bd..a68951d 100644
--- a/libkdchart/KDChartWidget.h
+++ b/libkdchart/KDChartWidget.h
@@ -53,10 +53,10 @@ class KDCHART_EXPORT KDChartWidget : public TQWidget
TQ_PROPERTY( bool doubleBuffered READ isDoubleBuffered WRITE setDoubleBuffered )
public:
- KDChartWidget( TQWidget* tqparent = 0, const char* name = 0 );
+ KDChartWidget( TQWidget* parent = 0, const char* name = 0 );
KDChartWidget( KDChartParams* params,
KDChartTableDataBase* data,
- TQWidget* tqparent = 0, const char* name = 0 );
+ TQWidget* parent = 0, const char* name = 0 );
~KDChartWidget();
public slots:
diff --git a/libkdchart/KDDrawText.cpp b/libkdchart/KDDrawText.cpp
index a954a5b..70283da 100644
--- a/libkdchart/KDDrawText.cpp
+++ b/libkdchart/KDDrawText.cpp
@@ -356,9 +356,9 @@ void KDDrawText::drawRotatedTxt( TQPainter* painter,
TQt::AlignLeft + TQt::AlignTop );
*/
- TQBitmap tqmask;
- tqmask = pm;
- pm.setMask( tqmask );
+ TQBitmap mask;
+ mask = pm;
+ pm.setMask( mask );
TQWMatrix m;
m.rotate( degrees );
TQPixmap theRotatedPixmap = pm.xForm(m);
diff --git a/libkdchart/KDFrame.cpp b/libkdchart/KDFrame.cpp
index 23bdcc3..3904bf1 100644
--- a/libkdchart/KDFrame.cpp
+++ b/libkdchart/KDFrame.cpp
@@ -404,12 +404,12 @@ void KDFrame::setSimpleFrame( SimpleFrame frame,
}
-void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& tqparent,
+void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& parent,
const TQString& elementName,
const KDFrame& frame )
{
TQDomElement frameElement = document.createElement( elementName );
- tqparent.appendChild( frameElement );
+ parent.appendChild( frameElement );
KDXML::createIntNode( document, frameElement, "ShadowWidth",
frame._shadowWidth );
KDXML::createStringNode( document, frameElement, "CornerName",
@@ -442,12 +442,12 @@ void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& tqparent,
frame._cornerBR );
}
-void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& tqparent,
+void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& parent,
const TQString& elementName,
KDFrameProfile profile )
{
TQDomElement profileElement = document.createElement( elementName );
- tqparent.appendChild( profileElement );
+ parent.appendChild( profileElement );
for( const KDFrameProfileSection* section = profile.first(); section != 0;
section = profile.next() )
KDFrameProfileSection::createFrameProfileSectionNode( document,
@@ -458,12 +458,12 @@ void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& tqpare
void KDFrame::KDFrameCorner::createFrameCornerNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDFrameCorner& corner )
{
TQDomElement cornerElement = document.createElement( elementName );
- tqparent.appendChild( cornerElement );
+ parent.appendChild( cornerElement );
KDXML::createStringNode( document, cornerElement, "Style",
KDFrame::cornerStyleToString( corner._style ) );
KDXML::createIntNode( document, cornerElement, "Width",
diff --git a/libkdchart/KDFrame.h b/libkdchart/KDFrame.h
index be31597..78de8ff 100644
--- a/libkdchart/KDFrame.h
+++ b/libkdchart/KDFrame.h
@@ -516,13 +516,13 @@ public:
in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param corner the corner to be represented
\endif
*/
static void createFrameCornerNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDFrameCorner& corner );
@@ -899,7 +899,7 @@ public:
/**
Default Constructor. Defines default values.
- The constructor does *not* have a \c tqparent parameter since drawing
+ The constructor does *not* have a \c parent parameter since drawing
of the frame is not done transparently but by (one or more) explicit
calls of the frames paint() methode. See explanation given there
to learn about the why and how of this...
@@ -942,7 +942,7 @@ public:
/*
Constructor. Set up a frame by copying settings of another frame.
- The constructor does *not* have a \c tqparent parameter since drawing
+ The constructor does *not* have a \c parent parameter since drawing
of the frame is not done transparently but by (one or more) explicit
calls of the frames paint() methode. See explanation given there
to learn about the why and how of this...
@@ -1011,11 +1011,11 @@ public:
in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param frame the frame to be represented
*/
- static void createFrameNode( TQDomDocument& document, TQDomNode& tqparent,
+ static void createFrameNode( TQDomDocument& document, TQDomNode& parent,
const TQString& elementName,
const KDFrame& frame );
@@ -1024,12 +1024,12 @@ public:
in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent node to which the new node will be appended
\param elementName the name of the new node
\param profile the profile to be represented
*/
static void createFrameProfileNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
KDFrameProfile profile );
diff --git a/libkdchart/KDFrameProfileSection.cpp b/libkdchart/KDFrameProfileSection.cpp
index 924e864..38c6fa4 100644
--- a/libkdchart/KDFrameProfileSection.cpp
+++ b/libkdchart/KDFrameProfileSection.cpp
@@ -36,13 +36,13 @@ KDFrameProfileSection::~KDFrameProfileSection()
void KDFrameProfileSection::createFrameProfileSectionNode( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDFrameProfileSection* section )
{
TQDomElement sectionElement = document.createElement( elementName );
- tqparent.appendChild( sectionElement );
+ parent.appendChild( sectionElement );
KDXML::createStringNode( document, sectionElement, "Direction",
KDFrameProfileSection::directionToString( section->_direction ) );
KDXML::createStringNode( document, sectionElement, "Curvature",
diff --git a/libkdchart/KDFrameProfileSection.h b/libkdchart/KDFrameProfileSection.h
index 8ca011e..9fe38ad 100644
--- a/libkdchart/KDFrameProfileSection.h
+++ b/libkdchart/KDFrameProfileSection.h
@@ -189,12 +189,12 @@ public:
section for use in a DOM document.
\param document the DOM document to which the node will belong
- \param tqparent the tqparent node to which the new node will be appended
+ \param parent the parent 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( TQDomDocument& document,
- TQDomNode& tqparent,
+ TQDomNode& parent,
const TQString& elementName,
const KDFrameProfileSection* section );
diff --git a/libkdchart/KDXMLTools.cpp b/libkdchart/KDXMLTools.cpp
index bff4c72..bf03b36 100644
--- a/libkdchart/KDXMLTools.cpp
+++ b/libkdchart/KDXMLTools.cpp
@@ -33,24 +33,24 @@
namespace KDXML {
- void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createBoolNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, bool value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( value ? "true" : "false" );
newElement.appendChild( elementContent );
}
- void createOrientationNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createOrientationNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, Qt::Orientation value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( (Qt::Vertical == value) ? "vertical" : "horizontal" );
newElement.appendChild( elementContent );
@@ -58,59 +58,59 @@ namespace KDXML {
- void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createSizeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQSize& value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
newElement.setAttribute( "Width", value.width() );
newElement.setAttribute( "Height", value.height() );
}
- void createIntNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createIntNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, int value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( TQString::number( value ) );
newElement.appendChild( elementContent );
}
- void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDoubleNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, double value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( TQString::number( value ) );
newElement.appendChild( elementContent );
}
- void createStringNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createStringNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQString& text )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( text );
newElement.appendChild( elementContent );
}
- void createColorNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createColorNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQColor& color )
{
TQDomElement colorElement = doc.createElement( elementName );
- tqparent.appendChild( colorElement );
+ parent.appendChild( colorElement );
colorElement.setAttribute( "Red",
TQString::number( color.red() ) );
colorElement.setAttribute( "Green",
@@ -120,12 +120,12 @@ namespace KDXML {
}
- void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createBrushNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQBrush& brush )
{
TQDomElement brushElement = doc.createElement( elementName );
- tqparent.appendChild( brushElement );
+ parent.appendChild( brushElement );
createColorNode( doc, brushElement, "Color", brush.color() );
createStringNode( doc, brushElement, "Style",
KDXML::brushStyleToString( brush.style() ) );
@@ -134,11 +134,11 @@ namespace KDXML {
}
- void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createPixmapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPixmap& pixmap )
{
TQDomElement pixmapElement = doc.createElement( elementName );
- tqparent.appendChild( pixmapElement );
+ parent.appendChild( pixmapElement );
createStringNode( doc, pixmapElement, "Format", "XPM.GZ" );
if( pixmap.isNull() ){
@@ -172,11 +172,11 @@ namespace KDXML {
}
- void createRectNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createRectNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQRect& rect )
{
TQDomElement rectElement = doc.createElement( elementName );
- tqparent.appendChild( rectElement );
+ parent.appendChild( rectElement );
TQDomElement xElement = doc.createElement( "X" );
rectElement.appendChild( xElement );
TQDomText xContent = doc.createTextNode( TQString::number( rect.x() ) );
@@ -196,7 +196,7 @@ namespace KDXML {
}
- void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent,
+ void createStringListNodes( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQStringList* list )
{
@@ -206,18 +206,18 @@ namespace KDXML {
for( TQStringList::ConstIterator it = list->begin();
it != list->end(); ++it ) {
TQDomElement element = doc.createElement( elementName );
- tqparent.appendChild( element );
+ parent.appendChild( element );
TQDomText elementContent = doc.createTextNode( *it );
element.appendChild( elementContent );
}
}
- void createFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createFontNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQFont& font )
{
TQDomElement fontElement = doc.createElement( elementName );
- tqparent.appendChild( fontElement );
+ parent.appendChild( fontElement );
createStringNode( doc, fontElement, "Family", font.family() );
createIntNode( doc, fontElement, "PointSize", font.pointSize() );
createIntNode( doc, fontElement, "Weight", font.weight() );
@@ -229,44 +229,44 @@ namespace KDXML {
}
- void createPenNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createPenNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPen& pen )
{
TQDomElement penElement = doc.createElement( elementName );
- tqparent.appendChild( penElement );
+ parent.appendChild( penElement );
createIntNode( doc, penElement, "Width", pen.width() );
createColorNode( doc, penElement, "Color", pen.color() );
createStringNode( doc, penElement, "Style", penStyleToString( pen.style() ) );
}
- void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQDateTime& datetime )
{
TQDomElement dateTimeElement = doc.createElement( elementName );
- tqparent.appendChild( dateTimeElement );
+ parent.appendChild( dateTimeElement );
createDateNode( doc, dateTimeElement, "Date", datetime.date() );
createTimeNode( doc, dateTimeElement, "Time", datetime.time() );
}
- void createDateNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDateNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQDate& date )
{
TQDomElement dateElement = doc.createElement( elementName );
- tqparent.appendChild( dateElement );
+ parent.appendChild( dateElement );
dateElement.setAttribute( "Year", TQString::number( date.year() ) );
dateElement.setAttribute( "Month", TQString::number( date.month() ) );
dateElement.setAttribute( "Day", TQString::number( date.day() ) );
}
- void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQTime& time )
{
TQDomElement timeElement = doc.createElement( elementName );
- tqparent.appendChild( timeElement );
+ parent.appendChild( timeElement );
timeElement.setAttribute( "Hour",
TQString::number( time.hour() ) );
timeElement.setAttribute( "Minute",
diff --git a/libkdchart/KDXMLTools.h b/libkdchart/KDXMLTools.h
index c633fba..4ebe687 100644
--- a/libkdchart/KDXMLTools.h
+++ b/libkdchart/KDXMLTools.h
@@ -49,41 +49,41 @@ namespace KDXML {
TQString brushStyleToString( Qt::BrushStyle style );
Qt::BrushStyle stringToBrushStyle( const TQString& style );
- void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createBoolNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, bool value );
- void createOrientationNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createOrientationNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, Qt::Orientation value );
- void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createSizeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQSize& value );
- void createIntNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createIntNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, int value );
- void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDoubleNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, double value );
- void createStringNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createStringNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQString& text );
- void createColorNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createColorNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQColor& color );
- void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createBrushNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQBrush& brush );
- void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createPixmapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPixmap& pixmap );
- void createRectNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createRectNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQRect& rect );
- void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent,
+ void createStringListNodes( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQStringList* thelist ); // PCH: This is required to avoid MSVC compiler warnings and errors.
- void createFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createFontNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQFont& font );
- void createPenNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createPenNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPen& pen );
- void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQDateTime& datetime );
- void createDateNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createDateNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQDate& date );
- void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+ void createTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQTime& time );
bool readIntNode( const TQDomElement& element, int& value );
bool readStringNode( const TQDomElement& element, TQString& value );