Use Qt::Literals::StringLiterals
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
#include "coverfromurldialog.h"
|
||||
#include "currentalbumcoverloader.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
const char *AlbumCoverChoiceController::kLoadImageFileFilter = QT_TR_NOOP("Images (*.png *.jpg *.jpeg *.bmp *.gif *.xpm *.pbm *.pgm *.ppm *.xbm)");
|
||||
const char *AlbumCoverChoiceController::kSaveImageFileFilter = QT_TR_NOOP("Images (*.png *.jpg *.jpeg *.bmp *.xpm *.pbm *.ppm *.xbm)");
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "core/settings.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
const char *AlbumCoverExport::kSettingsGroup = "AlbumCoverExport";
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "coverproviders.h"
|
||||
#include "albumcoverimageresult.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr int kSearchTimeoutMs = 20000;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "core/settings.h"
|
||||
#include "settings/coverssettingspage.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
AlbumCoverLoaderOptions::AlbumCoverLoaderOptions(const Options _options, const QSize _desired_scaled_size, const qreal _device_pixel_ratio, const Types &_types)
|
||||
: options(_options),
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#include "ui_albumcovermanager.h"
|
||||
|
||||
using namespace std::literals::chrono_literals;
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kSettingsGroup[] = "CoverManager";
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "albumcoverexport.h"
|
||||
#include "coverexportrunnable.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
CoverExportRunnable::CoverExportRunnable(const AlbumCoverExport::DialogResult &dialog_result, const AlbumCoverLoaderOptions::Types &cover_types, const Song &song, QObject *parent)
|
||||
: QObject(parent),
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "coverfromurldialog.h"
|
||||
#include "ui_coverfromurldialog.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
CoverFromURLDialog::CoverFromURLDialog(SharedPtr<NetworkAccessManager> network, QWidget *parent)
|
||||
: QDialog(parent),
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "deezercoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kApiUrl[] = "https://api.deezer.com";
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "discogscoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
using std::make_shared;
|
||||
|
||||
const char *DiscogsCoverProvider::kUrlSearch = "https://api.discogs.com/database/search";
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "albumcoverfetcher.h"
|
||||
#include "lastfmcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kUrl[] = "https://ws.audioscrobbler.com/2.0/";
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "musicbrainzcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kReleaseSearchUrl[] = "https://musicbrainz.org/ws/2/release/";
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "musixmatchcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
MusixmatchCoverProvider::MusixmatchCoverProvider(Application *app, SharedPtr<NetworkAccessManager> network, QObject *parent)
|
||||
: JsonCoverProvider(QStringLiteral("Musixmatch"), true, false, 1.0, true, false, app, network, parent) {}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "opentidalcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kSettingsGroup[] = "OpenTidal";
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "qobuzcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr int kLimit = 10;
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "spotifycoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr char kApiUrl[] = "https://api.spotify.com/v1";
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "jsoncoverprovider.h"
|
||||
#include "tidalcoverprovider.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
namespace {
|
||||
constexpr int kLimit = 10;
|
||||
|
||||
Reference in New Issue
Block a user