summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-11 17:09:19 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-11 17:09:19 +0900
commit0a8892379d20c0ee81dd4339019b5d4b1468194e (patch)
tree03729a25cb5b14593e70e1784c43bcc8b439ed29 /qt-ui/modeldelegates.cpp
parent9ead871d6456f8f19f6f0fe2413513ef4449253d (diff)
downloadsubsurface-0a8892379d20c0ee81dd4339019b5d4b1468194e.tar.gz
Connect cylinders entered in planner with the gases available
Now the gases for which we have cylinders are offered in the gas selection list and correctly recognized and added for the plan. Still tons of work to be done to make this work the way it is designed, but we are getting closer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index d1e283911..e7399117c 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -307,7 +307,7 @@ void AirTypesDelegate::setModelData(QWidget* editor, QAbstractItemModel* model,
model->setData(index, QVariant(combo->currentText()));
}
-AirTypesDelegate::AirTypesDelegate(QObject* parent) : ComboBoxDelegate(airTypes(), parent)
+AirTypesDelegate::AirTypesDelegate(QObject* parent) : ComboBoxDelegate(gasSelectionModel(), parent)
{
}