Formatting
This commit is contained in:
@@ -212,7 +212,7 @@ void Organize::ProcessSomeFiles() {
|
||||
qLog(Debug) << "Transcoding to" << task.transcoded_filename_;
|
||||
|
||||
// Start the transcoding - this will happen in the background and FileTranscoded() will get called when it's done.
|
||||
// At that point the task will get re-added to the pending queue with the new filename.
|
||||
// At that point the task will get re-added to the pending queue with the new filename.
|
||||
transcoder_->AddJob(task.song_info_.song_.url().toLocalFile(), preset, task.transcoded_filename_);
|
||||
transcoder_->Start();
|
||||
continue;
|
||||
|
||||
@@ -92,10 +92,9 @@ class Organize : public QObject {
|
||||
|
||||
private:
|
||||
struct Task {
|
||||
explicit Task(const NewSongInfo &song_info = NewSongInfo()) :
|
||||
song_info_(song_info),
|
||||
transcode_progress_(0.0)
|
||||
{}
|
||||
explicit Task(const NewSongInfo &song_info = NewSongInfo())
|
||||
: song_info_(song_info),
|
||||
transcode_progress_(0.0) {}
|
||||
|
||||
NewSongInfo song_info_;
|
||||
float transcode_progress_;
|
||||
|
||||
@@ -141,7 +141,7 @@ OrganizeDialog::OrganizeDialog(TaskManager *task_manager, CollectionBackend *bac
|
||||
for (const QString &title : tag_titles) {
|
||||
QAction *action = tag_menu->addAction(title);
|
||||
QString tag = tags[title];
|
||||
QObject::connect(action, &QAction::triggered, this, [this, tag]() { InsertTag(tag); } );
|
||||
QObject::connect(action, &QAction::triggered, this, [this, tag]() { InsertTag(tag); });
|
||||
}
|
||||
|
||||
ui_->insert->setMenu(tag_menu);
|
||||
@@ -222,7 +222,7 @@ void OrganizeDialog::LoadGeometry() {
|
||||
}
|
||||
|
||||
if (parentwindow_) {
|
||||
// Center the window on the same screen as the parentwindow.
|
||||
// Center the window on the same screen as the parentwindow.
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
QScreen *screen = parentwindow_->screen();
|
||||
#else
|
||||
|
||||
@@ -49,7 +49,7 @@ class OrganizeErrorDialog : public QDialog {
|
||||
void Show(OperationType type, const SongList &songs_with_errors, const QStringList &log = QStringList());
|
||||
void Show(OperationType type, const QStringList &files_with_errors, const QStringList &log = QStringList());
|
||||
|
||||
private:
|
||||
private:
|
||||
Ui_OrganizeErrorDialog *ui_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user