From b98157a51932c1bf584eb5ac830c5e3b681c654c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 12 Nov 2013 17:57:33 -0200 Subject: Partially revert d72c69db7a49f and fix its errors In the offending commit a QWidget was changed to QTableView, but only in the header - and thus making avaliable all method calls, but the initialization of the widgets was still a QWidget, and nothing of QTableView was used besides an incorrect call to setColumnHidden. This commit fixes that by using the view() method provided by the TableView implementation which returns the true QTableView that should be used for specific nitpicking, like hidding columns. :) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/tableview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/tableview.cpp') diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp index c3aed1f18..d9731b477 100644 --- a/qt-ui/tableview.cpp +++ b/qt-ui/tableview.cpp @@ -7,7 +7,7 @@ #include #include -TableView::TableView(QWidget *parent) : QTableView(parent) +TableView::TableView(QWidget *parent) : QWidget(parent) { ui.setupUi(this); QFile cssFile(":table-css"); -- cgit v1.2.3-70-g09d2