summaryrefslogtreecommitdiffstats
path: root/src/qml/qmllibraryproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qmllibraryproxy.cpp')
-rw-r--r--src/qml/qmllibraryproxy.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/qml/qmllibraryproxy.cpp b/src/qml/qmllibraryproxy.cpp
new file mode 100644
index 0000000000..4583c1e34d
--- /dev/null
+++ b/src/qml/qmllibraryproxy.cpp
@@ -0,0 +1,24 @@
+#include "qml/qmllibraryproxy.h"
+
+#include <QAbstractItemModel>
+
+#include "library/library.h"
+#include "library/sidebarmodel.h"
+
+namespace mixxx {
+namespace skin {
+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)) {
+}
+
+QAbstractItemModel* QmlLibraryProxy::getSidebarModel() {
+ return m_pLibrary->sidebarModel();
+}
+
+} // namespace qml
+} // namespace skin
+} // namespace mixxx