diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-11-12 17:57:33 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-13 11:58:47 +0900 |
commit | b98157a51932c1bf584eb5ac830c5e3b681c654c (patch) | |
tree | b86138b50c9fc698bfd8ca5f843aed025a7b15f9 /qt-ui/tableview.cpp | |
parent | c58dc29542f75f93fe19e1a3a2e116153c936804 (diff) | |
download | subsurface-b98157a51932c1bf584eb5ac830c5e3b681c654c.tar.gz |
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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r-- | qt-ui/tableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <QTextStream> #include <QSettings> -TableView::TableView(QWidget *parent) : QTableView(parent) +TableView::TableView(QWidget *parent) : QWidget(parent) { ui.setupUi(this); QFile cssFile(":table-css"); |