summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrTextDocument.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrTextDocument.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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/KPrTextDocument.cpp')
-rw-r--r--kpresenter/KPrTextDocument.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpresenter/KPrTextDocument.cpp b/kpresenter/KPrTextDocument.cpp
index 51a5be7f..97bfd44c 100644
--- a/kpresenter/KPrTextDocument.cpp
+++ b/kpresenter/KPrTextDocument.cpp
@@ -42,11 +42,11 @@ KPrTextDocument::~KPrTextDocument()
}
-bool KPrTextDocument::loadSpanTag( const QDomElement& tag, KoOasisContext& context,
+bool KPrTextDocument::loadSpanTag( const TQDomElement& tag, KoOasisContext& context,
KoTextParag* parag, uint pos,
- QString& textData, KoTextCustomItem* & customItem )
+ TQString& textData, KoTextCustomItem* & customItem )
{
- const QString localName( tag.localName() );
+ const TQString localName( tag.localName() );
const bool isTextNS = tag.namespaceURI() == KoXmlNS::text;
kdDebug( 32500 ) << "KPrTextDocument::loadSpanTag: " << localName << endl;
@@ -54,7 +54,7 @@ bool KPrTextDocument::loadSpanTag( const QDomElement& tag, KoOasisContext& conte
{
if ( localName == "a" )
{
- QString href( tag.attributeNS( KoXmlNS::xlink, "href", QString::null ) );
+ TQString href( tag.attributeNS( KoXmlNS::xlink, "href", TQString() ) );
if ( href.startsWith( "#" ) )
{
context.styleStack().save();
@@ -69,8 +69,8 @@ bool KPrTextDocument::loadSpanTag( const QDomElement& tag, KoOasisContext& conte
// we could have multiple spans there, but OO ensures that there is always only one,
// splitting the hyperlink if necessary (at format changes).
// Note that we ignore the formatting of the span.
- QDomElement spanElem = KoDom::namedItemNS( tag, KoXmlNS::text, "span" );
- QString text;
+ TQDomElement spanElem = KoDom::namedItemNS( tag, KoXmlNS::text, "span" );
+ TQString text;
if ( spanElem.isNull() )
text = tag.text();
if ( spanElem.isNull() )
@@ -78,12 +78,12 @@ bool KPrTextDocument::loadSpanTag( const QDomElement& tag, KoOasisContext& conte
else {
// The save/restore of the stack is done by the caller (KoTextParag::loadOasisSpan)
// This allows to use the span's format for the variable.
- //kdDebug(32500) << "filling stack with " << spanElem.attributeNS( KoXmlNS::text, "style-name", QString::null ) << endl;
+ //kdDebug(32500) << "filling stack with " << spanElem.attributeNS( KoXmlNS::text, "style-name", TQString() ) << endl;
context.fillStyleStack( spanElem, KoXmlNS::text, "style-name", "text" );
text = spanElem.text();
}
textData = KoTextObject::customItemChar(); // hyperlink placeholder
- // unused tag.attributeNS( KoXmlNS::office, "name", QString::null )
+ // unused tag.attributeNS( KoXmlNS::office, "name", TQString() )
KoVariableCollection& coll = context.variableCollection();
customItem = new KoLinkVariable( this, text, href,
coll.formatCollection()->format( "STRING" ),