Index: sources/gui/qml/components/TextRect.qml =================================================================== diff -u -r442d1c4f53c96991d4103485ff5ff683ed00d4f7 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/TextRect.qml (.../TextRect.qml) (revision 442d1c4f53c96991d4103485ff5ff683ed00d4f7) +++ sources/gui/qml/components/TextRect.qml (.../TextRect.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,20 +1,20 @@ /*! * - * Copyright (c) 2019-2020 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) 2020-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 TextRect.qml - * \date 2019/01/10 - * \author Behrouz NematiPour + * \author (last) Vy + * \date (last) 20-Mar-2023 + * \author (original) Behrouz NematiPour + * \date (original) 11-Jan-2020 * */ // Qt import QtQuick 2.12 -import QtQuick.Controls 2.12 // Project // Qml imports @@ -23,7 +23,7 @@ /*! * \brief The TextRect Component * which is a static text rectangle area containing title and a text blow it - * with and extra text next to it whcih can be used for example for unit. + * with and extra text next to it which can be used for example for unit texts. */ Item { id : _root property string title : "" @@ -36,6 +36,8 @@ property alias labelHeight : _labelText.height property alias labelFont : _labelText.font + property alias extraLabelPixelSize : _extraText.font.pixelSize + property string extra : "" property string extraColor : Colors.textTextRectExtra @@ -45,6 +47,8 @@ width : _column.width height: _column.height + clip: false + Column { id: _column width : Math.max(_titleText.width , _row.width ) height: _titleText.height + _row.height + spacing