mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #139 , added method to directly get indexToPropertyIndex by QModelIndex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user