diff options
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r-- | qt-ui/tableview.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp index c79a23491..7c72b4bce 100644 --- a/qt-ui/tableview.cpp +++ b/qt-ui/tableview.cpp @@ -1,5 +1,6 @@ #include "tableview.h" #include "models.h" +#include "modeldelegates.h" #include <QPushButton> #include <QLayout> @@ -10,11 +11,7 @@ TableView::TableView(QWidget *parent) : QWidget(parent) { ui.setupUi(this); - QFile cssFile(":table-css"); - cssFile.open(QIODevice::ReadOnly); - QTextStream reader(&cssFile); - QString css = reader.readAll(); - ui.tableView->setStyleSheet(css); + ui.tableView->setItemDelegate(new DiveListDelegate); /* There`s mostly a need for a Mac fix here too. */ if (qApp->style()->objectName() == "gtk+") ui.groupBox->layout()->setContentsMargins(0, 9, 0, 0); |