Index: sources/gui/qml/pages/ManagerStack.qml =================================================================== diff -u -r8f4dcc80fadbccfc152b28ea09466a2ab2ee7333 -r046fda9079b58d933faf0d4942c87c18bfdaa471 --- sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision 8f4dcc80fadbccfc152b28ea09466a2ab2ee7333) +++ sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision 046fda9079b58d933faf0d4942c87c18bfdaa471) @@ -127,7 +127,7 @@ clip: true spacing: Variables.defaultMargin id: _listView - model: _dummy + model: vRxProfiles.rxProfilesList delegate: _rxProfile } } @@ -143,12 +143,12 @@ height: 370 color: Colors.mainTreatmentLighterBlue radius: 5 - required property string name - required property string number - required property int index - required property string param1 - required property string value1 - required property string unit1 + property string name + property string number + property int index + property string param1 + property string value1 + property string unit1 Column { id: _componentColumn @@ -159,7 +159,7 @@ rightMargin: Variables.defaultMargin * 2 } Text { - text: rxItem.name + text: modelData font.pointSize : Fonts.fontPixelButton * 1.4 width: parent.width horizontalAlignment: Text.AlignLeft Index: sources/gui/qml/pages/rxmanager/RxManagerHeader.qml =================================================================== diff -u -r9782439f3b5c0f06e3eb31bfea9aea877abbdce4 -r046fda9079b58d933faf0d4942c87c18bfdaa471 --- sources/gui/qml/pages/rxmanager/RxManagerHeader.qml (.../RxManagerHeader.qml) (revision 9782439f3b5c0f06e3eb31bfea9aea877abbdce4) +++ sources/gui/qml/pages/rxmanager/RxManagerHeader.qml (.../RxManagerHeader.qml) (revision 046fda9079b58d933faf0d4942c87c18bfdaa471) @@ -32,7 +32,7 @@ spacing: Variables.defaultMargin * 2 Text { id : headerText - text : qsTr("Saved Prescriptions (#/10)") + text : qsTr("Saved Prescriptions") + " (" + vRxProfiles.rxProfilesList.length + "/10)" color : Colors.textButton font.pointSize : Fonts.fontPixelButton * 1.4 verticalAlignment : Text.AlignVCenter Index: sources/storage/RxProfiles.h =================================================================== diff -u -r8f4dcc80fadbccfc152b28ea09466a2ab2ee7333 -r046fda9079b58d933faf0d4942c87c18bfdaa471 --- sources/storage/RxProfiles.h (.../RxProfiles.h) (revision 8f4dcc80fadbccfc152b28ea09466a2ab2ee7333) +++ sources/storage/RxProfiles.h (.../RxProfiles.h) (revision 046fda9079b58d933faf0d4942c87c18bfdaa471) @@ -177,7 +177,6 @@ // void timerEvent(QTimerEvent *) override; public: - void doInitRxProfiles(); void initModel(const QString &vFile); void clearModel() { _values.clear(); @@ -204,6 +203,7 @@ void doSave (const QString &fileName); void doExport (); void doImport (); + void doInitRxProfiles(); signals: void didNotification ( const QString &vNotification ); Index: sources/view/VRxProfiles.cpp =================================================================== diff -u -r8f4dcc80fadbccfc152b28ea09466a2ab2ee7333 -r046fda9079b58d933faf0d4942c87c18bfdaa471 --- sources/view/VRxProfiles.cpp (.../VRxProfiles.cpp) (revision 8f4dcc80fadbccfc152b28ea09466a2ab2ee7333) +++ sources/view/VRxProfiles.cpp (.../VRxProfiles.cpp) (revision 046fda9079b58d933faf0d4942c87c18bfdaa471) @@ -33,7 +33,7 @@ ADJUST_VIEW_CONNECTION(AdjustParametersValidationRequestData ) ACTION_VIEW_CONNECTION(AdjustParametersValidationResponseData ) ADJUST_VIEW_CONNECTION(AdjustParametersConfirmRequestData ) - connect (this, SIGNAL(didRxProfileList()), &_RxProfilesController, SIGNAL(doInitRxProfiles())); + connect (this, SIGNAL(didRxProfileList()), &_RxProfilesController, SLOT(doInitRxProfiles())); // ACTION_METHOD_BRIDGE_CONNECTION(RxProfileList, _RxProfilesController, QFileInfoList) connect(&_RxProfilesController, SIGNAL(didRxProfileList(QFileInfoList)), this, SLOT(onRxProfileList(QFileInfoList))); @@ -103,6 +103,12 @@ void VRxProfiles::onRxProfileList(const QFileInfoList &vRxProfiles) { qDebug() << "-meow-" << vRxProfiles; + QStringList fileNames; + for (const QFileInfo fileInfo:vRxProfiles){ + fileNames << fileInfo.baseName().replace("_", " "); + } + rxProfilesList(fileNames); + qDebug() << _rxProfilesList; } /** Index: sources/view/VRxProfiles.h =================================================================== diff -u -r8f4dcc80fadbccfc152b28ea09466a2ab2ee7333 -r046fda9079b58d933faf0d4942c87c18bfdaa471 --- sources/view/VRxProfiles.h (.../VRxProfiles.h) (revision 8f4dcc80fadbccfc152b28ea09466a2ab2ee7333) +++ sources/view/VRxProfiles.h (.../VRxProfiles.h) (revision 046fda9079b58d933faf0d4942c87c18bfdaa471) @@ -45,6 +45,8 @@ // friends friend class::tst_views; + PROPERTY(QStringList , rxProfilesList , {}) + PROPERTY(bool , heparinDispensingRateOff , true) PROPERTY(bool , heparinBolusVolumeOff , true)