Made the TableViews share a bit of code, code cleanup.

Made the tableviews share a bit of code, and code cleanup.
The tableviews for Cylinders, Weigth and Dive Planner Points
now shares the CSS and I also implemented the save / load
methods for the dive planner points, so the functionality
is mostly done on the vieualization side. - since we are
now using three tables maybe it's a better idea to create
one class SubSurfaceTable that knows how to handle saving
/ loading of the columns... TODO for the future. ;)

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-08-28 07:48:46 -03:00
parent cfd17116eb
commit bb59202812
5 changed files with 57 additions and 62 deletions

View file

@ -183,6 +183,7 @@ private:
class DivePlannerWidget : public QWidget {
Q_OBJECT
void initialUiSetup();
public:
explicit DivePlannerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
@ -194,7 +195,8 @@ public slots:
void gflowChanged(const QString& gflow);
void gfhighChanged(const QString& gfhigh);
void lastStopChanged(bool checked);
protected:
virtual void hideEvent(QHideEvent* );
private:
Ui::DivePlanner *ui;
};