summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoVariable.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
commit7c71ab86d1f7e387fc3df63b48df07231f111862 (patch)
tree30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /lib/kotext/KoVariable.cpp
parentafbfdc507bfaafc8824a9808311d57a9ece87510 (diff)
downloadkoffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz
koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/KoVariable.cpp')
-rw-r--r--lib/kotext/KoVariable.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp
index e333eb36..bd03ecf9 100644
--- a/lib/kotext/KoVariable.cpp
+++ b/lib/kotext/KoVariable.cpp
@@ -165,10 +165,10 @@ void KoVariableSettings::loadOasis(const KoOasisSettings&settingsDoc)
}
}
-void KoVariableSettings::save( TQDomElement &tqparentElem )
+void KoVariableSettings::save( TQDomElement &parentElem )
{
- TQDomElement elem = tqparentElem.ownerDocument().createElement( "VARIABLESETTINGS" );
- tqparentElem.appendChild( elem );
+ TQDomElement elem = parentElem.ownerDocument().createElement( "VARIABLESETTINGS" );
+ parentElem.appendChild( elem );
if(m_startingPageNumber!=1)
{
elem.setAttribute( "startingPageNumber", m_startingPageNumber );
@@ -991,18 +991,18 @@ void KoVariable::drawCustomItemHelper( TQPainter* p, int x, int y, int wpix, int
// Do like KoTextFormatter: do the tqlayout in tqlayout units.
xLU += KoTextZoomHandler::ptToLayoutUnitPt( fm.width( ch ) );
// And then compute the X position in pixels from the tqlayout unit X.
- x = zh->tqlayoutUnitToPixelX( xLU );
+ x = zh->layoutUnitToPixelX( xLU );
}
p->restore();
}
-void KoVariable::save( TQDomElement &tqparentElem )
+void KoVariable::save( TQDomElement &parentElem )
{
//kdDebug(32500) << "KoVariable::save" << endl;
- TQDomElement variableElem = tqparentElem.ownerDocument().createElement( "VARIABLE" );
- tqparentElem.appendChild( variableElem );
- TQDomElement typeElem = tqparentElem.ownerDocument().createElement( "TYPE" );
+ TQDomElement variableElem = parentElem.ownerDocument().createElement( "VARIABLE" );
+ parentElem.appendChild( variableElem );
+ TQDomElement typeElem = parentElem.ownerDocument().createElement( "TYPE" );
variableElem.appendChild( typeElem );
typeElem.setAttribute( "type", static_cast<int>( type() ) );
@@ -1490,10 +1490,10 @@ void KoTimeVariable::recalc()
}
-void KoTimeVariable::saveVariable( TQDomElement& tqparentElem )
+void KoTimeVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement elem = tqparentElem.ownerDocument().createElement( "TIME" );
- tqparentElem.appendChild( elem );
+ TQDomElement elem = parentElem.ownerDocument().createElement( "TIME" );
+ parentElem.appendChild( elem );
TQTime time = m_varValue.toTime();
time = time.addSecs(-60*m_correctTime);
@@ -1687,10 +1687,10 @@ TQString KoCustomVariable::text(bool realValue)
-void KoCustomVariable::saveVariable( TQDomElement& tqparentElem )
+void KoCustomVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement elem = tqparentElem.ownerDocument().createElement( "CUSTOM" );
- tqparentElem.appendChild( elem );
+ TQDomElement elem = parentElem.ownerDocument().createElement( "CUSTOM" );
+ parentElem.appendChild( elem );
elem.setAttribute( "name", m_varValue.toString() );
elem.setAttribute( "value", value() );
}
@@ -1777,10 +1777,10 @@ void KoMailMergeVariable::saveOasis( KoXmlWriter& /*writer*/, KoSavingContext& /
-void KoMailMergeVariable::saveVariable( TQDomElement& tqparentElem )
+void KoMailMergeVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement elem = tqparentElem.ownerDocument().createElement( "MAILMERGE" );
- tqparentElem.appendChild( elem );
+ TQDomElement elem = parentElem.ownerDocument().createElement( "MAILMERGE" );
+ parentElem.appendChild( elem );
elem.setAttribute( "name", m_varValue.toString() );
}
@@ -1837,10 +1837,10 @@ TQString KoPageVariable::fieldCode()
}
-void KoPageVariable::saveVariable( TQDomElement& tqparentElem )
+void KoPageVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement pgNumElem = tqparentElem.ownerDocument().createElement( "PGNUM" );
- tqparentElem.appendChild( pgNumElem );
+ TQDomElement pgNumElem = parentElem.ownerDocument().createElement( "PGNUM" );
+ parentElem.appendChild( pgNumElem );
pgNumElem.setAttribute( "subtype", m_subtype );
if ( m_subtype != VST_CURRENT_SECTION )
pgNumElem.setAttribute( "value", m_varValue.toInt() );
@@ -2046,11 +2046,11 @@ TQString KoFieldVariable::text(bool realValue)
} // use a format when they are customizable
-void KoFieldVariable::saveVariable( TQDomElement& tqparentElem )
+void KoFieldVariable::saveVariable( TQDomElement& parentElem )
{
//kdDebug(32500) << "KoFieldVariable::saveVariable" << endl;
- TQDomElement elem = tqparentElem.ownerDocument().createElement( "FIELD" );
- tqparentElem.appendChild( elem );
+ TQDomElement elem = parentElem.ownerDocument().createElement( "FIELD" );
+ parentElem.appendChild( elem );
elem.setAttribute( "subtype", m_subtype );
elem.setAttribute( "value", m_varValue.toString() );
}
@@ -2455,10 +2455,10 @@ TQString KoLinkVariable::text(bool realValue)
return value();
}
-void KoLinkVariable::saveVariable( TQDomElement& tqparentElem )
+void KoLinkVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement linkElem = tqparentElem.ownerDocument().createElement( "LINK" );
- tqparentElem.appendChild( linkElem );
+ TQDomElement linkElem = parentElem.ownerDocument().createElement( "LINK" );
+ parentElem.appendChild( linkElem );
linkElem.setAttribute( "linkName", m_varValue.toString() );
linkElem.setAttribute( "hrefName", m_url );
}
@@ -2557,10 +2557,10 @@ void KoNoteVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& /*context*
writer.endElement();
}
-void KoNoteVariable::saveVariable( TQDomElement& tqparentElem )
+void KoNoteVariable::saveVariable( TQDomElement& parentElem )
{
- TQDomElement linkElem = tqparentElem.ownerDocument().createElement( "NOTE" );
- tqparentElem.appendChild( linkElem );
+ TQDomElement linkElem = parentElem.ownerDocument().createElement( "NOTE" );
+ parentElem.appendChild( linkElem );
linkElem.setAttribute( "note", m_varValue.toString() );
}