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 /kpresenter/KPrVariableCollection.cpp | |
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 'kpresenter/KPrVariableCollection.cpp')
-rw-r--r-- | kpresenter/KPrVariableCollection.cpp | 14 |
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(); |