mysortfilterproxymodel.h
来自「Qt4源代码,详细介绍了Qt4编程中的范例」· C头文件 代码 · 共 35 行
H
35 行
#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 + =
减小字号Ctrl + -
显示快捷键?