diff options
Diffstat (limited to 'knode/utilities.h')
-rw-r--r-- | knode/utilities.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/knode/utilities.h b/knode/utilities.h index 58dda6d89..936665a93 100644 --- a/knode/utilities.h +++ b/knode/utilities.h @@ -37,15 +37,15 @@ class KTempFile; //***************************************************************************** /** clone of TQSortedList... */ -template<class type> class Q_EXPORT QSortedVector : public TQPtrVector<type> +template<class type> class TQ_EXPORT TQSortedVector : public TQPtrVector<type> { public: - QSortedVector() {} - QSortedVector ( uint size ) : TQPtrVector<type>(size) {} - QSortedVector( const QSortedVector<type> &l ) : TQPtrVector<type>(l) {} - ~QSortedVector() { TQPtrVector<type>::clear(); } - QSortedVector<type> &operator=(const QSortedVector<type> &l) - { return (QSortedVector<type>&)TQPtrList<type>::operator=(l); } + TQSortedVector() {} + TQSortedVector ( uint size ) : TQPtrVector<type>(size) {} + TQSortedVector( const TQSortedVector<type> &l ) : TQPtrVector<type>(l) {} + ~TQSortedVector() { TQPtrVector<type>::clear(); } + TQSortedVector<type> &operator=(const TQSortedVector<type> &l) + { return (TQSortedVector<type>&)TQPtrList<type>::operator=(l); } virtual int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 ) { if ( *((type*)s1) == *((type*)s2) ) return 0; return ( *((type*)s1) < *((type*)s2) ? -1 : 1 ); } @@ -58,7 +58,7 @@ public: class KNFile : public TQFile { public: - KNFile(const TQString& fname=TQString::null); + KNFile(const TQString& fname=TQString()); ~KNFile(); const TQCString& readLine(); const TQCString& readLineWnewLine(); @@ -82,7 +82,7 @@ class KNSaveHelper { public: - KNSaveHelper(TQString saveName, TQWidget *parent); + KNSaveHelper(TQString saveName, TQWidget *tqparent); ~KNSaveHelper(); /** returns a file open for writing */ @@ -107,7 +107,7 @@ class KNLoadHelper { public: - KNLoadHelper(TQWidget *parent); + KNLoadHelper(TQWidget *tqparent); ~KNLoadHelper(); /** opens a file dialog and returns a file open for reading */ @@ -140,7 +140,7 @@ public: /** list selection dialog, used instead of a popup menu when a select action is called via the keyboard. returns -1 when the user canceled the dialog. */ - static int selectDialog(TQWidget *parent, const TQString &caption, const TQStringList &options, int initialValue); + static int selectDialog(TQWidget *tqparent, const TQString &caption, const TQStringList &options, int initialValue); static void saveWindowSize(const TQString &name, const TQSize &s); static void restoreWindowSize(const TQString &name, TQWidget *d, const TQSize &defaultSize); |