Fix typos and spelling
This commit is contained in:
@@ -158,7 +158,7 @@ void AnalyzerContainer::ChangeAnalyzer(int id) {
|
||||
QObject *instance = analyzer_types_[id]->newInstance(Q_ARG(QWidget*, this));
|
||||
|
||||
if (!instance) {
|
||||
qLog(Warning) << "Couldn't intialise a new" << analyzer_types_[id]->className();
|
||||
qLog(Warning) << "Couldn't initialise a new" << analyzer_types_[id]->className();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ QColor ensureContrast(const QColor &bg, const QColor &fg, uint amount = 150) {
|
||||
int dh = abs(bh - fh);
|
||||
|
||||
if (dh > 120) {
|
||||
// a third of the colour wheel automatically guarentees contrast
|
||||
// a third of the colour wheel automatically guarantees contrast
|
||||
// but only if the values are high enough and saturations significant enough
|
||||
// to allow the colours to be visible and not be shades of grey or black
|
||||
|
||||
|
||||
@@ -167,8 +167,8 @@ bool CommandlineOptions::Parse() {
|
||||
.arg(tr("Skip backwards in playlist"),
|
||||
tr("Skip forwards in playlist"),
|
||||
tr("Set the volume to <value> percent"),
|
||||
tr("Increase the volume by 4 precent"),
|
||||
tr("Decrease the volume by 4 precent"),
|
||||
tr("Increase the volume by 4 percent"),
|
||||
tr("Decrease the volume by 4 percent"),
|
||||
tr("Increase the volume by <value> percent"),
|
||||
tr("Decrease the volume by <value> percent"))
|
||||
.arg(tr("Seek the currently playing track to an absolute position"),
|
||||
|
||||
@@ -741,7 +741,7 @@ MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSD *osd, co
|
||||
|
||||
// Load theme
|
||||
// This is tricky: we need to save the default/system palette now,
|
||||
// before loading user preferred theme (which will overide it), to be able to restore it later
|
||||
// before loading user preferred theme (which will override it), to be able to restore it later
|
||||
const_cast<QPalette&>(Appearance::kDefaultPalette) = QApplication::palette();
|
||||
app_->appearance()->LoadUserTheme();
|
||||
StyleSheetLoader *css_loader = new StyleSheetLoader(this);
|
||||
|
||||
@@ -46,7 +46,7 @@ class SystemTrayIcon : public QObject {
|
||||
|
||||
// Called by the OSD
|
||||
virtual void ShowPopup(const QString &summary, const QString &message, int timeout) {}
|
||||
// If this get's invoked with image_path equal to nullptr, the tooltip should still be shown - just without the cover art.
|
||||
// If this gets invoked with image_path equal to nullptr, the tooltip should still be shown - just without the cover art.
|
||||
virtual void SetNowPlaying(const Song &song, const QUrl &cover_url) {}
|
||||
virtual void ClearNowPlaying() {}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ AlbumCoverFetcherSearch::AlbumCoverFetcherSearch(
|
||||
network_(network),
|
||||
cancel_requested_(false) {
|
||||
|
||||
// We will terminate the search after kSearchTimeoutMs miliseconds if we are not able to find all of the results before that point in time
|
||||
// We will terminate the search after kSearchTimeoutMs milliseconds if we are not able to find all of the results before that point in time
|
||||
QTimer::singleShot(kSearchTimeoutMs, this, SLOT(TerminateSearch()));
|
||||
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@ QByteArray GstEngine::FixupUrl(const QUrl &url) {
|
||||
}
|
||||
else {
|
||||
// Currently, Gstreamer can't handle input CD devices inside cdda URL.
|
||||
// So we handle them ourselve: we extract the track number and re-create an URL with only cdda:// + the track number (which can be handled by Gstreamer).
|
||||
// So we handle them ourselves: we extract the track number and re-create an URL with only cdda:// + the track number (which can be handled by Gstreamer).
|
||||
// We keep the device in mind, and we will set it later using SourceSetupCallback
|
||||
QStringList path = url.path().split('/');
|
||||
str = QString("cdda://%1").arg(path.takeLast());
|
||||
|
||||
@@ -888,7 +888,7 @@ void GstEnginePipeline::SourceSetupCallback(GstPlayBin *bin, GParamSpec *pspec,
|
||||
}
|
||||
|
||||
if (g_object_class_find_property(G_OBJECT_GET_CLASS(element), "device") && !instance->source_device().isEmpty()) {
|
||||
// Gstreamer is not able to handle device in URL (refering to Gstreamer documentation, this might be added in the future).
|
||||
// Gstreamer is not able to handle device in URL (referring to Gstreamer documentation, this might be added in the future).
|
||||
// Despite that, for now we include device inside URL: we decompose it during Init and set device here, when this callback is called.
|
||||
g_object_set(element, "device", instance->source_device().toLocal8Bit().constData(), nullptr);
|
||||
}
|
||||
|
||||
@@ -189,7 +189,6 @@ class MusicBrainzClient : public QObject {
|
||||
ResultList results_;
|
||||
};
|
||||
|
||||
QNetworkReply *CreateRequest(const QString &ressource, const ParamList ¶ms_provided);
|
||||
QByteArray GetReplyData(QNetworkReply *reply, QString &error);
|
||||
static bool MediumHasDiscid(const QString& discid, QXmlStreamReader* reader);
|
||||
static ResultList ParseMedium(QXmlStreamReader* reader);
|
||||
|
||||
@@ -316,7 +316,7 @@ void OrganiseDialog::UpdatePreviews() {
|
||||
|
||||
const bool format_valid = !has_local_destination || format_.IsValid();
|
||||
|
||||
// Are we gonna enable the ok button?
|
||||
// Are we going to enable the ok button?
|
||||
bool ok = format_valid && !songs_.isEmpty();
|
||||
if (capacity != 0 && total_size_ > free) ok = false;
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ void PlaylistManager::SetActiveToCurrent() {
|
||||
|
||||
// Check if we need to update the active playlist.
|
||||
// By calling SetActiveToCurrent, the playlist manager emits the signal "ActiveChanged".
|
||||
// This signal causes the network remote module to send all playlists to the clients, even no change happend.
|
||||
// This signal causes the network remote module to send all playlists to the clients, even if no change happen.
|
||||
if (current_id() != active_id()) {
|
||||
SetActivePlaylist(current_id());
|
||||
}
|
||||
|
||||
@@ -658,7 +658,7 @@ void ScrobblingAPI20::ScrobbleRequestFinished(QNetworkReply *reply, QList<quint6
|
||||
}
|
||||
|
||||
if (!json_obj_artist.contains("#text") || !json_obj_album.contains("#text") || !json_obj_song.contains("#text")) {
|
||||
// Just ignore this, as Last.fm seem to return 1 ignored scrobble for a blank song for each requst (no idea why).
|
||||
// Just ignore this, as Last.fm seem to return 1 ignored scrobble for a blank song for each request (no idea why).
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user