当前位置: 首页>>代码示例>>C++>>正文


C++ setDynamicSortFilter函数代码示例

本文整理汇总了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);
}
开发者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


注:本文中的setDynamicSortFilter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。