diff options
Diffstat (limited to 'qt-ui/tableview.h')
-rw-r--r-- | qt-ui/tableview.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/qt-ui/tableview.h b/qt-ui/tableview.h index f89a7b6ba..d2289b2d9 100644 --- a/qt-ui/tableview.h +++ b/qt-ui/tableview.h @@ -15,23 +15,24 @@ class QModelIndex; class QTableView; class TableView : public QWidget { -Q_OBJECT + Q_OBJECT public: TableView(QWidget *parent = 0); virtual ~TableView(); - void setTitle(const QString& title); + 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. */ - void setModel(QAbstractItemModel* model); - void setBtnToolTip(const QString& tooltip); + void setModel(QAbstractItemModel *model); + void setBtnToolTip(const QString &tooltip); void fixPlusPosition(); - void edit(const QModelIndex& index); + void edit(const QModelIndex &index); QTableView *view(); + protected: - virtual void showEvent(QShowEvent* ); - virtual void resizeEvent(QResizeEvent* ); + virtual void showEvent(QShowEvent *); + virtual void resizeEvent(QResizeEvent *); signals: void addButtonClicked(); |