mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 02:26:10 +08:00
Use visible
property of Rectangle
rather than defining a separate property CURA-8564
This commit is contained in:
parent
f7720d2a0d
commit
5dc664e821
@ -11,14 +11,11 @@ import Cura 1.6 as Cura
|
|||||||
// Onboarding banner.
|
// Onboarding banner.
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
property bool bannerVisible
|
|
||||||
property string bannerIcon
|
property string bannerIcon
|
||||||
property string bannerText
|
property string bannerText
|
||||||
property var onRemoveBanner
|
property var onRemoveBanner
|
||||||
property string readMoreUrl
|
property string readMoreUrl
|
||||||
|
|
||||||
visible: bannerVisible
|
|
||||||
|
|
||||||
Layout.preferredHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
|
Layout.preferredHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user