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 a89557570..0324fe4ba 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -62,6 +62,12 @@ CylindersModel::CylindersModel(QObject* parent): current(0), rows(0) setHeaderDataStrings( QStringList() << "" << tr("Type") << tr("Size") << tr("WorkPress") << tr("StartPress") << tr("EndPress") << tr("O2%") << tr("HE")); } +CylindersModel *CylindersModel::instance() +{ + static CylindersModel *self = new CylindersModel(); + return self; +} + static QVariant percent_string(fraction_t fraction) { int permille = fraction.permille; |