Formatting
This commit is contained in:
@@ -66,8 +66,7 @@ InternetCollectionView::InternetCollectionView(QWidget *parent)
|
||||
add_to_playlist_enqueue_next_(nullptr),
|
||||
open_in_new_playlist_(nullptr),
|
||||
remove_songs_(nullptr),
|
||||
is_in_keyboard_search_(false)
|
||||
{
|
||||
is_in_keyboard_search_(false) {
|
||||
|
||||
setItemDelegate(new CollectionItemDelegate(this));
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#include "internetcollectionviewcontainer.h"
|
||||
#include "ui_internetcollectionviewcontainer.h"
|
||||
|
||||
InternetCollectionViewContainer::InternetCollectionViewContainer(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui_(new Ui_InternetCollectionViewContainer) {
|
||||
InternetCollectionViewContainer::InternetCollectionViewContainer(QWidget *parent)
|
||||
: QWidget(parent),
|
||||
ui_(new Ui_InternetCollectionViewContainer) {
|
||||
|
||||
ui_->setupUi(this);
|
||||
view()->SetFilter(filter_widget());
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
#include "playlist/playlistbackend.h"
|
||||
|
||||
InternetPlaylistItem::InternetPlaylistItem(const Song::Source source)
|
||||
: PlaylistItem(source), source_(source) {}
|
||||
: PlaylistItem(source),
|
||||
source_(source) {}
|
||||
|
||||
InternetPlaylistItem::InternetPlaylistItem(const Song &metadata)
|
||||
: PlaylistItem(metadata.source()),
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
#include "internetsearchview.h"
|
||||
|
||||
InternetSearchItemDelegate::InternetSearchItemDelegate(InternetSearchView *view)
|
||||
: CollectionItemDelegate(view), view_(view) {}
|
||||
: CollectionItemDelegate(view),
|
||||
view_(view) {}
|
||||
|
||||
void InternetSearchItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const {
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
|
||||
class Application;
|
||||
|
||||
InternetService::InternetService(Song::Source source, const QString &name, const QString &url_scheme, const QString &settings_group, SettingsDialog::Page settings_page, Application *app, QObject *parent) :
|
||||
QObject(parent),
|
||||
app_(app),
|
||||
source_(source),
|
||||
name_(name),
|
||||
url_scheme_(url_scheme),
|
||||
settings_group_(settings_group),
|
||||
settings_page_(settings_page) {}
|
||||
InternetService::InternetService(Song::Source source, const QString &name, const QString &url_scheme, const QString &settings_group, SettingsDialog::Page settings_page, Application *app, QObject *parent)
|
||||
: QObject(parent),
|
||||
app_(app),
|
||||
source_(source),
|
||||
name_(name),
|
||||
url_scheme_(url_scheme),
|
||||
settings_group_(settings_group),
|
||||
settings_page_(settings_page) {}
|
||||
|
||||
@@ -46,8 +46,7 @@ InternetSongsView::InternetSongsView(Application *app, InternetService *service,
|
||||
service_(service),
|
||||
settings_group_(settings_group),
|
||||
settings_page_(settings_page),
|
||||
ui_(new Ui_InternetCollectionViewContainer)
|
||||
{
|
||||
ui_(new Ui_InternetCollectionViewContainer) {
|
||||
|
||||
ui_->setupUi(this);
|
||||
|
||||
|
||||
@@ -50,8 +50,7 @@ InternetTabsView::InternetTabsView(Application *app, InternetService *service, c
|
||||
service_(service),
|
||||
settings_group_(settings_group),
|
||||
settings_page_(settings_page),
|
||||
ui_(new Ui_InternetTabsView)
|
||||
{
|
||||
ui_(new Ui_InternetTabsView) {
|
||||
|
||||
ui_->setupUi(this);
|
||||
|
||||
|
||||
@@ -57,8 +57,7 @@ LocalRedirectServer::LocalRedirectServer(QObject *parent)
|
||||
: QTcpServer(parent),
|
||||
https_(false),
|
||||
port_(0),
|
||||
socket_(nullptr)
|
||||
{}
|
||||
socket_(nullptr) {}
|
||||
|
||||
LocalRedirectServer::~LocalRedirectServer() {
|
||||
if (isListening()) close();
|
||||
|
||||
Reference in New Issue
Block a user