forked from quickshell/quickshell
build: fix PostReloadHook resolution in LSP
This commit is contained in:
parent
a45fc03c7d
commit
4d8055f1cd
9 changed files with 20 additions and 5 deletions
|
@ -122,6 +122,10 @@ private:
|
|||
class PostReloadHook
|
||||
: public QObject
|
||||
, public QQmlParserStatus {
|
||||
Q_OBJECT;
|
||||
QML_ANONYMOUS;
|
||||
Q_INTERFACES(QQmlParserStatus);
|
||||
|
||||
public:
|
||||
PostReloadHook(QObject* parent = nullptr): QObject(parent) {}
|
||||
void classBegin() override {}
|
||||
|
|
|
@ -21,6 +21,7 @@ qt_add_qml_module(quickshell-io
|
|||
FileView.qml
|
||||
)
|
||||
|
||||
qs_add_module_deps_light(quickshell-io Quickshell)
|
||||
install_qml_module(quickshell-io)
|
||||
|
||||
target_link_libraries(quickshell-io PRIVATE Qt::Quick)
|
||||
|
|
|
@ -91,6 +91,7 @@ class JsonAdapter
|
|||
, public QQmlParserStatus {
|
||||
Q_OBJECT;
|
||||
QML_ELEMENT;
|
||||
Q_INTERFACES(QQmlParserStatus);
|
||||
|
||||
public:
|
||||
void classBegin() override {}
|
||||
|
|
|
@ -23,7 +23,6 @@ qt_add_qml_module(quickshell-service-notifications
|
|||
)
|
||||
|
||||
qs_add_module_deps_light(quickshell-service-notifications Quickshell)
|
||||
|
||||
install_qml_module(quickshell-service-notifications)
|
||||
|
||||
target_link_libraries(quickshell-service-notifications PRIVATE Qt::Quick Qt::DBus)
|
||||
|
|
|
@ -171,7 +171,11 @@ public:
|
|||
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; };
|
||||
[[nodiscard]] QBindable<QString> bindableImage() const { return &this->bImage; };
|
||||
[[nodiscard]] QBindable<bool> bindableHasInlineReply() const { return &this->bHasInlineReply; };
|
||||
[[nodiscard]] QBindable<QString> bindableInlineReplyPlaceholder() const { return &this->bInlineReplyPlaceholder; };
|
||||
|
||||
[[nodiscard]] QBindable<QString> bindableInlineReplyPlaceholder() const {
|
||||
return &this->bInlineReplyPlaceholder;
|
||||
};
|
||||
|
||||
[[nodiscard]] QBindable<QVariantMap> bindableHints() const { return &this->bHints; };
|
||||
|
||||
[[nodiscard]] NotificationCloseReason::Enum closeReason() const;
|
||||
|
|
|
@ -17,6 +17,9 @@ class PamContext
|
|||
: public QObject
|
||||
, public QQmlParserStatus {
|
||||
Q_OBJECT;
|
||||
QML_ELEMENT;
|
||||
Q_INTERFACES(QQmlParserStatus);
|
||||
|
||||
// clang-format off
|
||||
/// If the pam context is actively performing an authentication.
|
||||
///
|
||||
|
@ -49,7 +52,6 @@ class PamContext
|
|||
/// If the user's response should be visible. Only valid when @@responseRequired is true.
|
||||
Q_PROPERTY(bool responseVisible READ isResponseVisible NOTIFY responseVisibleChanged);
|
||||
// clang-format on
|
||||
QML_ELEMENT;
|
||||
|
||||
public:
|
||||
explicit PamContext(QObject* parent = nullptr): QObject(parent) {}
|
||||
|
|
|
@ -30,6 +30,7 @@ qt_add_qml_module(quickshell-hyprland
|
|||
IMPORTS ${HYPRLAND_MODULES}
|
||||
)
|
||||
|
||||
qs_add_module_deps_light(quickshell-io Quickshell)
|
||||
install_qml_module(quickshell-hyprland)
|
||||
|
||||
# intentionally no pch as the module is empty
|
||||
|
|
|
@ -56,6 +56,8 @@ class HyprlandFocusGrab
|
|||
: public QObject
|
||||
, public QQmlParserStatus {
|
||||
Q_OBJECT;
|
||||
QML_ELEMENT;
|
||||
Q_INTERFACES(QQmlParserStatus);
|
||||
/// If the focus grab is active. Defaults to false.
|
||||
///
|
||||
/// When set to true, an input grab will be created for the listed windows.
|
||||
|
@ -66,7 +68,6 @@ class HyprlandFocusGrab
|
|||
Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged);
|
||||
/// The list of windows to whitelist for input.
|
||||
Q_PROPERTY(QList<QObject*> windows READ windows WRITE setWindows NOTIFY windowsChanged);
|
||||
QML_ELEMENT;
|
||||
|
||||
public:
|
||||
explicit HyprlandFocusGrab(QObject* parent = nullptr): QObject(parent) {}
|
||||
|
|
|
@ -85,6 +85,9 @@ class WrapperManager
|
|||
: public QObject
|
||||
, public QQmlParserStatus {
|
||||
Q_OBJECT;
|
||||
QML_ELEMENT;
|
||||
Q_INTERFACES(QQmlParserStatus);
|
||||
|
||||
// clang-format off
|
||||
/// The wrapper component's selected child.
|
||||
///
|
||||
|
@ -102,7 +105,6 @@ class WrapperManager
|
|||
/// This property may not be changed after Component.onCompleted.
|
||||
Q_PROPERTY(QQuickItem* wrapper READ wrapper WRITE setWrapper NOTIFY wrapperChanged FINAL);
|
||||
// clang-format on
|
||||
QML_ELEMENT;
|
||||
|
||||
public:
|
||||
explicit WrapperManager(QObject* parent = nullptr): QObject(parent) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue