summaryrefslogtreecommitdiffstats
path: root/src/library/browse/browsefeature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/browse/browsefeature.cpp')
-rw-r--r--src/library/browse/browsefeature.cpp52
1 files changed, 31 insertions, 21 deletions
diff --git a/src/library/browse/browsefeature.cpp b/src/library/browse/browsefeature.cpp
index b5757e226b..b5c20f836d 100644
--- a/src/library/browse/browsefeature.cpp
+++ b/src/library/browse/browsefeature.cpp
@@ -1,32 +1,32 @@
// browsefeature.cpp
// Created 9/8/2009 by RJ Ryan (rryan@mit.edu)
-#include <QStringList>
-#include <QTreeView>
+#include <QAction>
#include <QDirModel>
-#include <QStringList>
#include <QFileInfo>
-#include <QStandardPaths>
-#include <QAction>
#include <QMenu>
#include <QPushButton>
+#include <QStandardPaths>
+#include <QStringList>
+#include <QTreeView>
-#include "track/track.h"
-#include "library/treeitem.h"
+#include "controllers/keyboard/keyboardeventfilter.h"
#include "library/browse/browsefeature.h"
+#include "library/library.h"
#include "library/trackcollection.h"
-#include "widget/wlibrarytextbrowser.h"
-#include "widget/wlibrary.h"
-#include "controllers/keyboard/keyboardeventfilter.h"
-#include "util/sandbox.h"
+#include "library/treeitem.h"
+#include "track/track.h"
#include "util/memory.h"
+#include "util/sandbox.h"
+#include "widget/wlibrary.h"
+#include "widget/wlibrarytextbrowser.h"
const QString kQuickLinksSeparator = "-+-";
-BrowseFeature::BrowseFeature(QObject* parent,
- UserSettingsPointer pConfig,
- TrackCollection* pTrackCollection,
- RecordingManager* pRecordingManager)
+BrowseFeature::BrowseFeature(Library* parent,
+ UserSettingsPointer pConfig,
+ TrackCollection* pTrackCollection,
+ RecordingManager* pRecordingManager)
: LibraryFeature(parent),
m_pConfig(pConfig),
m_browseModel(this, pTrackCollection, pRecordingManager),
@@ -34,18 +34,28 @@ BrowseFeature::BrowseFeature(QObject* parent,
m_pTrackCollection(pTrackCollection),
m_pLastRightClickedItem(NULL),
m_icon(":/images/library/ic_library_computer.svg") {
- connect(this, SIGNAL(requestAddDir(QString)),
- parent, SLOT(slotRequestAddDir(QString)));
+ connect(this,
+ &BrowseFeature::requestAddDir,
+ parent,
+ &Library::slotRequestAddDir);
m_pAddQuickLinkAction = new QAction(tr("Add to Quick Links"),this);
- connect(m_pAddQuickLinkAction, SIGNAL(triggered()), this, SLOT(slotAddQuickLink()));
+ connect(m_pAddQuickLinkAction,
+ &QAction::triggered,
+ this,
+ &BrowseFeature::slotAddQuickLink);
m_pRemoveQuickLinkAction = new QAction(tr("Remove from Quick Links"),this);
- connect(m_pRemoveQuickLinkAction, SIGNAL(triggered()), this, SLOT(slotRemoveQuickLink()));
+ connect(m_pRemoveQuickLinkAction,
+ &QAction::triggered,
+ this,
+ &BrowseFeature::slotRemoveQuickLink);
m_pAddtoLibraryAction = new QAction(tr("Add to Library"),this);
- connect(m_pAddtoLibraryAction, SIGNAL(triggered()),
- this, SLOT(slotAddToLibrary()));
+ connect(m_pAddtoLibraryAction,
+ &QAction::triggered,
+ this,
+ &BrowseFeature::slotAddToLibrary);
m_proxyModel.setFilterCaseSensitivity(Qt::CaseInsensitive);
m_proxyModel.setSortCaseSensitivity(Qt::CaseInsensitive);