diff -r c2ce9944148c -r 0bba81dde1bc attributeitem.cpp --- a/attributeitem.cpp Wed Feb 10 13:48:42 2010 +0000 +++ b/attributeitem.cpp Fri Feb 19 13:47:03 2010 +0000 @@ -9,10 +9,6 @@ AttributeItem::AttributeItem(const QList &data, TreeItem *parent):BranchItem (data,parent) { TreeItem::setType (Attribute); - //table=NULL; - //definition=NULL; - type=Attribute; - internal=false; } @@ -20,6 +16,20 @@ { } +void AttributeItem::set (const QString &k, const QString &v, const Type &t) +{ + key=k; + value=QVariant (v); + setHeading (QString ("K: %1 | V: %2").arg(key).arg(value.toString())); +} + +void AttributeItem::get (QString &k, QString &v, Type &t) +{ + k=key; + v=value.toString(); + t=attrType; +} + void AttributeItem::setKey (const QString &k, const Type &t) { /* @@ -145,6 +155,16 @@ */ } +void AttributeItem::setInternal(bool b) +{ + internal=b; +} + +bool AttributeItem::isInternal() +{ + return internal; +} + QString AttributeItem::getDataXML() { QString a=beginElement ("attribute");