Added support for visualization the Weigthssystems on the Equipment Tab.

This patch adds support showing and  for editing weigthsystems in the equipment tab,

so, now the two things that are missing are 'edit' and 'delete', wich are quite easy to do.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-21 09:59:41 -03:00
parent 126bc8cfa3
commit be31a53b0d
3 changed files with 35 additions and 13 deletions

View file

@ -70,9 +70,11 @@ public:
void add(weightsystem_t *weight);
void clear();
void update();
void setDive(struct dive *d);
private:
/* Remember the number of rows in a dive */
QMap<struct dive *, int> usedRows;
struct dive *current;
int rows;
};
/*! An AbstractItemModel for recording dive trip information such as a list of dives.