adding a proxyModel
This commit is contained in:
parent
1c1140915e
commit
13c8704bdc
4 changed files with 25 additions and 2 deletions
|
@ -709,3 +709,14 @@ void SongSqlModel::updateFontSize(const int &row, const int &fontSize) {
|
|||
submitAll();
|
||||
emit fontSizeChanged();
|
||||
}
|
||||
// SongProxyModel
|
||||
|
||||
SongProxyModel::SongProxyModel(QObject *parent)
|
||||
:QSortFilterProxyModel(parent)
|
||||
{
|
||||
SongSqlModel songModel = new SongSqlModel;
|
||||
setSourceModel(songModel);
|
||||
setDynamicSortFilter(true);
|
||||
setFilterRole(Qt::UserRole + 1);
|
||||
setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue