Index: sources/gui/qml/components/ExportButton.qml =================================================================== diff -u -r56e378f7504701b9e9a9dccaf205aef2fd52c58e -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) +++ 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,32 +21,17 @@ import "qrc:/components" TouchRect { id : _root - width: 50 - height: width - x: width - 10 - animated: true - text.text: qsTr("Export") - text.font.pixelSize: Fonts.fontPixelButton * 0.75 - button.onPressed: { - _GuiView.doExportLog() - } - Connections { target: _GuiView - onDidUSBDriveUmount: { - _root.disabled = true - } - onDidUSBDriveRemove: { - //_root.animate(false) - _root.disabled = true - } - onDidUSBDriveMount: { - _root.disabled = false - } - onDidExportLog: { - _root.disabled = true - } - onDidExport: { - _root.disabled = false - } + property bool isSmall: false + + 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 * (isSmall ? 0.75 : 1) } }