QAbstractItemModel * sourceModel
bool m_showParagraphProperties
QStringList filteredNames
void setShowParagraphProperties(const bool show)
void proxySourceModelChanged()
void setProxySourceModel(QAbstractItemModel *model)
void showParagraphPropertiesChanged()
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
bool showParagraphProperties
void filteredNamesChanged()
VisibilityState defaultVisibilityState
int rowCount(const QModelIndex &parent) const override
const QScopedPointer< Private > d
@ Character
This property can be applied on a character level.
@ Paragraph
This property only does something when applied to a paragraph.
@ Mixed
This property can be in either.
bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override
bool setData(const QModelIndex &index, const QVariant &value, int role) override
void shouldFilterChanged()
Q_INVOKABLE void loadFromConfiguration()
Q_INVOKABLE void addProperty(const QString &name, const int propertyType=0, const QString title=QString(), const QString toolTip=QString(), const QString searchTerms=QString(), const int visibilityState=-1)
Q_INVOKABLE int visibilityStateForName(const QString &name) const
~TextPropertyConfigModel()
void setDefaultVisibilityState(const VisibilityState state)
@ FollowDefault
Follow the default property.
@ WhenRelevant
Show when either set or inherited.
TextPropertyConfigModel(QObject *parent=nullptr)
QVariant data(const QModelIndex &index, int role) const override
QHash< int, QByteArray > roleNames() const override
void defaultVisibilityStateChanged()