return resMgr ? resMgr->colorValue( myResSection, myResParameter, val ) : val;
}
+QFont QtxResourceEdit::Item::getFont( const QFont& val ) const
+{
+ QtxResourceMgr* resMgr = resourceMgr();
+ return resMgr ? resMgr->fontValue( myResSection, myResParameter, val ) : val;
+}
+
void QtxResourceEdit::Item::setInteger( const int val )
{
QtxResourceMgr* resMgr = resourceMgr();
resMgr->setValue( myResSection, myResParameter, val );
}
+void QtxResourceEdit::Item::setFont( const QFont& val )
+{
+ QtxResourceMgr* resMgr = resourceMgr();
+ if ( resMgr )
+ resMgr->setValue( myResSection, myResParameter, val );
+}
+
QtxResourceEdit::Item* QtxResourceEdit::Item::item( const int id ) const
{
return resourceEdit() ? resourceEdit()->item( id ) : 0;
#include <qcolor.h>
#include <qvariant.h>
+#include <qfont.h>
class QTX_EXPORT QtxResourceEdit
{
double getDouble( const double = 0.0 ) const;
bool getBoolean( const bool = false ) const;
QColor getColor( const QColor& = QColor() ) const;
+ QFont getFont( const QFont& = QFont() ) const;
QString getString( const QString& = QString::null ) const;
void setInteger( const int );
void setDouble( const double );
void setBoolean( const bool );
void setColor( const QColor& );
+ void setFont( const QFont& );
void setString( const QString& );
Item* item( const int ) const;