Fix TableWidget ( equipment ones ) on dark scheme.

This patch uses the class created by the previous patch
to get rid of the CSS and be really desktop native. it
fixes a lot of stuff in non-blue-styles and throws
a lot of code away. <3

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-12-11 21:44:05 -02:00 committed by Dirk Hohndel
parent c5c44e3a82
commit 0b5f9512ef
6 changed files with 13 additions and 42 deletions

View file

@ -22,14 +22,6 @@
#include <QMenu>
#include <QFileDialog>
class DiveListDelegate : public QStyledItemDelegate{
public:
DiveListDelegate(){}
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const {
return QSize(50,22);
}
};
DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelection(false),
sortColumn(0), currentOrder(Qt::DescendingOrder), searchBox(new QLineEdit(this))
{