diff --git a/widgets/DapButtonForm.ui.qml b/widgets/DapButtonForm.ui.qml index e274195de6c89eb799b600179d7ec60bdc699bb2..6f2ac48f3c2c95bb0c2e1569807e7c3c7e28c5fd 100644 --- a/widgets/DapButtonForm.ui.qml +++ b/widgets/DapButtonForm.ui.qml @@ -1,7 +1,8 @@ import QtQuick 2.0 import QtQuick.Controls 2.0 -Button { +Button +{ ///@detalis heightButton Button height. property int heightButton ///@detalis widthButton Button width. diff --git a/widgets/DapRadioButton.qml b/widgets/DapRadioButton.qml index 90662ac4c8866dd14324f18815932c5e1d8f6402..a1757566e48b12b7d34f3ad00779d9684bb227c2 100644 --- a/widgets/DapRadioButton.qml +++ b/widgets/DapRadioButton.qml @@ -1,4 +1,6 @@ import QtQuick 2.4 -DapRadioButtonForm { +DapRadioButtonForm +{ + } diff --git a/widgets/DapRadioButtonForm.ui.qml b/widgets/DapRadioButtonForm.ui.qml index 9cdbb9de3ba624522ec30f25850bab278e663a7d..c972fb60cbd2d2089165b5c8c5d57134762a22df 100644 --- a/widgets/DapRadioButtonForm.ui.qml +++ b/widgets/DapRadioButtonForm.ui.qml @@ -17,6 +17,8 @@ RadioButton property alias backgroundColor:backgroundColor.color ///@detalis spaceIndicatorText The gap between the indicator and the text. property int spaceIndicatorText + ///@detalis indicatorBorder Border indicator. + property alias indicatorBorder: indicatorRadioButton.border ///@detalis indicatorBorderColor Border color indicator. property string indicatorBorderColor ///@detalis indicatorBackgroundColor Background color indicator. @@ -34,19 +36,23 @@ RadioButton id: customRadioButton ///Text Options. - contentItem: Text { - id: nameButton - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: customRadioButton.indicator.width + spaceIndicatorText - verticalAlignment: Text.AlignVCenter - anchors.verticalCenter: parent.verticalCenter - color: "#3E3853" - horizontalAlignment: Text.AlignLeft - text: qsTr("template") - } - ///Indicator Options. - indicator: Rectangle { + contentItem: + Text + { + id: nameButton + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: customRadioButton.indicator.width + spaceIndicatorText + verticalAlignment: Text.AlignVCenter + anchors.verticalCenter: parent.verticalCenter + color: "#3E3853" + horizontalAlignment: Text.AlignLeft + text: qsTr("template") + } + ///Indicator Options. + indicator: + Rectangle + { id: indicatorRadioButton implicitWidth: indicatorSize implicitHeight: indicatorSize @@ -54,16 +60,17 @@ RadioButton y: parent.height / 2 - height / 2 radius: indicatorSize/2 color: indicatorBackgroundColor - border.color: indicatorBorderColor ///Indicator inner options. - Rectangle { + Rectangle + { width: indicatorInnerSize height: indicatorInnerSize x: (indicatorRadioButton.width/2)-(width/2) y: (indicatorRadioButton.height/2)-(height/2) radius: indicatorInnerSize/2 color: customRadioButton.checked ? indicatorInnerColorActiv : indicatorInnerColorNormal + visible: customRadioButton.checked } } ///Background options.