24 Q_PROPERTY(QString Name READ name WRITE setName DESIGNABLE
true USER
true)
25 Q_PROPERTY(
Vec3f Position READ position WRITE setPosition DESIGNABLE
true USER
true)
26 Q_CLASSINFO(
"Position",
"minimumX=-2147483647;maximumX=2147483647;minimumY=-2147483647;maximumY=2147483647;minimumZ=-2147483647;maximumZ=2147483647;");
27 Q_PROPERTY(
float Radius READ radius WRITE setRadius DESIGNABLE
true USER
true)
28 Q_CLASSINFO(
"Radius",
"minimum=0;maximum=400;decimals=4;singleStep=0.001;");
29 Q_PROPERTY(QColor Color READ color WRITE setColor DESIGNABLE
true USER
true)
30 Q_PROPERTY(
int SomeNumber READ someNumber DESIGNABLE
true USER
true)
31 Q_PROPERTY(Simpson SimpsonsCharacter READ simpson WRITE setSimpson DESIGNABLE
true USER
true)
35 enum Simpson { HOMER, MARGE, BART, LISA, MAGGIE };
41 QString name()
const {
return m_name;}
42 void setName(
const QString& name);
44 Vec3f position()
const {
return m_position;}
45 void setPosition(
const Vec3f& position);
47 float radius()
const {
return m_radius;}
48 void setRadius(
float radius);
50 QColor color()
const {
return m_color;}
51 void setColor(
const QColor& color);
53 int someNumber()
const {
return m_someNumber;}
55 Simpson simpson()
const {
return m_simpson; }
56 void setSimpson(
const Simpson s);
63 const int m_someNumber;