Fix spelling and typos

This commit is contained in:
Jonas Kvinge
2021-07-02 18:45:53 +02:00
parent 57312e29e2
commit cd82b0a669
16 changed files with 36 additions and 36 deletions

View File

@@ -37,8 +37,8 @@
const int BlockAnalyzer::kHeight = 2;
const int BlockAnalyzer::kWidth = 4;
const int BlockAnalyzer::kMinRows = 3; // arbituary
const int BlockAnalyzer::kMinColumns = 32; // arbituary
const int BlockAnalyzer::kMinRows = 3; // arbitrary
const int BlockAnalyzer::kMinColumns = 32; // arbitrary
const int BlockAnalyzer::kMaxColumns = 256; // must be 2**n
const int BlockAnalyzer::kFadeSize = 90;

View File

@@ -217,7 +217,7 @@ void AlbumCoverFetcherSearch::ProviderSearchResults(CoverProvider *provider, con
results_copy[i].score_match -= 0.5;
}
// Set the initial image quality score besed on the size returned by the API, this is recalculated when the image is received.
// Set the initial image quality score based on the size returned by the API, this is recalculated when the image is received.
results_copy[i].score_quality += ScoreImage(results_copy[i].image_size);
}

View File

@@ -107,7 +107,7 @@ class Udisks2Lister : public DeviceLister {
quint64 capacity;
QString dbus_drive_path;
// Paritition
// Partition
QString label;
QString uuid;
quint64 free_space;

View File

@@ -65,7 +65,7 @@ SnapDialog::SnapDialog(QWidget *parent) : QDialog(parent), ui_(new Ui_SnapDialog
text += QString("</p>");
text += QString("<p>");
text += tr("Copy your strawberry.conf and strawberry.db from your ~/snap directory to avoid losing configration before you uninstall the snap:");
text += tr("Copy your strawberry.conf and strawberry.db from your ~/snap directory to avoid losing configuration before you uninstall the snap:");
text += QString("<br />");
text += QString("cp ~/snap/strawberry/current/.config/strawberry/strawberry.conf ~/.config/strawberry/strawberry.conf<br />");
text += QString("cp ~/snap/strawberry/current/.local/share/strawberry/strawberry/strawberry.db ~/.local/share/strawberry/strawberry/strawberry.db<br />");

View File

@@ -1236,7 +1236,7 @@ void GstEnginePipeline::FaderTimelineFinished() {
fader_.reset();
// Wait a little while longer before emitting the finished signal (and probably distroying the pipeline) to account for delays in the audio server/driver.
// Wait a little while longer before emitting the finished signal (and probably destroying the pipeline) to account for delays in the audio server/driver.
if (use_fudge_timer_) {
fader_fudge_timer_.start(kFaderFudgeMsec, this);
}

View File

@@ -50,7 +50,7 @@ class ParserBase : public QObject {
virtual bool TryMagic(const QByteArray &data) const = 0;
// Loads all songs from playlist found at path 'playlist_path' in directory 'dir'.
// The 'device' argument is an opened and ready to read from represantation of this playlist.
// The 'device' argument is an opened and ready to read from representation of this playlist.
// This method might not return all of the songs found in the playlist.
// Any playlist parser may decide to leave out some entries if it finds them incomplete or invalid.
// This means that the final resulting SongList should be considered valid (at least from the parser's point of view).

View File

@@ -304,7 +304,7 @@ void LastFMImport::GetRecentTracksRequestFinished(QNetworkReply *reply, const in
}
if (!json_obj["recenttracks"].isObject()) {
Error("Failed to pase JSON: recenttracks is not an object!", json_obj);
Error("Failed to parse JSON: recenttracks is not an object!", json_obj);
return;
}
json_obj = json_obj["recenttracks"].toObject();
@@ -320,27 +320,27 @@ void LastFMImport::GetRecentTracksRequestFinished(QNetworkReply *reply, const in
}
if (!json_obj["@attr"].isObject()) {
Error("Failed to pase JSON: @attr is not an object.", json_obj);
Error("Failed to parse JSON: @attr is not an object.", json_obj);
return;
}
if (!json_obj["track"].isArray()) {
Error("Failed to pase JSON: track is not an object.", json_obj);
Error("Failed to parse JSON: track is not an object.", json_obj);
return;
}
QJsonObject obj_attr = json_obj["@attr"].toObject();
if (!obj_attr.contains("page")) {
Error("Failed to pase JSON: attr object is missing page.", json_obj);
Error("Failed to parse JSON: attr object is missing page.", json_obj);
return;
}
if (!obj_attr.contains("totalPages")) {
Error("Failed to pase JSON: attr object is missing totalPages.", json_obj);
Error("Failed to parse JSON: attr object is missing totalPages.", json_obj);
return;
}
if (!obj_attr.contains("total")) {
Error("Failed to pase JSON: attr object is missing total.", json_obj);
Error("Failed to parse JSON: attr object is missing total.", json_obj);
return;
}
@@ -467,7 +467,7 @@ void LastFMImport::GetTopTracksRequestFinished(QNetworkReply *reply, const int p
}
if (!json_obj["toptracks"].isObject()) {
Error("Failed to pase JSON: toptracks is not an object!", json_obj);
Error("Failed to parse JSON: toptracks is not an object!", json_obj);
return;
}
json_obj = json_obj["toptracks"].toObject();
@@ -483,27 +483,27 @@ void LastFMImport::GetTopTracksRequestFinished(QNetworkReply *reply, const int p
}
if (!json_obj["@attr"].isObject()) {
Error("Failed to pase JSON: @attr is not an object.", json_obj);
Error("Failed to parse JSON: @attr is not an object.", json_obj);
return;
}
if (!json_obj["track"].isArray()) {
Error("Failed to pase JSON: track is not an object.", json_obj);
Error("Failed to parse JSON: track is not an object.", json_obj);
return;
}
QJsonObject obj_attr = json_obj["@attr"].toObject();
if (!obj_attr.contains("page")) {
Error("Failed to pase JSON: attr object is missing page.", json_obj);
Error("Failed to parse JSON: attr object is missing page.", json_obj);
return;
}
if (!obj_attr.contains("totalPages")) {
Error("Failed to pase JSON: attr object is missing page.", json_obj);
Error("Failed to parse JSON: attr object is missing page.", json_obj);
return;
}
if (!obj_attr.contains("total")) {
Error("Failed to pase JSON: attr object is missing total.", json_obj);
Error("Failed to parse JSON: attr object is missing total.", json_obj);
return;
}

View File

@@ -31,7 +31,7 @@
#include "transcoderoptionsopus.h"
#include "ui_transcoderoptionsopus.h"
// TODO: Add more options than only bitrate as soon as gst doesn't crash anymore while using the cbr parmameter (like cbr=false)
// TODO: Add more options than only bitrate as soon as gst doesn't crash anymore while using the cbr parameter (like cbr=false)
const char *TranscoderOptionsOpus::kSettingsGroup = "Transcoder/opusenc";