Moved the code that handles DiveList column sizes to its correct file.

I got a bit lost trying to find the code that handled DiveList columns
today, so I thought it was better to move it to its file, after all we
do have a divelistview.h :)

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-11-08 20:30:17 -02:00 committed by Dirk Hohndel
parent ba638cae05
commit 7dbf76384f
3 changed files with 40 additions and 21 deletions

View file

@ -19,6 +19,7 @@ class DiveListView : public QTreeView
Q_OBJECT
public:
DiveListView(QWidget *parent = 0);
~DiveListView();
void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
void currentChanged(const QModelIndex& current, const QModelIndex& previous);
void reload(DiveTripModel::Layout layout, bool forceSort = true);
@ -54,6 +55,7 @@ private:
QLineEdit *searchBox;
QModelIndex contextMenuIndex;
void merge_trip(const QModelIndex &a, const int offset);
void setupUi();
};
#endif // DIVELISTVIEW_H