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>
This commit is contained in:
Tomaz Canabrava 2013-05-18 20:42:59 -03:00 committed by Dirk Hohndel
parent de50f66257
commit c5e7a025e4
5 changed files with 243 additions and 29 deletions

View file

@ -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