summaryrefslogtreecommitdiffstats
path: root/knode/utilities.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /knode/utilities.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
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
Diffstat (limited to 'knode/utilities.h')
-rw-r--r--knode/utilities.h22
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);