Formatting
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "about.h"
|
||||
#include "ui_about.h"
|
||||
|
||||
About::About(QWidget *parent): QDialog(parent) {
|
||||
About::About(QWidget *parent) : QDialog(parent) {
|
||||
|
||||
ui_.setupUi(this);
|
||||
setWindowFlags(this->windowFlags()|Qt::WindowStaysOnTopHint);
|
||||
|
||||
@@ -49,7 +49,7 @@ class About : public QDialog {
|
||||
|
||||
QString MainHtml() const;
|
||||
QString ContributorsHtml() const;
|
||||
static QString PersonToHtml(const Person &person) ;
|
||||
static QString PersonToHtml(const Person &person);
|
||||
|
||||
private:
|
||||
Ui::About ui_;
|
||||
|
||||
@@ -35,7 +35,7 @@ class AddStreamDialog : public QDialog {
|
||||
~AddStreamDialog() override;
|
||||
|
||||
QUrl url() const { return QUrl(ui_->url->text()); }
|
||||
void set_url(const QUrl &url) { ui_->url->setText(url.toString());}
|
||||
void set_url(const QUrl &url) { ui_->url->setText(url.toString()); }
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *e) override;
|
||||
|
||||
@@ -514,7 +514,7 @@ bool EditTagDialog::DoesValueVary(const QModelIndexList &sel, const QString &id)
|
||||
|
||||
bool EditTagDialog::IsValueModified(const QModelIndexList &sel, const QString &id) const {
|
||||
|
||||
return std::any_of(sel.begin(), sel.end(), [this, id](const QModelIndex &i){ return data_[i.row()].original_value(id) != data_[i.row()].current_value(id); });
|
||||
return std::any_of(sel.begin(), sel.end(), [this, id](const QModelIndex &i) { return data_[i.row()].original_value(id) != data_[i.row()].current_value(id); });
|
||||
|
||||
}
|
||||
|
||||
@@ -651,7 +651,7 @@ void EditTagDialog::SelectionChanged() {
|
||||
const bool enable_change_art = first_song.is_collection_song();
|
||||
ui_->tags_art_button->setEnabled(enable_change_art);
|
||||
if ((art_different && first_cover_action != UpdateCoverAction_New) || action_different) {
|
||||
tags_cover_art_id_ = -1; // Cancels any pending art load.
|
||||
tags_cover_art_id_ = -1; // Cancels any pending art load.
|
||||
ui_->tags_art->clear();
|
||||
ui_->tags_art->setText(kArtDifferentHintText);
|
||||
album_cover_choice_controller_->show_cover_action()->setEnabled(false);
|
||||
|
||||
@@ -80,7 +80,7 @@ class TrackSelectionDialog : public QDialog {
|
||||
};
|
||||
|
||||
void AddDivider(const QString &text, QTreeWidget *parent) const;
|
||||
static void AddSong(const Song &song, int result_index, QTreeWidget *parent) ;
|
||||
static void AddSong(const Song &song, int result_index, QTreeWidget *parent);
|
||||
|
||||
void SetLoading(const QString &message);
|
||||
static void SaveData(const QList<Data> &data);
|
||||
|
||||
Reference in New Issue
Block a user