mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clean code from the dive site edit
This is an edit dialog, not a create dialog. This makes Subsurface crash but it's a step in the right direction. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
68053a1150
commit
f4c31f110f
2 changed files with 9 additions and 59 deletions
|
@ -8,7 +8,6 @@
|
|||
class LocationInformationWidget : public QGroupBox {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum mode{CREATE_DIVE_SITE, EDIT_DIVE_SITE};
|
||||
LocationInformationWidget(QWidget *parent = 0);
|
||||
protected:
|
||||
void showEvent(QShowEvent *);
|
||||
|
@ -17,8 +16,6 @@ public slots:
|
|||
void acceptChanges();
|
||||
void rejectChanges();
|
||||
void updateGpsCoordinates();
|
||||
void editDiveSite(uint32_t uuid);
|
||||
void createDiveSite();
|
||||
void markChangedWidget(QWidget *w);
|
||||
void enableEdition();
|
||||
void resetState();
|
||||
|
@ -37,11 +34,9 @@ signals:
|
|||
void startFilterDiveSite(uint32_t uuid);
|
||||
void stopFilterDiveSite();
|
||||
private:
|
||||
struct dive_site *currentDs;
|
||||
Ui::LocationInformation ui;
|
||||
bool modified;
|
||||
QAction *closeAction, *acceptAction, *rejectAction;
|
||||
mode current_mode;
|
||||
};
|
||||
|
||||
class LocationManagementEditHelper : public QObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue