Index: cppcheck.err =================================================================== diff -u -r142f2ddb8ce284c52c0add2acf3ac81f471b78de -r7823da721f8041d6d39c37cd040e162ea9d35e7f --- cppcheck.err (.../cppcheck.err) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) +++ cppcheck.err (.../cppcheck.err) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) @@ -79,10 +79,9 @@ [sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:132]: (style) The function 'doDisinfectConfirm' is never used. [sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:109]: (style) The function 'doDisinfectFlush' is never used. [sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:118]: (style) The function 'doDisinfectHeat' is never used. -[sources/gui/GuiView.cpp:245]: (style) The function 'doExportListDelete' is never used. -[sources/gui/GuiView.cpp:235]: (style) The function 'doExportListInsert' is never used. -[sources/gui/GuiView.cpp:261]: (style) The function 'doExportListPercent' is never used. -[sources/gui/GuiView.cpp:255]: (style) The function 'doExportListSelect' is never used. +[sources/gui/GuiView.cpp:250]: (style) The function 'doExportListInsert' is never used. +[sources/gui/GuiView.cpp:293]: (style) The function 'doExportListPercent' is never used. +[sources/gui/GuiView.cpp:281]: (style) The function 'doExportListSelect' is never used. [sources/view/VTreatmentCreate(legacy).cpp:520]: (style) The function 'doGetOperatingParameterNames' is never used. [sources/view/VTreatmentCreate(legacy).cpp:539]: (style) The function 'doGetOperatingParameterValues' is never used. [sources/view/VTreatmentCreate(legacy).cpp:487]: (style) The function 'doGetPrescriptionParameterNames' is never used. Index: denali.pro.user =================================================================== diff -u -r142f2ddb8ce284c52c0add2acf3ac81f471b78de -r7823da721f8041d6d39c37cd040e162ea9d35e7f --- denali.pro.user (.../denali.pro.user) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) +++ denali.pro.user (.../denali.pro.user) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) @@ -1,6 +1,6 @@ - + EnvironmentId Index: sources/gui/GuiView.cpp =================================================================== diff -u -r142f2ddb8ce284c52c0add2acf3ac81f471b78de -r7823da721f8041d6d39c37cd040e162ea9d35e7f --- sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) +++ sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) @@ -236,6 +236,8 @@ exportIndex (vIndex ); exportFile (vFileName ); exportPercent (vPercent ); + if ( vPercent == 100 ) + doExportListDelete(vIndex); emit didExportStat (vIndex, vFileName, vPercent); } Index: sources/gui/qml/pages/settings/SettingsExportLogs.qml =================================================================== diff -u -r142f2ddb8ce284c52c0add2acf3ac81f471b78de -r7823da721f8041d6d39c37cd040e162ea9d35e7f --- sources/gui/qml/pages/settings/SettingsExportLogs.qml (.../SettingsExportLogs.qml) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) +++ sources/gui/qml/pages/settings/SettingsExportLogs.qml (.../SettingsExportLogs.qml) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) @@ -139,15 +139,8 @@ _root.updatePanels() } onDidExportStat: { - //DEBUG: console.debug(" 4 ", vIndex, vFileName, vPercent) + _sdcFolderView.positionViewAtIndex(vIndex, ListView.Center) } - onExportIndexChanged: { - //DEBUG: console.debug(" # " , _GuiView.exportIndex, _GuiView.exportList, _GuiView.exportList[ _GuiView.exportIndex ], _GuiView.doExportListSelect( _GuiView.exportIndex )) - } - - onExportListChanged: { - //DEBUG: console.debug(" @ " , _GuiView.exportIndex, _GuiView.exportList, _GuiView.exportList[ _GuiView.exportIndex ], _GuiView.doExportListSelect( _GuiView.exportIndex )) - } } USBButton { id: _usbEjectButton @@ -357,12 +350,16 @@ Component { id : _sdcFileDelegate ProgressBar { id : _sdcItemBackground + // *** IMPORTANT *** + // QML kills the items when they get out of the view port in regards to the cacheBuffer, + // and the next time it gets in the view port will be created with all the properties in their defaults. property bool inExportList : _GuiView.exportList [ index ] // I couldn't make it work and this always returns undefined, but has to be used to trigger the change. ? _GuiView.exportList [ index ] // In case the issue fixes it should return true if it is true, obviously! : _GuiView.doExportListSelect ( index ) // otherwise for now, it calls the contains() function of the list in C++ backend. - property int exportPercent : _GuiView.exportListPercent [ index ] - ? _GuiView.exportListPercent [ index ] - : _GuiView.doExportListPercent( index ) + property int exportPercent : _GuiView.exportIndex === index + ? _GuiView.exportPercent + : 0 + onExportPercentChanged : console.log( "%", exportPercent) //DEBUG: onInExportListChanged: console.debug(" * ", index, inExportList) function exportListUpdate() { if (_GuiView.doExportListSelect( index ) ) { @@ -382,16 +379,11 @@ maxText.visible : false marker.visible : false maximum : 100 // percent - value : maximum // - exportPercent + value : maximum - exportPercent width : parent.width height : 40 bgColor : Colors.transparent - // *** IMPORTANT *** - // QML kills the items when they get our of the view port and regarding the cacheBuffer, - // and the next time it getsin the view port to be created, selected is false as its default - // therfore we need to update the current with selected property while the item is alive, - // on recreation the list will help update the item. - color : /*Colors.borderButtonSelected //*/ inExportList ? Colors.borderButtonSelected : Colors.transparent + color : inExportList ? Colors.borderButtonSelected : Colors.transparent radius : 5 Row { id : _sdcFileRow width : parent.width Index: sources/model/hd/alarm/MAlarmMapping.cpp =================================================================== diff -u -r142f2ddb8ce284c52c0add2acf3ac81f471b78de -r7823da721f8041d6d39c37cd040e162ea9d35e7f --- sources/model/hd/alarm/MAlarmMapping.cpp (.../MAlarmMapping.cpp) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) +++ sources/model/hd/alarm/MAlarmMapping.cpp (.../MAlarmMapping.cpp) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) @@ -7,7 +7,7 @@ * * \file MAlarmMapping.cpp * \author (last) Behrouz NematiPour - * \date (last) 15-Oct-2022 + * \date (last) 16-Oct-2022 * \author (original) Behrouz NematiPour * \date (original) 03-May-2021 *