mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Use visible property of Rectangle
rather than defining a separate property CURA-8564
This commit is contained in:
parent
00135e574d
commit
f8d9f1e39c
2 changed files with 1 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ Window
|
||||||
|
|
||||||
OnboardBanner
|
OnboardBanner
|
||||||
{
|
{
|
||||||
bannerVisible: content.item && content.item.bannerVisible
|
visible: content.item && content.item.bannerVisible
|
||||||
bannerText: content.item && content.item.bannerText
|
bannerText: content.item && content.item.bannerText
|
||||||
bannerIcon: content.item && content.item.bannerIcon
|
bannerIcon: content.item && content.item.bannerIcon
|
||||||
onRemoveBanner: content.item && content.item.onRemoveBanner
|
onRemoveBanner: content.item && content.item.onRemoveBanner
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue