Index: sources/gui/qml/components/ExportButton.qml =================================================================== diff -u -re125bd5cf13750eaf241d518b9c846139afaa81c -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision e125bd5cf13750eaf241d518b9c846139afaa81c) +++ sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file ExportButton.qml - * \author (last) Behrouz NematiPour - * \date (last) 08-Jan-2020 - * \author (original) Behrouz NematiPour - * \date (original) 26-Dec-2019 + * \file ExportButton.qml + * \author (last) Behrouz NematiPour + * \date (last) 28-Sep-2022 + * \author (original) Behrouz NematiPour + * \date (original) 26-Dec-2019 * */ @@ -21,30 +21,17 @@ import "qrc:/components" TouchRect { id : _root - width : 155 - height : 50 - property bool exportTreatment: false + property bool isSmall: false - anchors.margins: 35 + property bool disabled : false + width : isSmall ? 155 : Variables.touchRectWidth + height : isSmall ? 50 : Variables.touchRectHeight + + anchors.margins: 35 text { text: qsTr("Export") - font.pixelSize: Fonts.fontPixelButton * 0.75 + font.pixelSize: Fonts.fontPixelButton * (isSmall ? 0.75 : 1) } - onClicked: { - if ( exportTreatment ) - _GuiView.doExportTreatment() - else - _GuiView.doExportLog() - - } - - Connections { target: _GuiView - onDidUSBDriveUmount : _root.enabled = false - onDidUSBDriveRemove : _root.enabled = false - onDidUSBDriveMount : _root.enabled = true - onDidExportLog : _root.enabled = false - onDidExport : _root.enabled = true - } }