From ea2cdf38b888b9ce99c5d268475c7b91f665fa6c Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 17 Feb 2024 05:24:29 -0800 Subject: [PATCH] feat: make proxy windows visible by default --- src/cpp/proxywindow.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cpp/proxywindow.hpp b/src/cpp/proxywindow.hpp index d0c82098..682e2470 100644 --- a/src/cpp/proxywindow.hpp +++ b/src/cpp/proxywindow.hpp @@ -33,10 +33,7 @@ class ProxyWindowBase: public Reloadable { /// > /// > Use **only** if you know what you are doing. Q_PROPERTY(QQuickWindow* _backingWindow READ backingWindow); - /// The visibility of the window. - /// - /// > [!INFO] Windows are not visible by default so you will need to set this to make the window - /// > appear. + /// If the window is shown or hidden. Defaults to true. Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged); Q_PROPERTY(qint32 width READ width WRITE setWidth NOTIFY widthChanged); Q_PROPERTY(qint32 height READ height WRITE setHeight NOTIFY heightChanged); @@ -152,7 +149,7 @@ private slots: void onHeightChanged(); protected: - bool mVisible = false; + bool mVisible = true; qint32 mWidth = 100; qint32 mHeight = 100; QColor mColor = Qt::white;