#include <diagramelementattributefactory.h>
Static Public Member Functions | |
| static AbstractElementAttribute * | create (MvcDiagram::ElementAttributeType type, AbstractElement *parent) |
| static AbstractElementAttribute * | create (const QByteArray &key, AbstractElement *parent) |
| static const QList< QByteArray > & | keys () |
| static int | type (const QByteArray &key) |
| static const QString & | title (const QByteArray &key) |
Note that QByteArray is more than enough for keys. There is no need for QString, and we definitely don't want the keys to be language dependant.
Also on the topic of QByteArray, from the Qt 4.0.0 documentation: "Using QByteArray is much more convenient than using const char *. Behind the scenes, it always ensures that the data is followed by a '\0' terminator, and uses implicit sharing (copy-on-write) to reduce memory usage and avoid needless copying of data."
| AbstractElementAttribute * DiagramElementAttributeFactory::create | ( | MvcDiagram::ElementAttributeType | type, | |
| AbstractElement * | parent | |||
| ) | [static] |
| AbstractElementAttribute * DiagramElementAttributeFactory::create | ( | const QByteArray & | key, | |
| AbstractElement * | parent | |||
| ) | [static] |
Note: This method is (intentionally) NOT case sensitive when it performs the key matching.
| const QList< QByteArray > & DiagramElementAttributeFactory::keys | ( | ) | [static] |
Warning! This method is not thread-safe until it returns from the first call.
| int DiagramElementAttributeFactory::type | ( | const QByteArray & | key | ) | [static] |
| const QString & DiagramElementAttributeFactory::title | ( | const QByteArray & | key | ) | [static] |
1.5.2