6#include <PhosphorShell/phosphorshell_export.h>
14#include <QAbstractListModel>
17#include <QQmlComponent>
99 Q_CLASSINFO(
"DefaultProperty",
"delegate")
105 [[nodiscard]] QAbstractListModel*
model()
const;
125 void warnIfAlreadyBuilt(
const char* property)
const;
127 QPointer<QAbstractListModel> m_model;
128 QPointer<QQmlComponent> m_delegate;
131 bool m_built =
false;
136 QList<QPointer<QObject>> m_instances;
void setModel(QAbstractListModel *model)
QAbstractListModel * model() const
void componentComplete() override
~PerScreenPanels() override
PerScreenPanels(QQuickItem *parent=nullptr)
Number of instances created. Reads 0 until componentComplete.
void setDelegate(QQmlComponent *delegate)
QQmlComponent * delegate() const
Definition Environment.h:11