#include "QtxResourceEdit.h"
#include <qmap.h>
-#include <qhbox.h>
+//#include <qhbox.h>
+#include <QWidget>
#include <qframe.h>
#include <qgroupbox.h>
#include <qvalidator.h>
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 );
void setIndexes( const QVariant& );
void setStrings( const QStringList& );
- void setIndexes( const QValueList<int>& );
+ void setIndexes( const QList<int>& );
private:
QComboBox* myList;
virtual void itemAdded( Item* );
virtual void itemRemoved( Item* );
- void childItems( QPtrList<Item>& ) const;
+ void childItems( QList<Item*>& ) const;
private:
void removeItem( Item* );
ItemMap myItems;
QtxResourceMgr* myResMgr;
QMap<Item*, QString> myBackup;
- QPtrList<Item> myChildren;
+ QList<Item*> myChildren;
friend class QtxResourceEdit::Item;
};
virtual int type() const = 0;
Item* parentItem() const;
- void childItems( QPtrList<Item>& ) const;
+ void childItems( QList<Item*>& ) const;
virtual bool isEmpty() const;
Item* item( const QString&, const int ) const;
protected:
- typedef QPtrList<Item> ItemList;
- typedef QPtrListIterator<Item> ItemListIterator;
+ typedef QList<Item*> ItemList;
+ typedef QListIterator<Item*> ItemListIterator;
private:
static int generateId();