mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code Cleanup: Merged the three TableViews shared code
Merged the shared code for the three table views into one code, this way less code is needed if we need to construct another tableview in the future. I still need to clean some of the models too. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
430e7ab132
commit
5666f6573e
8 changed files with 91 additions and 237 deletions
|
|
@ -45,16 +45,9 @@ public:
|
|||
void clearInfo();
|
||||
void clearEquipment();
|
||||
void reload();
|
||||
|
||||
bool eventFilter(QObject* , QEvent*);
|
||||
virtual void resizeEvent(QResizeEvent*);
|
||||
virtual void showEvent(QShowEvent*);
|
||||
virtual void hideEvent(QHideEvent* );
|
||||
|
||||
void initialUiSetup();
|
||||
void equipmentPlusUpdate();
|
||||
|
||||
|
||||
public slots:
|
||||
void addCylinder_clicked();
|
||||
void addWeight_clicked();
|
||||
|
|
@ -68,7 +61,6 @@ public slots:
|
|||
void on_notes_textChanged();
|
||||
void on_rating_valueChanged(int value);
|
||||
void on_visibility_valueChanged(int value);
|
||||
void tabChanged(int idx);
|
||||
void editCylinderWidget(const QModelIndex& index);
|
||||
void editWeigthWidget(const QModelIndex& index);
|
||||
|
||||
|
|
@ -78,8 +70,6 @@ private:
|
|||
CylindersModel *cylindersModel;
|
||||
NotesBackup notesBackup;
|
||||
struct dive* currentDive;
|
||||
QPushButton *addCylinder;
|
||||
QPushButton *addWeight;
|
||||
enum { NONE, DIVE, TRIP } editMode;
|
||||
Completers completers;
|
||||
void enableEdition();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue