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)
|
||||
:QSortFilterProxyModel(parent)
|
||||
{
|
||||
SongSqlModel songModel = new SongSqlModel;
|
||||
SongSqlModel *songModel = new SongSqlModel;
|
||||
setSourceModel(songModel);
|
||||
setDynamicSortFilter(true);
|
||||
setFilterRole(Qt::UserRole + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue