diff options
Diffstat (limited to 'qt-ui/starwidget.h')
-rw-r--r-- | qt-ui/starwidget.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-ui/starwidget.h b/qt-ui/starwidget.h index 3103a43eb..90310f041 100644 --- a/qt-ui/starwidget.h +++ b/qt-ui/starwidget.h @@ -4,11 +4,14 @@ #include <QWidget> enum StarConfig { - SPACING = 2, - IMG_SIZE = 16, TOTALSTARS = 5 }; +struct StarMetrics { + int size; + int spacing; +}; + class StarWidget : public QWidget { Q_OBJECT public: @@ -19,6 +22,7 @@ public: static const QImage& starActive(); static const QImage& starInactive(); + static const StarMetrics& metrics(); signals: void valueChanged(int stars); @@ -41,6 +45,7 @@ private: static QImage activeStar; static QImage inactiveStar; + static StarMetrics imgMetrics; }; #endif // STARWIDGET_H |