55#include < qobject.h>
66#include < qqmllist.h>
77#include < qquickitem.h>
8- #include < qquickwindow.h>
98#include < qtypes.h>
109
1110#include " ../../core/qmlscreen.hpp"
@@ -173,23 +172,9 @@ WlrLayershell* WlrLayershell::qmlAttachedProperties(QObject* object) {
173172WaylandPanelInterface::WaylandPanelInterface (QObject* parent)
174173 : PanelWindowInterface(parent)
175174 , layer(new WlrLayershell(this )) {
175+ this ->connectSignals ();
176176
177177 // clang-format off
178- QObject::connect (this ->layer , &ProxyWindowBase::windowConnected, this , &WaylandPanelInterface::windowConnected);
179- QObject::connect (this ->layer , &ProxyWindowBase::visibleChanged, this , &WaylandPanelInterface::visibleChanged);
180- QObject::connect (this ->layer , &ProxyWindowBase::backerVisibilityChanged, this , &WaylandPanelInterface::backingWindowVisibleChanged);
181- QObject::connect (this ->layer , &ProxyWindowBase::implicitHeightChanged, this , &WaylandPanelInterface::implicitHeightChanged);
182- QObject::connect (this ->layer , &ProxyWindowBase::implicitWidthChanged, this , &WaylandPanelInterface::implicitWidthChanged);
183- QObject::connect (this ->layer , &ProxyWindowBase::heightChanged, this , &WaylandPanelInterface::heightChanged);
184- QObject::connect (this ->layer , &ProxyWindowBase::widthChanged, this , &WaylandPanelInterface::widthChanged);
185- QObject::connect (this ->layer , &ProxyWindowBase::devicePixelRatioChanged, this , &WaylandPanelInterface::devicePixelRatioChanged);
186- QObject::connect (this ->layer , &ProxyWindowBase::screenChanged, this , &WaylandPanelInterface::screenChanged);
187- QObject::connect (this ->layer , &ProxyWindowBase::windowTransformChanged, this , &WaylandPanelInterface::windowTransformChanged);
188- QObject::connect (this ->layer , &ProxyWindowBase::colorChanged, this , &WaylandPanelInterface::colorChanged);
189- QObject::connect (this ->layer , &ProxyWindowBase::maskChanged, this , &WaylandPanelInterface::maskChanged);
190- QObject::connect (this ->layer , &ProxyWindowBase::surfaceFormatChanged, this , &WaylandPanelInterface::surfaceFormatChanged);
191-
192- // panel specific
193178 QObject::connect (this ->layer , &WlrLayershell::anchorsChanged, this , &WaylandPanelInterface::anchorsChanged);
194179 QObject::connect (this ->layer , &WlrLayershell::marginsChanged, this , &WaylandPanelInterface::marginsChanged);
195180 QObject::connect (this ->layer , &WlrLayershell::exclusiveZoneChanged, this , &WaylandPanelInterface::exclusiveZoneChanged);
@@ -206,32 +191,13 @@ void WaylandPanelInterface::onReload(QObject* oldInstance) {
206191 this ->layer ->reload (old != nullptr ? old->layer : nullptr );
207192}
208193
209- QQmlListProperty<QObject> WaylandPanelInterface::data () { return this ->layer ->data (); }
210194ProxyWindowBase* WaylandPanelInterface::proxyWindow () const { return this ->layer ; }
211- QQuickItem* WaylandPanelInterface::contentItem () const { return this ->layer ->contentItem (); }
212-
213- bool WaylandPanelInterface::isBackingWindowVisible () const {
214- return this ->layer ->isVisibleDirect ();
215- }
216-
217- qreal WaylandPanelInterface::devicePixelRatio () const { return this ->layer ->devicePixelRatio (); }
218195
219196// NOLINTBEGIN
220197#define proxyPair (type, get, set ) \
221198 type WaylandPanelInterface::get () const { return this ->layer ->get (); } \
222199 void WaylandPanelInterface::set (type value) { this ->layer ->set (value); }
223200
224- proxyPair (bool , isVisible, setVisible);
225- proxyPair (qint32, implicitWidth, setImplicitWidth);
226- proxyPair (qint32, implicitHeight, setImplicitHeight);
227- proxyPair (qint32, width, setWidth);
228- proxyPair (qint32, height, setHeight);
229- proxyPair (QuickshellScreenInfo*, screen, setScreen);
230- proxyPair (QColor, color, setColor);
231- proxyPair (PendingRegion*, mask, setMask);
232- proxyPair (QsSurfaceFormat, surfaceFormat, setSurfaceFormat);
233-
234- // panel specific
235201proxyPair (Anchors, anchors, setAnchors);
236202proxyPair (Margins, margins, setMargins);
237203proxyPair (qint32, exclusiveZone, setExclusiveZone);
0 commit comments