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
|
@ -48,7 +48,7 @@ public slots:
|
|||
void setStartTime(const QTime& t);
|
||||
void setLastStop6m(bool value);
|
||||
void createPlan();
|
||||
void removePoint(const QModelIndex& index);
|
||||
void remove(const QModelIndex& index);
|
||||
|
||||
private:
|
||||
explicit DivePlannerPointsModel(QObject* parent = 0);
|
||||
|
@ -189,7 +189,6 @@ private:
|
|||
|
||||
class DivePlannerWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
void initialUiSetup();
|
||||
public:
|
||||
explicit DivePlannerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
|
||||
|
||||
|
@ -201,8 +200,6 @@ 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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue