mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
32ab2b34d3
commit
1180b5d2d3
3 changed files with 23 additions and 51 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue