diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-10-17 21:22:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-18 15:18:38 -0700 |
commit | 1180b5d2d37119b39f2dccdfdd2e58955d3ee160 (patch) | |
tree | 0b783c5a459ced38776a9d144256fb243c69b39b /qt-ui/tableview.h | |
parent | 32ab2b34d39752693697f0f2a33032ceb3f5f3b4 (diff) | |
download | subsurface-1180b5d2d37119b39f2dccdfdd2e58955d3ee160.tar.gz |
Fix plus icon position based on the theme
I hope this time I got it right. basically, the old code
tried to guess where the plus icon should be with a fairly
bad set of defauults.
This one patch asks for the Qt style where everything is and
uses that knowledge to make it be in a more sane position.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Giuseppe Bilotta <giuseppe.bilota@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tableview.h')
-rw-r--r-- | qt-ui/tableview.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/tableview.h b/qt-ui/tableview.h index 93134b206..36eef907a 100644 --- a/qt-ui/tableview.h +++ b/qt-ui/tableview.h @@ -16,7 +16,7 @@ class QAbstractItemModel; class QModelIndex; class QTableView; -class TableView : public QWidget { +class TableView : public QGroupBox { Q_OBJECT struct TableMetrics { @@ -28,7 +28,6 @@ class TableView : public QWidget { public: TableView(QWidget *parent = 0); virtual ~TableView(); - void setTitle(const QString &title); /* The model is expected to have a 'remove' slot, that takes a QModelIndex as parameter. * It's also expected to have the column '1' as a trash icon. I most probably should create a * proxy model and add that column, will mark that as TODO. see? marked. |