refs #139 , added method to directly get indexToPropertyIndex by QModelIndex

This commit is contained in:
Klaus Basan
2014-02-18 14:22:03 +01:00
parent f4d1eadbe5
commit cdb6009b0d

View File

@@ -70,6 +70,14 @@ namespace BlackGui
*/
virtual int columnToPropertyIndex(int column) const;
/*!
* \brief Index to property index
* \param index
*/
virtual int indexToPropertyIndex(const QModelIndex &index) const {
return this->columnToPropertyIndex(index.column());
}
/*!
* \brief Set sort column
* \param column column index