⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysortfilterproxymodel.h

📁 本文件是<精通QT4编程>的配套源代码
💻 H
字号:
#ifndef MYSORTFILTERPROXYMODEL_H
#define MYSORTFILTERPROXYMODEL_H

#include <QSortFilterProxyModel>

class MySortFilterProxyModel : public QSortFilterProxyModel
{
    Q_OBJECT

public:
    MySortFilterProxyModel(QObject *parent = 0);

    void setMinChinese(const int chinese);
    void setMaxChinese(const int chinese);

    void setMinMath(const int math);
    void setMaxMath(const int math);

    void setMinEnglish(const int english);
    void setMaxEnglish(const int english);

protected:
    bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;

private:
    int minChinese;
    int maxChinese;
    int minMath;
    int maxMath;
    int minEnglish;
    int maxEnglish;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -