diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-18 20:42:59 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-18 17:06:48 -0700 |
commit | c5e7a025e4c1abcc1ad5d701991fc8f15ae82be6 (patch) | |
tree | 6c2e53fb064aecb53ddfd21296a353f86987c63b /qt-ui/starwidget.h | |
parent | de50f6625746928711d7fb7f0fa579d194931970 (diff) | |
download | subsurface-c5e7a025e4c1abcc1ad5d701991fc8f15ae82be6.tar.gz |
Added option to edit the selected dive.
Added option to edit the selected dive.
Now the user can click on 'Edit', and a nice box will
appear stating that the dive is in edit mode, and the user
can edit all of the 'Notes' tab fields, including the
rating. When the edition is finished, the user needs to
click on 'edit' again to mark as accepted, or in
reset to reset the fields to it's original state
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/starwidget.h')
-rw-r--r-- | qt-ui/starwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/starwidget.h b/qt-ui/starwidget.h index d92be5a98..68e3b2017 100644 --- a/qt-ui/starwidget.h +++ b/qt-ui/starwidget.h @@ -22,6 +22,7 @@ Q_SIGNALS: public Q_SLOTS: void setCurrentStars(int value); + void setReadOnly( bool readOnly); protected: /*reimp*/ void mouseReleaseEvent(QMouseEvent* ); @@ -32,6 +33,7 @@ private: static QPixmap* activeStar; static QPixmap* inactiveStar; QPixmap grayImage(QPixmap *coloredImg); + bool readOnly; }; #endif // STARWIDGET_H |