summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoUserStyleCollection.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoUserStyleCollection.h')
-rw-r--r--lib/kotext/KoUserStyleCollection.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kotext/KoUserStyleCollection.h b/lib/kotext/KoUserStyleCollection.h
index 70910399..9330ca4d 100644
--- a/lib/kotext/KoUserStyleCollection.h
+++ b/lib/kotext/KoUserStyleCollection.h
@@ -21,7 +21,7 @@
class KoUserStyle;
#include <koffice_export.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
/**
* Generic style collection class, for all "user styles" (see KoUserStyle).
@@ -37,7 +37,7 @@ public:
* @param prefix used by generateUniqueName to prefix new style names
* (to avoid clashes between different kinds of styles)
*/
- KoUserStyleCollection( const QString& prefix );
+ KoUserStyleCollection( const TQString& prefix );
/**
* Destructor
@@ -61,24 +61,24 @@ public:
/**
* @return the index of @p style in the collection
*/
- int indexOf( KoUserStyle* style ) const { return m_styleList.findIndex( style ); }
+ int indexOf( KoUserStyle* style ) const { return m_styleList.tqfindIndex( style ); }
/**
* Return the list of all styles in the collection.
*/
- QValueList<KoUserStyle *> styleList() const { return m_styleList; }
+ TQValueList<KoUserStyle *> styleList() const { return m_styleList; }
/**
* Generate a new unique name, to create a style whose internal name
* differs from the internal name of all existing styles.
* The prefix passed to the constructor is used here.
*/
- QString generateUniqueName() const;
+ TQString generateUniqueName() const;
/**
* Return the list composed of the display-name of each style in the collection
*/
- QStringList displayNameList() const;
+ TQStringList displayNameList() const;
/**
* Find style based on the internal name @p name.
@@ -86,7 +86,7 @@ public:
* 1) if @p name equals @p defaultStyleName, return the first one, never 0<br>
* 2) otherwise return 0
*/
- KoUserStyle* findStyle( const QString & name, const QString& defaultStyleName ) const;
+ KoUserStyle* findStyle( const TQString & name, const TQString& defaultStyleName ) const;
/**
* Find style based on the display name @p displayName.
@@ -95,7 +95,7 @@ public:
* This is mostly useful to detect similar styles when importing styles
* from another document.
*/
- KoUserStyle* findStyleByDisplayName( const QString& displayName ) const;
+ KoUserStyle* findStyleByDisplayName( const TQString& displayName ) const;
/**
* Remove @p style from the collection. If the style isn't in the collection, nothing happens.
@@ -108,7 +108,7 @@ public:
* @param list the list of internal names of the styles
* WARNING, if an existing style isn't listed, it will be lost
*/
- void updateStyleListOrder( const QStringList& list );
+ void updateStyleListOrder( const TQStringList& list );
/**
* Try adding @p sty to the collection.
@@ -136,11 +136,11 @@ protected:
KoUserStyleCollection( const KoUserStyleCollection& rhs ); ///< forbidden
void operator=( const KoUserStyleCollection& rhs ); ///< forbidden
- QValueList<KoUserStyle *> m_styleList;
+ TQValueList<KoUserStyle *> m_styleList;
private:
- QValueList<KoUserStyle *> m_deletedStyles;
- const QString m_prefix;
+ TQValueList<KoUserStyle *> m_deletedStyles;
+ const TQString m_prefix;
// can become d pointer if needed
mutable KoUserStyle *m_lastStyle; ///< Last style that was searched
bool m_default;