Index: sources/gui/qml/components/ExportButton.qml =================================================================== diff -u -rb9c5b0b3afc3b34d4980ecc4f023f498f80dafbc -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision b9c5b0b3afc3b34d4980ecc4f023f498f80dafbc) +++ sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,14 +1,15 @@ /*! * - * Copyright (c) 2019-2019 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * 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 - * \date 2019/12/26 - * \author Behrouz NematiPour + * \author (last) Behrouz NematiPour + * \date (last) 28-Sep-2022 + * \author (original) Behrouz NematiPour + * \date (original) 26-Dec-2019 * */ @@ -20,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) } }