From 3bf78257a23a5099ddf63c24d3d049d6aca3f2bc Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 19 Jun 2007 10:24:49 +0000 Subject: [PATCH] Porting to Qt4 : some corrections to make LightApp compilable. --- src/Qtx/QtxListResourceEdit.h | 7 ++++--- src/Qtx/QtxResourceEdit.h | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Qtx/QtxListResourceEdit.h b/src/Qtx/QtxListResourceEdit.h index fc538004a..ac009d7c8 100644 --- a/src/Qtx/QtxListResourceEdit.h +++ b/src/Qtx/QtxListResourceEdit.h @@ -25,7 +25,8 @@ #include "QtxResourceEdit.h" #include -#include +//#include +#include #include #include #include @@ -189,7 +190,7 @@ protected: Base class for preferences items. */ -class QtxListResourceEdit::PrefItem : public QHBox, public Item +class QtxListResourceEdit::PrefItem : public QWidget/*QHBox*/, public Item { public: PrefItem( const int, QtxResourceEdit*, Item* = 0, QWidget* = 0 ); @@ -241,7 +242,7 @@ private: void setIndexes( const QVariant& ); void setStrings( const QStringList& ); - void setIndexes( const QValueList& ); + void setIndexes( const QList& ); private: QComboBox* myList; diff --git a/src/Qtx/QtxResourceEdit.h b/src/Qtx/QtxResourceEdit.h index d6da330ac..14b920591 100644 --- a/src/Qtx/QtxResourceEdit.h +++ b/src/Qtx/QtxResourceEdit.h @@ -90,7 +90,7 @@ protected: virtual void itemAdded( Item* ); virtual void itemRemoved( Item* ); - void childItems( QPtrList& ) const; + void childItems( QList& ) const; private: void removeItem( Item* ); @@ -103,7 +103,7 @@ private: ItemMap myItems; QtxResourceMgr* myResMgr; QMap myBackup; - QPtrList myChildren; + QList myChildren; friend class QtxResourceEdit::Item; }; @@ -123,7 +123,7 @@ public: virtual int type() const = 0; Item* parentItem() const; - void childItems( QPtrList& ) const; + void childItems( QList& ) const; virtual bool isEmpty() const; @@ -172,8 +172,8 @@ protected: Item* item( const QString&, const int ) const; protected: - typedef QPtrList ItemList; - typedef QPtrListIterator ItemListIterator; + typedef QList ItemList; + typedef QListIterator ItemListIterator; private: static int generateId(); -- 2.39.2