Skip to content

Commit

Permalink
QML: Don't use parented_ptr for model in QmlLibraryProxy
Browse files Browse the repository at this point in the history
The type needs to match the Q_PROPERTY declaration.
  • Loading branch information
Holzhaus committed Dec 30, 2021
1 parent ab55358 commit 23d0e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qml/qmllibraryproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace qml {
QmlLibraryProxy::QmlLibraryProxy(std::shared_ptr<Library> pLibrary, QObject* parent)
: QObject(parent),
m_pLibrary(pLibrary),
m_pModel(make_parented<QmlLibraryTrackListModel>(m_pLibrary->trackTableModel(), this)) {
m_pModel(new QmlLibraryTrackListModel(m_pLibrary->trackTableModel(), this)) {
}

} // namespace qml
Expand Down
2 changes: 1 addition & 1 deletion src/qml/qmllibraryproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class QmlLibraryProxy : public QObject {

private:
std::shared_ptr<Library> m_pLibrary;
parented_ptr<QmlLibraryTrackListModel> m_pModel;
QmlLibraryTrackListModel* m_pModel;
};

} // namespace qml
Expand Down

0 comments on commit 23d0e5f

Please sign in to comment.