Skip to content

Commit 1620ff9

Browse files
committed
core/window: make readonly bindable getters const
1 parent 888c247 commit 1620ff9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/window/proxywindow.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ class ProxyWindowAttached: public QsWindowAttached {
224224

225225
[[nodiscard]] bool maximized() const override { return this->bMaximized; }
226226
[[nodiscard]] bool fullscreen() const override { return this->bFullscreen; }
227-
[[nodiscard]] QBindable<bool> bindableMaximized() override { return &this->bMaximized; }
228-
[[nodiscard]] QBindable<bool> bindableFullscreen() override { return &this->bFullscreen; }
227+
[[nodiscard]] QBindable<bool> bindableMaximized() const override { return &this->bMaximized; }
228+
[[nodiscard]] QBindable<bool> bindableFullscreen() const override { return &this->bFullscreen; }
229229

230230
protected:
231231
void updateWindow() override;

src/window/windowinterface.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ class QsWindowAttached: public QObject {
281281

282282
[[nodiscard]] virtual bool maximized() const = 0;
283283
[[nodiscard]] virtual bool fullscreen() const = 0;
284-
[[nodiscard]] virtual QBindable<bool> bindableMaximized() = 0;
285-
[[nodiscard]] virtual QBindable<bool> bindableFullscreen() = 0;
284+
[[nodiscard]] virtual QBindable<bool> bindableMaximized() const = 0;
285+
[[nodiscard]] virtual QBindable<bool> bindableFullscreen() const = 0;
286286

287287
Q_INVOKABLE [[nodiscard]] QPointF itemPosition(QQuickItem* item) const;
288288
Q_INVOKABLE [[nodiscard]] QRectF itemRect(QQuickItem* item) const;

0 commit comments

Comments
 (0)