summaryrefslogtreecommitdiffstats
path: root/src/library/browse
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/browse')
-rw-r--r--src/library/browse/browsefeature.cpp6
-rw-r--r--src/library/browse/browsefeature.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/library/browse/browsefeature.cpp b/src/library/browse/browsefeature.cpp
index 4d0c1a42c0..92422b4f73 100644
--- a/src/library/browse/browsefeature.cpp
+++ b/src/library/browse/browsefeature.cpp
@@ -23,7 +23,7 @@
const QString kQuickLinksSeparator = "-+-";
BrowseFeature::BrowseFeature(QObject* parent,
- ConfigObject<ConfigValue>* pConfig,
+ UserSettingsPointer pConfig,
TrackCollection* pTrackCollection,
RecordingManager* pRecordingManager)
: LibraryFeature(parent),
@@ -79,7 +79,7 @@ BrowseFeature::BrowseFeature(QObject* parent,
// QDir::drives(). See Qt's QDir code, especially qdir.cpp
QString display_path = drive.filePath();
if (display_path.endsWith("/")) {
- display_path.chop(1);
+ display_path.chop(1);
}
TreeItem* driveLetter = new TreeItem(
display_path, // Displays C:
@@ -324,7 +324,7 @@ void BrowseFeature::onLazyChildExpandation(const QModelIndex& index) {
// shorten the delay
QString display_path = drive.filePath();
if (display_path.endsWith("/")) {
- display_path.chop(1);
+ display_path.chop(1);
}
TreeItem* driveLetter = new TreeItem(
display_path, // Displays C:
diff --git a/src/library/browse/browsefeature.h b/src/library/browse/browsefeature.h
index 027f42b9df..a38c5b6723 100644
--- a/src/library/browse/browsefeature.h
+++ b/src/library/browse/browsefeature.h
@@ -13,7 +13,7 @@
#include <QPoint>
#include <QString>
-#include "configobject.h"
+#include "preferences/usersettings.h"
#include "library/browse/browsetablemodel.h"
#include "library/browse/foldertreemodel.h"
#include "library/libraryfeature.h"
@@ -28,7 +28,7 @@ class BrowseFeature : public LibraryFeature {
Q_OBJECT
public:
BrowseFeature(QObject* parent,
- ConfigObject<ConfigValue>* pConfig,
+ UserSettingsPointer pConfig,
TrackCollection* pTrackCollection,
RecordingManager* pRec);
virtual ~BrowseFeature();
@@ -64,7 +64,7 @@ class BrowseFeature : public LibraryFeature {
void saveQuickLinks();
void loadQuickLinks();
- ConfigObject<ConfigValue>* m_pConfig;
+ UserSettingsPointer m_pConfig;
BrowseTableModel m_browseModel;
ProxyTrackModel m_proxyModel;
TrackCollection* m_pTrackCollection;