Make static
This commit is contained in:
@@ -390,11 +390,7 @@ bool OrganizeDialog::SetUrls(const QList<QUrl> &urls) {
|
||||
|
||||
bool OrganizeDialog::SetFilenames(const QStringList &filenames) {
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
songs_future_ = QtConcurrent::run(&OrganizeDialog::LoadSongsBlocking, this, filenames);
|
||||
#else
|
||||
songs_future_ = QtConcurrent::run(this, &OrganizeDialog::LoadSongsBlocking, filenames);
|
||||
#endif
|
||||
songs_future_ = QtConcurrent::run(&OrganizeDialog::LoadSongsBlocking, filenames);
|
||||
QFutureWatcher<SongList> *watcher = new QFutureWatcher<SongList>();
|
||||
QObject::connect(watcher, &QFutureWatcher<SongList>::finished, this, [this, watcher]() {
|
||||
SetSongs(watcher->result());
|
||||
|
||||
@@ -83,7 +83,7 @@ class OrganizeDialog : public QDialog {
|
||||
void LoadSettings();
|
||||
void AdjustSize();
|
||||
|
||||
SongList LoadSongsBlocking(const QStringList &filenames);
|
||||
static SongList LoadSongsBlocking(const QStringList &filenames);
|
||||
void SetLoadingSongs(const bool loading);
|
||||
|
||||
signals:
|
||||
|
||||
Reference in New Issue
Block a user