From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- lib/kotext/KoStyleCollection.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/kotext/KoStyleCollection.h') diff --git a/lib/kotext/KoStyleCollection.h b/lib/kotext/KoStyleCollection.h index c3cc7770..66a244e5 100644 --- a/lib/kotext/KoStyleCollection.h +++ b/lib/kotext/KoStyleCollection.h @@ -19,8 +19,8 @@ #ifndef kostyle_h #define kostyle_h -#include -#include +#include +#include #include "KoParagStyle.h" #include "KoUserStyleCollection.h" @@ -41,7 +41,7 @@ struct KoStyleChangeDef { int paragLayoutChanged; int formatChanged; }; -typedef QMap KoStyleChangeDefMap; +typedef TQMap KoStyleChangeDefMap; /// TODO rename to KoParagStyleCollection - or should char styles be part of it too? class KOTEXT_EXPORT KoStyleCollection : public KoUserStyleCollection @@ -50,10 +50,10 @@ public: KoStyleCollection(); ~KoStyleCollection(); - //const QPtrList & styleList() const { return m_styleList; } + //const TQPtrList & styleList() const { return m_styleList; } // compat method, TODO: remove - QStringList translatedStyleNames() const { return displayNameList(); } + TQStringList translatedStyleNames() const { return displayNameList(); } /** * See KoUserStyleCollection::addStyle. @@ -67,15 +67,15 @@ public: * Find style based on the internal name @p name. * Overloaded for convenience. */ - KoParagStyle* findStyle( const QString & name ) const { - return static_cast( KoUserStyleCollection::findStyle( name, QString::fromLatin1( "Standard" ) ) ); + KoParagStyle* findStyle( const TQString & name ) const { + return static_cast( KoUserStyleCollection::findStyle( name, TQString::tqfromLatin1( "Standard" ) ) ); } /** * Find style based on the display name @p displayName. * Overloaded for convenience. */ - KoParagStyle* findStyleByDisplayName( const QString & name ) const { + KoParagStyle* findStyleByDisplayName( const TQString & name ) const { return static_cast( KoUserStyleCollection::findStyleByDisplayName( name ) ); } @@ -100,7 +100,7 @@ public: void saveOasisOutlineStyles( KoXmlWriter& writer ) const; /// @return the list of outline styles - QValueVector outlineStyles() const; + TQValueVector outlineStyles() const; /// @return the [first] outline style for a given level. Can be 0 if not found. KoParagStyle* outlineStyleForLevel( int level ) const; -- cgit v1.2.1