本文整理汇总了C++中setDynamicSortFilter函数的典型用法代码示例。如果您正苦于以下问题:C++ setDynamicSortFilter函数的具体用法?C++ setDynamicSortFilter怎么用?C++ setDynamicSortFilter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setDynamicSortFilter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QSortFilterProxyModel
ChatMessageSortFilterProxyModel::ChatMessageSortFilterProxyModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
setSortLocaleAware(true);
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
}
示例2: QSortFilterProxyModel
QFEvaluationRawDataModelProxy::QFEvaluationRawDataModelProxy(QObject *parent):
QSortFilterProxyModel(parent)
{
setDynamicSortFilter(true);
eval=NULL;
editor=NULL;
};
示例3: QSortFilterProxyModel
IRC_USE_NAMESPACE
BufferFilterModel::BufferFilterModel(MessageStorage* storage) :
QSortFilterProxyModel(storage), m_status(0), m_storage(storage)
{
setDynamicSortFilter(true);
}
示例4: setDynamicSortFilter
void FolderModel::setSortMode(int mode)
{
if (m_sortMode != mode) {
m_sortMode = mode;
if (mode == -1 /* Unsorted */) {
setDynamicSortFilter(false);
} else {
invalidate();
sort(m_sortMode, m_sortDesc ? Qt::DescendingOrder : Qt::AscendingOrder);
setDynamicSortFilter(true);
}
emit sortModeChanged();
}
}
示例5: ProxyModel
PlaylistsProxyModel::PlaylistsProxyModel(QObject *parent)
: ProxyModel(parent)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortLocaleAware(true);
}
示例6: QSortFilterProxyModel
QgsBrowserProxyModel::QgsBrowserProxyModel( QObject *parent )
: QSortFilterProxyModel( parent )
{
setDynamicSortFilter( true );
setSortRole( QgsBrowserModel::SortRole );
setSortCaseSensitivity( Qt::CaseInsensitive );
sort( 0 );
}
示例7: QSortFilterProxyModel
HistoryFilterModel::HistoryFilterModel(QObject * parent)
: QSortFilterProxyModel(parent)
{
setSourceModel(HistoryManager::historyManager());
setDynamicSortFilter(true);
setFilterKeyColumn(-1);
}
示例8: QSortFilterProxyModel
QgsLocatorProxyModel::QgsLocatorProxyModel( QObject *parent )
: QSortFilterProxyModel( parent )
{
setDynamicSortFilter( true );
setSortLocaleAware( true );
setFilterCaseSensitivity( Qt::CaseInsensitive );
sort( 0 );
}
示例9: AddressBookSortFilterProxyModel
AddressBookSortFilterProxyModel(const QString& type, QObject* parent)
: QSortFilterProxyModel(parent)
, m_type(type)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
}
示例10: setDynamicSortFilter
void ContactsModelProxy::setSourceModel(QAbstractItemModel *sourceModel)
{
SourceContactModel = dynamic_cast<AbstractContactsModel *>(sourceModel);
QSortFilterProxyModel::setSourceModel(sourceModel);
setDynamicSortFilter(true);
sort(0);
}
示例11: ProxyModel
PodcastService::Proxy::Proxy(QObject *parent)
: ProxyModel(parent)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortLocaleAware(true);
}
示例12: QSortFilterProxyModel
HistoryCompletionModel::HistoryCompletionModel(QObject *parent)
: QSortFilterProxyModel(parent)
, m_searchMatcher(QString(), Qt::CaseInsensitive, QRegExp::FixedString)
, m_wordMatcher(QString(), Qt::CaseInsensitive)
, m_isValid(false)
{
setDynamicSortFilter(true);
}
示例13: QSortFilterProxyModel
streamDirectoryProxyModel::streamDirectoryProxyModel(streamDirectoryModel *parent)
: QSortFilterProxyModel(parent)
{
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortRole(Qt::UserRole);
QSortFilterProxyModel::setSourceModel(parent);
}
示例14: QSortFilterProxyModel
JobHolderRepresentation::JobHolderRepresentation (QObject *parent)
: QSortFilterProxyModel (parent)
{
setDynamicSortFilter (true);
XmlSettingsManager::Instance ()->RegisterObject ("ShowInDashboard",
this,
"invalidate");
}
示例15: QSortFilterProxyModel
SourcesProxyModel::SourcesProxyModel( SourcesModel* model, QObject* parent )
: QSortFilterProxyModel( parent )
, m_model( model )
, m_filtered( false )
{
setDynamicSortFilter( true );
setSourceModel( model );
}