Simplify connecting QItemSelection::currentRowChanged to PropertyProxyModel::activeRow

This commit is contained in:
eelke 2018-09-02 12:28:56 +02:00
parent 0cef509771
commit e8f81557bb
3 changed files with 10 additions and 11 deletions

View file

@ -17,7 +17,12 @@ public:
QVariant data(const QModelIndex &proxyIndex, int role) const;
public Q_SLOTS:
void setActiveRow(int row);
/** Updates the model (and view) to show the values for row
*
* The column part of the index is not used QModelIndex is used to make is eacy to connect to
* QItemSelectionModel::currentRowChanged
*/
void setActiveRow(const QModelIndex &row);
private:
enum Columns {