diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kcoloredit/palette.h | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcoloredit/palette.h')
-rw-r--r-- | kcoloredit/palette.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kcoloredit/palette.h b/kcoloredit/palette.h index 7b763296..a363ada4 100644 --- a/kcoloredit/palette.h +++ b/kcoloredit/palette.h @@ -18,9 +18,9 @@ #ifndef PALETTE_H #define PALETTE_H -#include <qstring.h> -#include <qtextstream.h> -#include <qfile.h> +#include <tqstring.h> +#include <tqtextstream.h> +#include <tqfile.h> #include "color.h" @@ -35,11 +35,11 @@ public: Palette(const Palette& palette); ~Palette(); /** @return A list of KDE palettes */ - static QStringList kdePalettes(); + static TQStringList kdePalettes(); /** sets palette name */ - void setName(const QString& name); + void setName(const TQString& name); /** @return palette name */ - const QString& name() const; + const TQString& name() const; /** inserts a color at a given position */ void insert(const int index, Color* const color); /** appends a color */ @@ -61,32 +61,32 @@ public: /** Loads a palette from a text stream * @return whether the load was succesfull */ - bool load(QTextStream& stream, bool loadName = true); + bool load(TQTextStream& stream, bool loadName = true); /** Loads a palette from a file. * If loadName is true, palette name is expected. * @return whether the load was succesfull */ - bool load(const QString& fileName); + bool load(const TQString& fileName); /** Saves a palette into a text stream. * If file is given, it is checked for IO errors. * If saveName is true, palette name is saved. * @return whether save was succesfull */ - bool save(QTextStream& stream, const QFile* file = 0, bool saveName = true); + bool save(TQTextStream& stream, const TQFile* file = 0, bool saveName = true); /** Saves a palette to a file * @return whether save was succesfull */ - bool save(const QString& fileName); + bool save(const TQString& fileName); /** Deletes contents of the palette */ void deleteContents(); /** @return A possible error description from the last unsuccessfull * IO operation */ - const QString& errorString() const; + const TQString& errorString() const; private: /** The palette name */ - QString m_name; + TQString m_name; private: /** Initialization method called by constructors */ @@ -94,9 +94,9 @@ private: protected: /** A list of palette colors */ - QPtrList<Color> colors; + TQPtrList<Color> colors; /** An IO error description */ - QString m_errorString; + TQString m_errorString; }; #endif |