本文整理汇总了C++中setDynamicSortFilter函数的典型用法代码示例。如果您正苦于以下问题:C++ setDynamicSortFilter函数的具体用法?C++ setDynamicSortFilter怎么用?C++ setDynamicSortFilter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setDynamicSortFilter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QSortFilterProxyModel
ChatMessageSortFilterProxyModel::ChatMessageSortFilterProxyModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
setSortLocaleAware(true);
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
}
开发者ID:hawkchch,项目名称:BubbleChat,代码行数:7,代码来源:chatmessagemodel.cpp
示例2: QSortFilterProxyModel
QFEvaluationRawDataModelProxy::QFEvaluationRawDataModelProxy(QObject *parent):
QSortFilterProxyModel(parent)
{
setDynamicSortFilter(true);
eval=NULL;
editor=NULL;
};
开发者ID:jkriege2,项目名称:QuickFit3,代码行数:7,代码来源:qfevaluationpropertyeditor.cpp
示例3: QSortFilterProxyModel
IRC_USE_NAMESPACE
BufferFilterModel::BufferFilterModel(MessageStorage* storage) :
QSortFilterProxyModel(storage), m_status(0), m_storage(storage)
{
setDynamicSortFilter(true);
}
开发者ID:Herrie82,项目名称:communi-luneos,代码行数:7,代码来源:bufferfiltermodel.cpp
示例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();
}
}
开发者ID:KDE,项目名称:plasma-desktop,代码行数:16,代码来源:foldermodel.cpp
示例5: ProxyModel
PlaylistsProxyModel::PlaylistsProxyModel(QObject *parent)
: ProxyModel(parent)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortLocaleAware(true);
}
开发者ID:padertux,项目名称:cantata,代码行数:8,代码来源:playlistsproxymodel.cpp
示例6: QSortFilterProxyModel
QgsBrowserProxyModel::QgsBrowserProxyModel( QObject *parent )
: QSortFilterProxyModel( parent )
{
setDynamicSortFilter( true );
setSortRole( QgsBrowserModel::SortRole );
setSortCaseSensitivity( Qt::CaseInsensitive );
sort( 0 );
}
开发者ID:alexbruy,项目名称:QGIS,代码行数:8,代码来源:qgsbrowserproxymodel.cpp
示例7: QSortFilterProxyModel
HistoryFilterModel::HistoryFilterModel(QObject * parent)
: QSortFilterProxyModel(parent)
{
setSourceModel(HistoryManager::historyManager());
setDynamicSortFilter(true);
setFilterKeyColumn(-1);
}
开发者ID:tasosbull,项目名称:yewtic,代码行数:8,代码来源:historyfiltermodel.cpp
示例8: QSortFilterProxyModel
QgsLocatorProxyModel::QgsLocatorProxyModel( QObject *parent )
: QSortFilterProxyModel( parent )
{
setDynamicSortFilter( true );
setSortLocaleAware( true );
setFilterCaseSensitivity( Qt::CaseInsensitive );
sort( 0 );
}
开发者ID:exlimit,项目名称:QGIS,代码行数:8,代码来源:qgslocatorwidget.cpp
示例9: AddressBookSortFilterProxyModel
AddressBookSortFilterProxyModel(const QString& type, QObject* parent)
: QSortFilterProxyModel(parent)
, m_type(type)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
}
开发者ID:CryptoRekt,项目名称:VERGE,代码行数:8,代码来源:addressbookpage.cpp
示例10: setDynamicSortFilter
void ContactsModelProxy::setSourceModel(QAbstractItemModel *sourceModel)
{
SourceContactModel = dynamic_cast<AbstractContactsModel *>(sourceModel);
QSortFilterProxyModel::setSourceModel(sourceModel);
setDynamicSortFilter(true);
sort(0);
}
开发者ID:ziemniak,项目名称:kadu,代码行数:8,代码来源:contacts-model-proxy.cpp
示例11: ProxyModel
PodcastService::Proxy::Proxy(QObject *parent)
: ProxyModel(parent)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortLocaleAware(true);
}
开发者ID:glensc,项目名称:cantata,代码行数:8,代码来源:podcastservice.cpp
示例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);
}
开发者ID:GyuyoungKim,项目名称:arora,代码行数:8,代码来源:historycompleter.cpp
示例13: QSortFilterProxyModel
streamDirectoryProxyModel::streamDirectoryProxyModel(streamDirectoryModel *parent)
: QSortFilterProxyModel(parent)
{
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortRole(Qt::UserRole);
QSortFilterProxyModel::setSourceModel(parent);
}
开发者ID:Iownnoname,项目名称:qt,代码行数:8,代码来源:streamdirectoryproxymodel.cpp
示例14: QSortFilterProxyModel
JobHolderRepresentation::JobHolderRepresentation (QObject *parent)
: QSortFilterProxyModel (parent)
{
setDynamicSortFilter (true);
XmlSettingsManager::Instance ()->RegisterObject ("ShowInDashboard",
this,
"invalidate");
}
开发者ID:AlexWMF,项目名称:leechcraft,代码行数:8,代码来源:jobholderrepresentation.cpp
示例15: QSortFilterProxyModel
SourcesProxyModel::SourcesProxyModel( SourcesModel* model, QObject* parent )
: QSortFilterProxyModel( parent )
, m_model( model )
, m_filtered( false )
{
setDynamicSortFilter( true );
setSourceModel( model );
}
开发者ID:LittleForker,项目名称:tomahawk,代码行数:9,代码来源:sourcesproxymodel.cpp
示例16: QSortFilterProxyModel
SortFilterProxyModel::SortFilterProxyModel (QObject *parent)
: QSortFilterProxyModel (parent)
, ShowOffline_ (true)
, MUCMode_ (false)
, MUCEntry_ (0)
{
setDynamicSortFilter (true);
setFilterCaseSensitivity (Qt::CaseInsensitive);
}
开发者ID:nobodyzzz,项目名称:leechcraft,代码行数:9,代码来源:sortfilterproxymodel.cpp
示例17: QSortFilterProxyModel
SortFilterModel::SortFilterModel(QObject *parent)
: QSortFilterProxyModel(parent),
m_maximumCount(0),
m_hide(false)
{
connect(this, SIGNAL(sourceModelChanged()), SIGNAL(modelChanged()));
connect(this, SIGNAL(sortRoleChanged()), SLOT(manualSort()));
setDynamicSortFilter(false);
}
开发者ID:qt-labs,项目名称:talk-schedule,代码行数:9,代码来源:sortfiltermodel.cpp
示例18: ProxyModel
MusicLibraryProxyModel::MusicLibraryProxyModel(QObject *parent)
: ProxyModel(parent)
, filter(0)
{
setDynamicSortFilter(true);
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortLocaleAware(true);
}
开发者ID:polpo,项目名称:cantata-mac,代码行数:9,代码来源:musiclibraryproxymodel.cpp
示例19: QSortFilterProxyModel
/******************************************************************************************
* NickViewFilter
******************************************************************************************/
NickViewFilter::NickViewFilter(const BufferId &bufferId, NetworkModel *parent)
: QSortFilterProxyModel(parent),
_bufferId(bufferId)
{
setSourceModel(parent);
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSortRole(TreeModel::SortRole);
}
开发者ID:AGBrown,项目名称:quassel-ABContrib,代码行数:12,代码来源:nickviewfilter.cpp
示例20: QSortFilterProxyModel
BufferViewOverlayFilter::BufferViewOverlayFilter(QAbstractItemModel *model, BufferViewOverlay *overlay)
: QSortFilterProxyModel(model),
_overlay(0)
{
setOverlay(overlay);
setSourceModel(model);
setDynamicSortFilter(true);
}
开发者ID:sandsmark,项目名称:quassel-proxy,代码行数:9,代码来源:bufferviewoverlayfilter.cpp
注:本文中的setDynamicSortFilter函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论