Parse the display name from the dom
| 118 | |
| 119 | // Parse the display name from the dom |
| 120 | virtual void setName() |
| 121 | { |
| 122 | QDomNodeList keys = originalPluginData().elementsByTagName( "key" ); |
| 123 | for( int i = 0; !keys.item( i ).isNull(); ++i ) |
| 124 | { |
| 125 | QDomNodeList attributes = keys.item( i ).toElement().elementsByTagName( "attribute" ); |
| 126 | for( int j = 0; !attributes.item( j ).isNull(); ++j ) |
| 127 | { |
| 128 | QDomElement attribute = attributes.item( j ).toElement(); |
| 129 | if( attribute.hasAttribute( "value" ) ) |
| 130 | { |
| 131 | QString name = tr("NOT FOUND") + " (" + attribute.attribute( "value" ) + ")"; |
| 132 | setDisplayName(name); |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | } |
| 137 | |
| 138 | } |
| 139 | } |
| 140 | } ; |
| 141 | |
| 142 |