From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knode/utilities.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'knode/utilities.h') 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 Q_EXPORT QSortedVector : public TQPtrVector +template class TQ_EXPORT TQSortedVector : public TQPtrVector { public: - QSortedVector() {} - QSortedVector ( uint size ) : TQPtrVector(size) {} - QSortedVector( const QSortedVector &l ) : TQPtrVector(l) {} - ~QSortedVector() { TQPtrVector::clear(); } - QSortedVector &operator=(const QSortedVector &l) - { return (QSortedVector&)TQPtrList::operator=(l); } + TQSortedVector() {} + TQSortedVector ( uint size ) : TQPtrVector(size) {} + TQSortedVector( const TQSortedVector &l ) : TQPtrVector(l) {} + ~TQSortedVector() { TQPtrVector::clear(); } + TQSortedVector &operator=(const TQSortedVector &l) + { return (TQSortedVector&)TQPtrList::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); -- cgit v1.2.1