feat: make proxy windows visible by default

This commit is contained in:
outfoxxed 2024-02-17 05:24:29 -08:00
parent dc616923aa
commit ea2cdf38b8
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -33,10 +33,7 @@ class ProxyWindowBase: public Reloadable {
/// > /// >
/// > Use **only** if you know what you are doing. /// > Use **only** if you know what you are doing.
Q_PROPERTY(QQuickWindow* _backingWindow READ backingWindow); Q_PROPERTY(QQuickWindow* _backingWindow READ backingWindow);
/// The visibility of the window. /// If the window is shown or hidden. Defaults to true.
///
/// > [!INFO] Windows are not visible by default so you will need to set this to make the window
/// > appear.
Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged); Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged);
Q_PROPERTY(qint32 width READ width WRITE setWidth NOTIFY widthChanged); Q_PROPERTY(qint32 width READ width WRITE setWidth NOTIFY widthChanged);
Q_PROPERTY(qint32 height READ height WRITE setHeight NOTIFY heightChanged); Q_PROPERTY(qint32 height READ height WRITE setHeight NOTIFY heightChanged);
@ -152,7 +149,7 @@ private slots:
void onHeightChanged(); void onHeightChanged();
protected: protected:
bool mVisible = false; bool mVisible = true;
qint32 mWidth = 100; qint32 mWidth = 100;
qint32 mHeight = 100; qint32 mHeight = 100;
QColor mColor = Qt::white; QColor mColor = Qt::white;