diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index fe15a98c3..347301424 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -348,6 +348,11 @@ WeightModel::WeightModel(QObject* parent): QAbstractTableModel(parent), current( { } +weightsystem_t* WeightModel::weightSystemAt(const QModelIndex& index) +{ + return ¤t->weightsystem[index.row()]; +} + void WeightModel::remove(const QModelIndex& index) { if (index.column() != REMOVE) { |