From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbabel/catalogmanager/catmanlistitem.h | 60 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'kbabel/catalogmanager/catmanlistitem.h') diff --git a/kbabel/catalogmanager/catmanlistitem.h b/kbabel/catalogmanager/catmanlistitem.h index a5f41e2f..00fc3842 100644 --- a/kbabel/catalogmanager/catmanlistitem.h +++ b/kbabel/catalogmanager/catmanlistitem.h @@ -38,10 +38,10 @@ #include #endif -#include -#include -#include -#include +#include +#include +#include +#include #include "validateprogress.h" @@ -60,24 +60,24 @@ public: /** the type of this item */ enum Type{File,Dir}; - CatManListItem(CatalogManagerView *view, QListViewItem* parent,QString fullPath - ,QString fullPotPath,QString package); + CatManListItem(CatalogManagerView *view, TQListViewItem* parent,TQString fullPath + ,TQString fullPotPath,TQString package); /** creates the toplevel root item with package name "/" */ - CatManListItem(CatalogManagerView *view, QListView* parent,QString fullPath, QString fullPotPath); + CatManListItem(CatalogManagerView *view, TQListView* parent,TQString fullPath, TQString fullPotPath); /** * returns the package names (including relative path) of the * children of this item */ - QStringList contentsList(bool onlyFiles=false) const; + TQStringList contentsList(bool onlyFiles=false) const; /** * returns the package names of all children of this item * (including all subdirectries) * @param onlyFiles flag, if only the names of files should be returned * @see CatManListItem::contentsList */ - QStringList allChildrenList(bool onlyFiles=false) const; + TQStringList allChildrenList(bool onlyFiles=false) const; /** * returns the relative file names of all children of this item @@ -87,7 +87,7 @@ public: * @param onlyModified, if only modified files should be returned * @see CatManListItem::contentsList */ - QStringList allChildrenFileList(bool onlyFiles=false, bool emptyDirs=false, bool onlyModified=false) const; + TQStringList allChildrenFileList(bool onlyFiles=false, bool emptyDirs=false, bool onlyModified=false) const; void setMarked(bool on); bool marked() const; @@ -110,20 +110,20 @@ public: * @param ignoreFuzzy flag, whether fuzzy messages in the file should be not checked * @param markAsFuzzy flag, whether the error messages should be marked as fuzzy (this alters the PO file) */ - void checkErrors(KDataTool* validator, QObject* progressSignalHandler, bool ignoreFuzzy, bool markAsFuzzy); + void checkErrors(KDataTool* validator, TQObject* progressSignalHandler, bool ignoreFuzzy, bool markAsFuzzy); /** return the absolute filename of the po-File */ - QString poFile() const; + TQString poFile() const; /** return the absolute filename of the pot-File */ - QString potFile() const; + TQString potFile() const; /** returns the package name (inlcuding relative path to base-directory) */ - QString package(bool rootSlash=true) const; + TQString package(bool rootSlash=true) const; - /** returns the relative path of a dir or QString::null if not a dir. */ - QString packageDir( ) const; + /** returns the relative path of a dir or TQString::null if not a dir. */ + TQString packageDir( ) const; /** returns the package name (without path) */ - QString name() const; + TQString name() const; /** * returns the type of this item @@ -159,25 +159,25 @@ public: * @return true, if there were errors while parsing the file */ bool hasErrors() const {return _hasErrors;} - QValueList errors() const {return _errors;} + TQValueList errors() const {return _errors;} - virtual QString key(int col,bool) const; + virtual TQString key(int col,bool) const; virtual void setOpen(bool); /** paints the marking, if this package has no template */ - QPixmap paintExclamation(QPixmap*); + TQPixmap paintExclamation(TQPixmap*); void updateAfterSave( KBabel::PoInfo &po); - QStringList &wordList() { return _wordList; } + TQStringList &wordList() { return _wordList; } bool wordsUpdated() { return _wordListUpdated; } /** These are not in Qt, so we need to implement it ourselves*/ - QListViewItem *previousSibling(); - QListViewItem *lastChild(); + TQListViewItem *previousSibling(); + TQListViewItem *lastChild(); private: - void init(const QString& fullPath, const QString& fullPotPath,const QString& package); + void init(const TQString& fullPath, const TQString& fullPotPath,const TQString& package); /** * updates the item * @param showPoInfo if true, reads information about the @@ -197,12 +197,12 @@ private: * last updated. This is used to check, if the file * on the disc has changed since last update. */ - QDateTime _lastUpdated; + TQDateTime _lastUpdated; /** the po-file */ - QFileInfo _primary; + TQFileInfo _primary; /** the pot-file */ - QFileInfo _template; + TQFileInfo _template; /** * The package name, includes the relative path beginning * at the base directory. @@ -210,7 +210,7 @@ private: * The root item has the package name "/" * @see CatManListItem::CatManListItem */ - QString _package; + TQString _package; Type _type; bool _marked; @@ -225,13 +225,13 @@ private: /** flag, if the PO-file has a syntax error */ bool _hasErrors; /** a list of errors found by validation tool*/ - QValueList _errors; + TQValueList _errors; /** parent view for this item, used for stopping the activity */ CatalogManagerView *_view; /** index of words, but it does not contain any useful information as values */ - QStringList _wordList; + TQStringList _wordList; bool _wordListUpdated; }; -- cgit v1.2.1