summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/starwidget.cpp3
-rw-r--r--qt-ui/starwidget.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp
index 30c38808c..12b400124 100644
--- a/qt-ui/starwidget.cpp
+++ b/qt-ui/starwidget.cpp
@@ -63,7 +63,8 @@ void StarWidget::setCurrentStars(int value)
StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f):
QWidget(parent, f),
- current(0)
+ current(0),
+ readOnly(false)
{
if (!activeStar) {
activeStar = new QPixmap();
diff --git a/qt-ui/starwidget.h b/qt-ui/starwidget.h
index 10a8a3073..9620bc62e 100644
--- a/qt-ui/starwidget.h
+++ b/qt-ui/starwidget.h
@@ -30,10 +30,11 @@ protected:
private:
int current;
+ bool readOnly;
+
static QPixmap* activeStar;
static QPixmap* inactiveStar;
QPixmap grayImage(QPixmap *coloredImg);
- bool readOnly;
};
#endif // STARWIDGET_H