summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp5
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 &current->weightsystem[index.row()];
+}
+
void WeightModel::remove(const QModelIndex& index)
{
if (index.column() != REMOVE) {