Added support for checkbox select in AutoTableModel.
This commit is contained in:
@@ -16,6 +16,7 @@ public:
|
||||
protected:
|
||||
virtual void handleFilter(const QString &filter) = 0;
|
||||
virtual void handleRestore() = 0;
|
||||
bool m_checkboxSelect;
|
||||
|
||||
public slots:
|
||||
void filter(const QString &filter);
|
||||
@@ -29,6 +30,9 @@ public:
|
||||
virtual Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
void setEditableCols(const QList<int> cols);
|
||||
|
||||
bool checkboxSelect() const;
|
||||
void setCheckboxSelect(bool checkboxSelect);
|
||||
|
||||
private:
|
||||
QList<int> m_editableCols;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user