From edeb8cab23573354cb9affb1afb1252022ff53ed Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 17 Jun 2005 08:43:04 +0000 Subject: [PATCH] Resource edit modifications. New method resource() --- src/Qtx/QtxResourceEdit.cxx | 7 +++++++ src/Qtx/QtxResourceEdit.h | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxResourceEdit.cxx b/src/Qtx/QtxResourceEdit.cxx index e7b559287..1ee772a30 100644 --- a/src/Qtx/QtxResourceEdit.cxx +++ b/src/Qtx/QtxResourceEdit.cxx @@ -57,6 +57,13 @@ void QtxResourceEdit::setProperty( const int id, const QString& propName, const i->setProperty( propName, propValue ); } +void QtxResourceEdit::resource( const int id, QString& sec, QString& param ) const +{ + Item* i = item( id ); + if ( i ) + i->resource( sec, param ); +} + void QtxResourceEdit::store() { QMap before; diff --git a/src/Qtx/QtxResourceEdit.h b/src/Qtx/QtxResourceEdit.h index 66ce2bdfb..7dc314b02 100644 --- a/src/Qtx/QtxResourceEdit.h +++ b/src/Qtx/QtxResourceEdit.h @@ -27,12 +27,14 @@ public: QtxResourceMgr* resourceMgr() const; - int addItem( const QString& label, const int pId = -1, const int = -1, + virtual int addItem( const QString& label, const int pId = -1, const int = -1, const QString& section = QString::null, const QString& param = QString::null ); QVariant property( const int, const QString& ) const; - void setProperty( const int, const QString&, const QVariant& ); + virtual void setProperty( const int, const QString&, const QVariant& ); + + void resource( const int, QString&, QString& ) const; virtual void store(); virtual void retrieve(); -- 2.39.2