Formatting
This commit is contained in:
@@ -39,7 +39,7 @@ AlbumCoverExporter::AlbumCoverExporter(QObject *parent)
|
||||
thread_pool_->setMaxThreadCount(kMaxConcurrentRequests);
|
||||
}
|
||||
|
||||
void AlbumCoverExporter::SetDialogResult(const AlbumCoverExport::DialogResult& dialog_result) {
|
||||
void AlbumCoverExporter::SetDialogResult(const AlbumCoverExport::DialogResult &dialog_result) {
|
||||
dialog_result_ = dialog_result;
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
|
||||
QMap<int, CoverProvider*> pending_requests_;
|
||||
QMap<QNetworkReply*, CoverProviderSearchResult> pending_image_loads_;
|
||||
NetworkTimeouts* image_load_timeout_;
|
||||
NetworkTimeouts *image_load_timeout_;
|
||||
|
||||
// QMap is sorted by key (score).
|
||||
struct CandidateImage {
|
||||
|
||||
@@ -32,7 +32,7 @@ struct CoverSearchStatistics {
|
||||
|
||||
explicit CoverSearchStatistics();
|
||||
|
||||
CoverSearchStatistics& operator +=(const CoverSearchStatistics &other);
|
||||
CoverSearchStatistics &operator +=(const CoverSearchStatistics &other);
|
||||
|
||||
quint64 network_requests_made_;
|
||||
quint64 bytes_transferred_;
|
||||
|
||||
@@ -71,7 +71,7 @@ void CoverSearchStatisticsDialog::Show(const CoverSearchStatistics &statistics)
|
||||
.arg(statistics.chosen_images_ + statistics.missing_images_)
|
||||
.arg(statistics.missing_images_));
|
||||
|
||||
for (const QString& provider : providers) {
|
||||
for (const QString &provider : providers) {
|
||||
AddLine(tr("Covers from %1").arg(provider), QString::number(statistics.chosen_images_by_provider_[provider]));
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ void CoverSearchStatisticsDialog::AddLine(const QString &label, const QString &v
|
||||
label1->setProperty("type", "label");
|
||||
label2->setProperty("type", "value");
|
||||
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
QHBoxLayout *layout = new QHBoxLayout;
|
||||
layout->addWidget(label1);
|
||||
layout->addWidget(label2);
|
||||
details_layout_->addLayout(layout);
|
||||
|
||||
@@ -40,7 +40,7 @@ class CoverSearchStatisticsDialog : public QDialog {
|
||||
explicit CoverSearchStatisticsDialog(QWidget *parent = nullptr);
|
||||
~CoverSearchStatisticsDialog() override;
|
||||
|
||||
void Show(const CoverSearchStatistics& statistics);
|
||||
void Show(const CoverSearchStatistics &statistics);
|
||||
|
||||
private:
|
||||
void AddLine(const QString &label, const QString &value);
|
||||
|
||||
Reference in New Issue
Block a user