mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Minor cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f936776069
commit
2f8f632cf6
1 changed files with 2 additions and 4 deletions
|
@ -28,8 +28,8 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../qthelper.h"
|
#include "../qthelper.h"
|
||||||
|
|
||||||
DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelection(false), sortColumn(0)
|
DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelection(false), sortColumn(0),
|
||||||
, currentOrder(Qt::DescendingOrder), searchBox(this), dontEmitDiveChangedSignal(false)
|
currentOrder(Qt::DescendingOrder), searchBox(this), dontEmitDiveChangedSignal(false)
|
||||||
{
|
{
|
||||||
setItemDelegate(new DiveListDelegate(this));
|
setItemDelegate(new DiveListDelegate(this));
|
||||||
setUniformRowHeights(true);
|
setUniformRowHeights(true);
|
||||||
|
@ -59,8 +59,6 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec
|
||||||
searchBox.hide();
|
searchBox.hide();
|
||||||
connect(showSearchBox, SIGNAL(triggered(bool)), this, SLOT(showSearchEdit()));
|
connect(showSearchBox, SIGNAL(triggered(bool)), this, SLOT(showSearchEdit()));
|
||||||
connect(&searchBox, SIGNAL(textChanged(QString)), model, SLOT(setFilterFixedString(QString)));
|
connect(&searchBox, SIGNAL(textChanged(QString)), model, SLOT(setFilterFixedString(QString)));
|
||||||
// calling setupUi() here appears to be too early; it does NOT correctly set the column widths
|
|
||||||
// setupUi();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DiveListView::~DiveListView()
|
DiveListView::~DiveListView()
|
||||||
|
|
Loading…
Reference in a new issue