#include <TextPropertyConfigModel.h>
|
| bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override |
| |
Definition at line 84 of file TextPropertyConfigModel.h.
◆ TextPropertyConfigFilterModel()
| TextPropertyConfigFilterModel::TextPropertyConfigFilterModel |
( |
QObject * | parent = nullptr | ) |
|
◆ filterAcceptsRow()
| bool TextPropertyConfigFilterModel::filterAcceptsRow |
( |
int | source_row, |
|
|
const QModelIndex & | source_parent ) const |
|
overrideprotected |
Definition at line 218 of file TextPropertyConfigModel.cpp.
219{
220 QModelIndex idx =
sourceModel()->index(source_row, 0, source_parent);
221 if (!idx.isValid()) return false;
222
225
228 return false;
230 return false;
231 }
232
233 const QString
name =
sourceModel()->data(idx, Qt::DisplayRole).toString();
235
236 return (
name.contains(filterRegularExpression()) || searchTerms.filter(filterRegularExpression()).
size()>0);
237}
QAbstractItemModel * sourceModel
bool m_showParagraphProperties
@ Character
This property can be applied on a character level.
@ Paragraph
This property only does something when applied to a paragraph.
@ NeverVisible
Never show property.
const char * name(StandardAction id)
int toInt(const QString &str, bool *ok=nullptr)
int size(const Forest< T > &forest)
References TextPropertyConfigModel::Character, m_showParagraphProperties, TextPropertyConfigModel::NeverVisible, TextPropertyConfigModel::Paragraph, TextPropertyConfigModel::SearchTerms, sourceModel, TextPropertyConfigModel::Type, and TextPropertyConfigModel::Visibility.
◆ filteredNames()
| QStringList TextPropertyConfigFilterModel::filteredNames |
( |
| ) |
const |
◆ filteredNamesChanged
| void TextPropertyConfigFilterModel::filteredNamesChanged |
( |
| ) |
|
|
signal |
◆ proxySourceModelChanged
| void TextPropertyConfigFilterModel::proxySourceModelChanged |
( |
| ) |
|
|
signal |
◆ setProxySourceModel()
| void TextPropertyConfigFilterModel::setProxySourceModel |
( |
QAbstractItemModel * | model | ) |
|
◆ setShowParagraphProperties()
| void TextPropertyConfigFilterModel::setShowParagraphProperties |
( |
const bool | show | ) |
|
◆ showParagraphProperties()
| bool TextPropertyConfigFilterModel::showParagraphProperties |
( |
| ) |
const |
◆ showParagraphPropertiesChanged
| void TextPropertyConfigFilterModel::showParagraphPropertiesChanged |
( |
| ) |
|
|
signal |
◆ m_showParagraphProperties
| bool TextPropertyConfigFilterModel::m_showParagraphProperties |
|
protected |
◆ filteredNames
| QStringList TextPropertyConfigFilterModel::filteredNames |
|
read |
◆ showParagraphProperties
| bool TextPropertyConfigFilterModel::showParagraphProperties |
|
readwrite |
◆ sourceModel
| QAbstractItemModel * TextPropertyConfigFilterModel::sourceModel |
|
readwrite |
The documentation for this class was generated from the following files: