Skip to content

Commit 4d8055f

Browse files
committed
build: fix PostReloadHook resolution in LSP
1 parent a45fc03 commit 4d8055f

File tree

9 files changed

+20
-5
lines changed

9 files changed

+20
-5
lines changed

src/core/reload.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ class ReloadPropagator: public Reloadable {
122122
class PostReloadHook
123123
: public QObject
124124
, public QQmlParserStatus {
125+
Q_OBJECT;
126+
QML_ANONYMOUS;
127+
Q_INTERFACES(QQmlParserStatus);
128+
125129
public:
126130
PostReloadHook(QObject* parent = nullptr): QObject(parent) {}
127131
void classBegin() override {}

src/io/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ qt_add_qml_module(quickshell-io
2121
FileView.qml
2222
)
2323

24+
qs_add_module_deps_light(quickshell-io Quickshell)
2425
install_qml_module(quickshell-io)
2526

2627
target_link_libraries(quickshell-io PRIVATE Qt::Quick)

src/io/jsonadapter.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class JsonAdapter
9191
, public QQmlParserStatus {
9292
Q_OBJECT;
9393
QML_ELEMENT;
94+
Q_INTERFACES(QQmlParserStatus);
9495

9596
public:
9697
void classBegin() override {}

src/services/notifications/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ qt_add_qml_module(quickshell-service-notifications
2323
)
2424

2525
qs_add_module_deps_light(quickshell-service-notifications Quickshell)
26-
2726
install_qml_module(quickshell-service-notifications)
2827

2928
target_link_libraries(quickshell-service-notifications PRIVATE Qt::Quick Qt::DBus)

src/services/notifications/notification.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ class Notification
171171
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; };
172172
[[nodiscard]] QBindable<QString> bindableImage() const { return &this->bImage; };
173173
[[nodiscard]] QBindable<bool> bindableHasInlineReply() const { return &this->bHasInlineReply; };
174-
[[nodiscard]] QBindable<QString> bindableInlineReplyPlaceholder() const { return &this->bInlineReplyPlaceholder; };
174+
175+
[[nodiscard]] QBindable<QString> bindableInlineReplyPlaceholder() const {
176+
return &this->bInlineReplyPlaceholder;
177+
};
178+
175179
[[nodiscard]] QBindable<QVariantMap> bindableHints() const { return &this->bHints; };
176180

177181
[[nodiscard]] NotificationCloseReason::Enum closeReason() const;

src/services/pam/qml.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class PamContext
1717
: public QObject
1818
, public QQmlParserStatus {
1919
Q_OBJECT;
20+
QML_ELEMENT;
21+
Q_INTERFACES(QQmlParserStatus);
22+
2023
// clang-format off
2124
/// If the pam context is actively performing an authentication.
2225
///
@@ -49,7 +52,6 @@ class PamContext
4952
/// If the user's response should be visible. Only valid when @@responseRequired is true.
5053
Q_PROPERTY(bool responseVisible READ isResponseVisible NOTIFY responseVisibleChanged);
5154
// clang-format on
52-
QML_ELEMENT;
5355

5456
public:
5557
explicit PamContext(QObject* parent = nullptr): QObject(parent) {}

src/wayland/hyprland/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ qt_add_qml_module(quickshell-hyprland
3030
IMPORTS ${HYPRLAND_MODULES}
3131
)
3232

33+
qs_add_module_deps_light(quickshell-io Quickshell)
3334
install_qml_module(quickshell-hyprland)
3435

3536
# intentionally no pch as the module is empty

src/wayland/hyprland/focus_grab/qml.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class HyprlandFocusGrab
5656
: public QObject
5757
, public QQmlParserStatus {
5858
Q_OBJECT;
59+
QML_ELEMENT;
60+
Q_INTERFACES(QQmlParserStatus);
5961
/// If the focus grab is active. Defaults to false.
6062
///
6163
/// When set to true, an input grab will be created for the listed windows.
@@ -66,7 +68,6 @@ class HyprlandFocusGrab
6668
Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged);
6769
/// The list of windows to whitelist for input.
6870
Q_PROPERTY(QList<QObject*> windows READ windows WRITE setWindows NOTIFY windowsChanged);
69-
QML_ELEMENT;
7071

7172
public:
7273
explicit HyprlandFocusGrab(QObject* parent = nullptr): QObject(parent) {}

src/widgets/wrapper.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ class WrapperManager
8585
: public QObject
8686
, public QQmlParserStatus {
8787
Q_OBJECT;
88+
QML_ELEMENT;
89+
Q_INTERFACES(QQmlParserStatus);
90+
8891
// clang-format off
8992
/// The wrapper component's selected child.
9093
///
@@ -102,7 +105,6 @@ class WrapperManager
102105
/// This property may not be changed after Component.onCompleted.
103106
Q_PROPERTY(QQuickItem* wrapper READ wrapper WRITE setWrapper NOTIFY wrapperChanged FINAL);
104107
// clang-format on
105-
QML_ELEMENT;
106108

107109
public:
108110
explicit WrapperManager(QObject* parent = nullptr): QObject(parent) {}

0 commit comments

Comments
 (0)