Remove whitespaces

This commit is contained in:
Jonas Kvinge
2018-10-02 00:46:54 +02:00
parent db035351be
commit 1fbfabdf66
12 changed files with 19 additions and 19 deletions

View File

@@ -50,7 +50,7 @@ function(optional_component name default description)
set(current_dep_name) set(current_dep_name)
set(missing_deps) set(missing_deps)
foreach(arg ${ARGN}) foreach(arg ${ARGN})
if(${next_arg_is_dep_name}) if(${next_arg_is_dep_name})
set(current_dep_name "${arg}") set(current_dep_name "${arg}")
set(next_arg_is_dep_name FALSE) set(next_arg_is_dep_name FALSE)

View File

@@ -133,7 +133,7 @@ void ContextView::AddActions() {
action_show_output_ = new QAction(tr("Show engine and device"), this); action_show_output_ = new QAction(tr("Show engine and device"), this);
action_show_output_->setCheckable(true); action_show_output_->setCheckable(true);
action_show_output_->setChecked(true); action_show_output_->setChecked(true);
action_show_albums_ = new QAction(tr("Show albums by artist"), this); action_show_albums_ = new QAction(tr("Show albums by artist"), this);
action_show_albums_->setCheckable(true); action_show_albums_->setCheckable(true);
@@ -141,7 +141,7 @@ void ContextView::AddActions() {
action_show_lyrics_ = new QAction(tr("Show song lyrics"), this); action_show_lyrics_ = new QAction(tr("Show song lyrics"), this);
action_show_lyrics_->setCheckable(true); action_show_lyrics_->setCheckable(true);
action_show_lyrics_->setChecked(false); action_show_lyrics_->setChecked(false);
menu_->addAction(action_show_data_); menu_->addAction(action_show_data_);
menu_->addAction(action_show_output_); menu_->addAction(action_show_output_);
@@ -512,13 +512,13 @@ void ContextView::UpdateLyrics(quint64 id, const QString lyrics) {
bool ContextView::eventFilter(QObject *object, QEvent *event) { bool ContextView::eventFilter(QObject *object, QEvent *event) {
switch(event->type()) { switch(event->type()) {
case QEvent::Paint:{ case QEvent::Paint:{
handlePaintEvent(object, event); handlePaintEvent(object, event);
} }
default:{ default:{
return QObject::eventFilter(object, event); return QObject::eventFilter(object, event);
} }
} }
return(true); return(true);

View File

@@ -317,7 +317,7 @@ MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSD *osd, co
ui_->action_stop->setIcon(IconLoader::Load("media-stop")); ui_->action_stop->setIcon(IconLoader::Load("media-stop"));
ui_->action_stop_after_this_track->setIcon(IconLoader::Load("media-stop")); ui_->action_stop_after_this_track->setIcon(IconLoader::Load("media-stop"));
ui_->action_next_track->setIcon(IconLoader::Load("media-forward")); ui_->action_next_track->setIcon(IconLoader::Load("media-forward"));
ui_->action_quit->setIcon(IconLoader::Load("application-exit")); ui_->action_quit->setIcon(IconLoader::Load("application-exit"));
// Playlist // Playlist

View File

@@ -1,5 +1,5 @@
/* /*
* Strawberry Music Player * Strawberry Music Player
* This file was part of Clementine. * This file was part of Clementine.
* Copyright 2010, David Sansome <me@davidsansome.com> * Copyright 2010, David Sansome <me@davidsansome.com>
* *

View File

@@ -217,7 +217,7 @@ void AlbumCoverChoiceController::ShowCover(const Song &song, const QImage image)
QUrl url_automatic(song.art_automatic()); QUrl url_automatic(song.art_automatic());
if (url_manual.isLocalFile() || url_automatic.isLocalFile()) { if (url_manual.isLocalFile() || url_automatic.isLocalFile()) {
QPixmap pixmap = AlbumCoverLoader::TryLoadPixmap(song.art_automatic(), song.art_manual(), song.url().toLocalFile()); QPixmap pixmap = AlbumCoverLoader::TryLoadPixmap(song.art_automatic(), song.art_manual(), song.url().toLocalFile());
ShowCover(song, pixmap); ShowCover(song, pixmap);
} }
else if (!image.isNull()) ShowCover(song, QPixmap::fromImage(image)); else if (!image.isNull()) ShowCover(song, QPixmap::fromImage(image));

View File

@@ -631,7 +631,7 @@ void AlbumCoverManager::SaveCoverToFile() {
} }
else if(!song.art_automatic().isEmpty() && QFile::exists(song.art_automatic())) { else if(!song.art_automatic().isEmpty() && QFile::exists(song.art_automatic())) {
image = QImage(song.art_automatic()); image = QImage(song.art_automatic());
} }
else { else {
image = no_cover_image_; image = no_cover_image_;
} }

View File

@@ -364,7 +364,7 @@ void MacDeviceLister::DiskAddedCallback(DADiskRef disk, void* context) {
} }
#endif #endif
NSURL* volume_path = NSURL* volume_path =
[[properties objectForKey:(NSString*)kDADiskDescriptionVolumePathKey] copy]; [[properties objectForKey:(NSString*)kDADiskDescriptionVolumePathKey] copy];
if (volume_path) { if (volume_path) {

View File

@@ -55,7 +55,7 @@ class VLCEngine : public Engine::Base {
void Unpause(); void Unpause();
void Seek(quint64 offset_nanosec); void Seek(quint64 offset_nanosec);
protected: protected:
void SetVolumeSW(uint percent); void SetVolumeSW(uint percent);
public: public:
virtual qint64 position_nanosec() const; virtual qint64 position_nanosec() const;
virtual qint64 length_nanosec() const; virtual qint64 length_nanosec() const;

View File

@@ -37,7 +37,7 @@ class AcoustidClient : public QObject {
Q_OBJECT Q_OBJECT
// Gets a MBID from a Chromaprint fingerprint. // Gets a MBID from a Chromaprint fingerprint.
// A fingerprint identifies one particular encoding of a song and is created by Fingerprinter. // A fingerprint identifies one particular encoding of a song and is created by Fingerprinter.
// An MBID identifies the actual song and can be passed to Musicbrainz to get metadata. // An MBID identifies the actual song and can be passed to Musicbrainz to get metadata.
// You can create one AcoustidClient and make multiple requests using it. // You can create one AcoustidClient and make multiple requests using it.
// IDs are provided by the caller when a request is started and included in the Finished signal - they have no meaning to AcoustidClient. // IDs are provided by the caller when a request is started and included in the Finished signal - they have no meaning to AcoustidClient.

View File

@@ -179,7 +179,7 @@ void PlayingWidget::SetVisible(bool visible) {
return; return;
} }
if (visible == visible_) return; if (visible == visible_) return;
timeline_show_hide_->setFrameRange(0, total_height_); timeline_show_hide_->setFrameRange(0, total_height_);
timeline_show_hide_->setDirection(visible ? QTimeLine::Forward : QTimeLine::Backward); timeline_show_hide_->setDirection(visible ? QTimeLine::Forward : QTimeLine::Backward);

View File

@@ -99,7 +99,7 @@ class PlayingWidget : public QWidget {
void AutomaticCoverSearchDone(); void AutomaticCoverSearchDone();
void AlbumArtLoaded(const Song &song, const QString &uri, const QImage &image); void AlbumArtLoaded(const Song &song, const QString &uri, const QImage &image);
void SetHeight(int height); void SetHeight(int height);
void FadePreviousTrack(qreal value); void FadePreviousTrack(qreal value);
private: private:

View File

@@ -303,7 +303,7 @@ void Amarok::VolumeSlider::paintEvent(QPaintEvent*) {
const int padding = 7; const int padding = 7;
const int offset = int(double((width() - 2 * padding) * value()) / maximum()); const int offset = int(double((width() - 2 * padding) * value()) / maximum());
// If theme changed since last paintEvent, redraw the volume pixmap with new theme colors // If theme changed since last paintEvent, redraw the volume pixmap with new theme colors
if (m_previous_theme_text_color != palette().color(QPalette::WindowText)) { if (m_previous_theme_text_color != palette().color(QPalette::WindowText)) {
m_pixmapInset = drawVolumePixmap(); m_pixmapInset = drawVolumePixmap();
m_previous_theme_text_color = palette().color(QPalette::WindowText); m_previous_theme_text_color = palette().color(QPalette::WindowText);
@@ -384,7 +384,7 @@ void Amarok::VolumeSlider::drawVolumeSliderHandle() {
painter.setCompositionMode(QPainter::CompositionMode_DestinationIn); painter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
painter.drawImage(0, 0, pixmapHandleGlow); painter.drawImage(0, 0, pixmapHandleGlow);
// Overlay the volume slider handle image // Overlay the volume slider handle image
painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); painter.setCompositionMode(QPainter::CompositionMode_SourceAtop);
painter.drawImage(0, 0, pixmapHandle); painter.drawImage(0, 0, pixmapHandle);