Good deal of Code Cleanup for the maintab

Some cleanup was needed in the MainTab code for ages,
now the Edition / Cancel / Ok of the Notes tab is
way more intuitive on the code level.

This is needed to support multidive edition on the
Cylinders and Weigths too, since it's a bit more
complicated, I didn't want to start with a Spaguetti
Code.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-09-18 21:56:53 -03:00
parent 955c1c1fe5
commit bcefa4baff
3 changed files with 91 additions and 153 deletions

View file

@ -56,8 +56,8 @@ public slots:
void addCylinder_clicked();
void addWeight_clicked();
void updateDiveInfo(int dive);
void on_editAccept_clicked(bool edit);
void on_editReset_clicked();
void acceptChanges();
void rejectChanges();
void on_location_textChanged(const QString& text);
void on_coordinates_textChanged(const QString& text);
void on_divemaster_textChanged(const QString& text);