mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
all: use UntypedObjectModel instead of ObjectModel in Q_PROPERTY
Fixes qmllint/qmlls type deduction for ObjectModels
This commit is contained in:
parent
746b0e70d7
commit
98cdb87181
9 changed files with 33 additions and 11 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <qtclasshelpermacros.h>
|
||||
#include <qtmetamacros.h>
|
||||
|
||||
#include "../../core/doc.hpp"
|
||||
#include "../../core/model.hpp"
|
||||
#include "item.hpp"
|
||||
|
||||
|
|
@ -125,7 +126,8 @@ signals:
|
|||
class SystemTray: public QObject {
|
||||
Q_OBJECT;
|
||||
/// List of all system tray icons.
|
||||
Q_PROPERTY(ObjectModel<SystemTrayItem>* items READ items CONSTANT);
|
||||
QSDOC_TYPE_OVERRIDE(ObjectModel<SystemTrayItem>*);
|
||||
Q_PROPERTY(UntypedObjectModel* items READ items CONSTANT);
|
||||
QML_ELEMENT;
|
||||
QML_SINGLETON;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue