📄 mysortfilterproxymodel.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 + -