forked from quickshell/quickshell
all: use fully qualified type names in signals and invokables
Further fixes qmllint/qmlls
This commit is contained in:
parent
98cdb87181
commit
cdeec6ee83
8 changed files with 13 additions and 12 deletions
|
@ -140,7 +140,7 @@ class QsMenuOpener: public QObject {
|
||||||
/// The menu to retrieve children from.
|
/// The menu to retrieve children from.
|
||||||
Q_PROPERTY(qs::menu::QsMenuHandle* menu READ menu WRITE setMenu NOTIFY menuChanged);
|
Q_PROPERTY(qs::menu::QsMenuHandle* menu READ menu WRITE setMenu NOTIFY menuChanged);
|
||||||
/// The children of the given menu.
|
/// The children of the given menu.
|
||||||
Q_PROPERTY(QQmlListProperty<QsMenuEntry> children READ children NOTIFY childrenChanged);
|
Q_PROPERTY(QQmlListProperty<qs::menu::QsMenuEntry> children READ children NOTIFY childrenChanged);
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(MprisPlaybackState::Enum status);
|
Q_INVOKABLE static QString toString(qs::service::mpris::MprisPlaybackState::Enum status);
|
||||||
};
|
};
|
||||||
|
|
||||||
///! Loop state of an MprisPlayer
|
///! Loop state of an MprisPlayer
|
||||||
|
@ -47,7 +47,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(MprisLoopState::Enum status);
|
Q_INVOKABLE static QString toString(qs::service::mpris::MprisLoopState::Enum status);
|
||||||
};
|
};
|
||||||
|
|
||||||
///! A media player exposed over MPRIS.
|
///! A media player exposed over MPRIS.
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(NotificationUrgency::Enum value);
|
Q_INVOKABLE static QString toString(qs::service::notifications::NotificationUrgency::Enum value);
|
||||||
};
|
};
|
||||||
|
|
||||||
///! The reason a Notification was closed.
|
///! The reason a Notification was closed.
|
||||||
|
@ -51,7 +51,8 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(NotificationCloseReason::Enum value);
|
Q_INVOKABLE static QString
|
||||||
|
toString(qs::service::notifications::NotificationCloseReason::Enum value);
|
||||||
};
|
};
|
||||||
|
|
||||||
class NotificationAction;
|
class NotificationAction;
|
||||||
|
@ -149,7 +150,7 @@ signals:
|
||||||
/// Sent when a notification has been closed.
|
/// Sent when a notification has been closed.
|
||||||
///
|
///
|
||||||
/// The notification object will be destroyed as soon as all signal handlers exit.
|
/// The notification object will be destroyed as soon as all signal handlers exit.
|
||||||
void closed(NotificationCloseReason::Enum reason);
|
void closed(qs::service::notifications::NotificationCloseReason::Enum reason);
|
||||||
|
|
||||||
void trackedChanged();
|
void trackedChanged();
|
||||||
void expireTimeoutChanged();
|
void expireTimeoutChanged();
|
||||||
|
|
|
@ -114,7 +114,7 @@ signals:
|
||||||
/// Sent when a notification is received by the server.
|
/// Sent when a notification is received by the server.
|
||||||
///
|
///
|
||||||
/// If this notification should not be discarded, set its `tracked` property to true.
|
/// If this notification should not be discarded, set its `tracked` property to true.
|
||||||
void notification(Notification* notification);
|
void notification(qs::service::notifications::Notification* notification);
|
||||||
|
|
||||||
void keepOnReloadChanged();
|
void keepOnReloadChanged();
|
||||||
void persistenceSupportedChanged();
|
void persistenceSupportedChanged();
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(PwLinkState::Enum value);
|
Q_INVOKABLE static QString toString(qs::service::pipewire::PwLinkState::Enum value);
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr const char TYPE_INTERFACE_Link[] = PW_TYPE_INTERFACE_Link; // NOLINT
|
constexpr const char TYPE_INTERFACE_Link[] = PW_TYPE_INTERFACE_Link; // NOLINT
|
||||||
|
|
|
@ -84,7 +84,7 @@ public:
|
||||||
|
|
||||||
/// Print a human readable representation of the given channel,
|
/// Print a human readable representation of the given channel,
|
||||||
/// including aux and custom channel ranges.
|
/// including aux and custom channel ranges.
|
||||||
Q_INVOKABLE static QString toString(PwAudioChannel::Enum value);
|
Q_INVOKABLE static QString toString(qs::service::pipewire::PwAudioChannel::Enum value);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class PwNodeType {
|
enum class PwNodeType {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(UPowerDeviceState::Enum status);
|
Q_INVOKABLE static QString toString(qs::service::upower::UPowerDeviceState::Enum status);
|
||||||
};
|
};
|
||||||
|
|
||||||
///! Type of a UPower device.
|
///! Type of a UPower device.
|
||||||
|
@ -77,7 +77,7 @@ public:
|
||||||
};
|
};
|
||||||
Q_ENUM(Enum);
|
Q_ENUM(Enum);
|
||||||
|
|
||||||
Q_INVOKABLE static QString toString(UPowerDeviceType::Enum type);
|
Q_INVOKABLE static QString toString(qs::service::upower::UPowerDeviceType::Enum type);
|
||||||
};
|
};
|
||||||
|
|
||||||
///! A device exposed through the UPower system service.
|
///! A device exposed through the UPower system service.
|
||||||
|
|
|
@ -63,7 +63,7 @@ signals:
|
||||||
/// Emitted for every event that comes in through the hyprland event socket (socket2).
|
/// Emitted for every event that comes in through the hyprland event socket (socket2).
|
||||||
///
|
///
|
||||||
/// See [Hyprland Wiki: IPC](https://wiki.hyprland.org/IPC/) for a list of events.
|
/// See [Hyprland Wiki: IPC](https://wiki.hyprland.org/IPC/) for a list of events.
|
||||||
void rawEvent(HyprlandIpcEvent* event);
|
void rawEvent(qs::hyprland::ipc::HyprlandIpcEvent* event);
|
||||||
|
|
||||||
void focusedMonitorChanged();
|
void focusedMonitorChanged();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue