Fixed some problems with effect-enabled texts from not being displayed. Default theme...
[jspeed] / src / textelement.h
index 19116c1..ddd289c 100644 (file)
@@ -30,7 +30,7 @@ class GraphicsScene;
 class TextElement : public GraphicsElement
 {
 public:
-    enum Attribute {XPOS, YPOS, DATA, FORMAT, WIDTH, ALIGN, COLOR, SIZE, FONT, ATTRIBUTE_COUNT};
+    enum Attribute {XPOS, YPOS, DATA, FORMAT, WIDTH, ALIGN, COLOR, SIZE, FONT, BOLD, ITALIC, ATTRIBUTE_COUNT};
     enum Field {TRIP, TOTAL, SPEED, MAXSPEED, AVGSPEED, UNIT, SPEEDUNIT, TIME, FIELD_COUNT};
     TextElement(Reader* reader);
     virtual bool setAttribute(QString const& name, QString const& value);
@@ -48,6 +48,8 @@ private:
     QString format_;
     QString align_;
     int fontSize_;
+    bool bold_;
+    bool italic_;
     QString fontFile_;
     QList<Field> specialFields_;
 };