summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrVariableCollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrVariableCollection.cpp')
-rw-r--r--kpresenter/KPrVariableCollection.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpresenter/KPrVariableCollection.cpp b/kpresenter/KPrVariableCollection.cpp
index 2c436a527..d7312e756 100644
--- a/kpresenter/KPrVariableCollection.cpp
+++ b/kpresenter/KPrVariableCollection.cpp
@@ -34,9 +34,9 @@ KPrVariableCollection::KPrVariableCollection(KoVariableSettings *_setting, KoVar
{
}
-KoVariable* KPrVariableCollection::loadOasisField( KoTextDocument* textdoc, const QDomElement& tag, KoOasisContext& context )
+KoVariable* KPrVariableCollection::loadOasisField( KoTextDocument* textdoc, const TQDomElement& tag, KoOasisContext& context )
{
- const QString localName( tag.localName() );
+ const TQString localName( tag.localName() );
const bool isTextNS = tag.namespaceURI() == KoXmlNS::text;
if ( isTextNS )
{
@@ -51,7 +51,7 @@ KoVariable* KPrVariableCollection::loadOasisField( KoTextDocument* textdoc, cons
localName == "non-whitespace-character-count" ||
localName == "syllable-count" )
{
- QString key = "NUMBER";
+ TQString key = "NUMBER";
int type = VT_STATISTIC;
return loadOasisFieldCreateVariable( textdoc, tag, context, key, type );
}
@@ -101,7 +101,7 @@ void KPrPgNumVariable::recalc()
{
if ( m_subtype == VST_PGNUM_TOTAL )
{
- m_varValue = QVariant( (int)(m_doc->getPageNums()+m_varColl->variableSetting()->startingPageNumber()-1));
+ m_varValue = TQVariant( (int)(m_doc->getPageNums()+m_varColl->variableSetting()->startingPageNumber()-1));
resize();
}
// But we don't want to keep a width of -1 ...
@@ -131,7 +131,7 @@ void KPrStatisticVariable::recalc()
KPrPage *page = m_doc->activePage();
if( !page) //When we load activePage is null
return;
- QPtrListIterator<KPrObject> objIt( page->objectList() );
+ TQPtrListIterator<KPrObject> objIt( page->objectList() );
for ( objIt.toFirst(); objIt.current(); ++objIt )
{
@@ -183,13 +183,13 @@ void KPrStatisticVariable::recalc()
nb = 0;
}
- m_varValue = QVariant(nb);
+ m_varValue = TQVariant(nb);
resize();
if ( width == -1 )
width = 0;
}
-QString KPrStatisticVariable::text(bool realValue)
+TQString KPrStatisticVariable::text(bool realValue)
{
if (m_varColl->variableSetting()->displayFieldCode()&& !realValue)
return fieldCode();