making songModel a pointer
This commit is contained in:
parent
13c8704bdc
commit
45fbbde792
1 changed files with 1 additions and 1 deletions
|
@ -714,7 +714,7 @@ void SongSqlModel::updateFontSize(const int &row, const int &fontSize) {
|
||||||
SongProxyModel::SongProxyModel(QObject *parent)
|
SongProxyModel::SongProxyModel(QObject *parent)
|
||||||
:QSortFilterProxyModel(parent)
|
:QSortFilterProxyModel(parent)
|
||||||
{
|
{
|
||||||
SongSqlModel songModel = new SongSqlModel;
|
SongSqlModel *songModel = new SongSqlModel;
|
||||||
setSourceModel(songModel);
|
setSourceModel(songModel);
|
||||||
setDynamicSortFilter(true);
|
setDynamicSortFilter(true);
|
||||||
setFilterRole(Qt::UserRole + 1);
|
setFilterRole(Qt::UserRole + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue