diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 0991ddb5d..fe15a98c3 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -147,9 +147,15 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const ret = QIcon(":trash"); break; } + return ret; } +cylinder_t* CylindersModel::cylinderAt(const QModelIndex& index) +{ + return ¤t->cylinder[index.row()]; +} + // this is our magic 'pass data in' function that allows the delegate to get // the data here without silly unit conversions; // so we only implement the two columns we care about |