summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDXMLTools.cpp
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/KDXMLTools.cpp
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/KDXMLTools.cpp')
-rw-r--r--libkdchart/KDXMLTools.cpp64
1 files changed, 32 insertions, 32 deletions
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",