Replace emit with Q_EMIT
This commit is contained in:
@@ -151,7 +151,7 @@ void SCollection::ExitReceived() {
|
||||
QObject::disconnect(obj, nullptr, this, nullptr);
|
||||
qLog(Debug) << obj << "successfully exited.";
|
||||
wait_for_exit_.removeAll(obj);
|
||||
if (wait_for_exit_.isEmpty()) emit ExitFinished();
|
||||
if (wait_for_exit_.isEmpty()) Q_EMIT ExitFinished();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ void CollectionBackend::Exit() {
|
||||
Q_ASSERT(QThread::currentThread() == thread());
|
||||
|
||||
moveToThread(original_thread_);
|
||||
emit ExitFinished();
|
||||
Q_EMIT ExitFinished();
|
||||
|
||||
}
|
||||
|
||||
@@ -114,8 +114,8 @@ void CollectionBackend::ReportErrors(const CollectionQuery &query) {
|
||||
qLog(Error) << "Unable to execute collection SQL query:" << sql_error;
|
||||
qLog(Error) << "Failed SQL query:" << query.lastQuery();
|
||||
qLog(Error) << "Bound SQL values:" << query.boundValues();
|
||||
emit Error(tr("Unable to execute collection SQL query: %1").arg(sql_error.text()));
|
||||
emit Error(tr("Failed SQL query: %1").arg(query.lastQuery()));
|
||||
Q_EMIT Error(tr("Unable to execute collection SQL query: %1").arg(sql_error.text()));
|
||||
Q_EMIT Error(tr("Failed SQL query: %1").arg(query.lastQuery()));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -134,7 +134,7 @@ void CollectionBackend::GetAllSongs(const int id) {
|
||||
q.prepare(QStringLiteral("SELECT %1 FROM %2").arg(Song::kRowIdColumnSpec, songs_table_));
|
||||
if (!q.exec()) {
|
||||
db_->ReportErrors(q);
|
||||
emit GotSongs(SongList(), id);
|
||||
Q_EMIT GotSongs(SongList(), id);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ void CollectionBackend::GetAllSongs(const int id) {
|
||||
songs << song;
|
||||
}
|
||||
|
||||
emit GotSongs(songs, id);
|
||||
Q_EMIT GotSongs(songs, id);
|
||||
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ void CollectionBackend::LoadDirectories() {
|
||||
QSqlDatabase db(db_->Connect());
|
||||
|
||||
for (const CollectionDirectory &dir : dirs) {
|
||||
emit DirectoryAdded(dir, SubdirsInDirectory(dir.id, db));
|
||||
Q_EMIT DirectoryAdded(dir, SubdirsInDirectory(dir.id, db));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -317,7 +317,7 @@ void CollectionBackend::UpdateTotalSongCount() {
|
||||
return;
|
||||
}
|
||||
|
||||
emit TotalSongCountUpdated(q.value(0).toInt());
|
||||
Q_EMIT TotalSongCountUpdated(q.value(0).toInt());
|
||||
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ void CollectionBackend::UpdateTotalArtistCount() {
|
||||
return;
|
||||
}
|
||||
|
||||
emit TotalArtistCountUpdated(q.value(0).toInt());
|
||||
Q_EMIT TotalArtistCountUpdated(q.value(0).toInt());
|
||||
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ void CollectionBackend::UpdateTotalAlbumCount() {
|
||||
return;
|
||||
}
|
||||
|
||||
emit TotalAlbumCountUpdated(q.value(0).toInt());
|
||||
Q_EMIT TotalAlbumCountUpdated(q.value(0).toInt());
|
||||
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ void CollectionBackend::AddDirectory(const QString &path) {
|
||||
dir.path = path;
|
||||
dir.id = q.lastInsertId().toInt();
|
||||
|
||||
emit DirectoryAdded(dir, CollectionSubdirectoryList());
|
||||
Q_EMIT DirectoryAdded(dir, CollectionSubdirectoryList());
|
||||
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ void CollectionBackend::RemoveDirectory(const CollectionDirectory &dir) {
|
||||
|
||||
transaction.Commit();
|
||||
|
||||
emit DirectoryDeleted(dir);
|
||||
Q_EMIT DirectoryDeleted(dir);
|
||||
|
||||
}
|
||||
|
||||
@@ -717,8 +717,8 @@ void CollectionBackend::AddOrUpdateSongs(const SongList &songs) {
|
||||
|
||||
transaction.Commit();
|
||||
|
||||
if (!added_songs.isEmpty()) emit SongsAdded(added_songs);
|
||||
if (!changed_songs.isEmpty()) emit SongsChanged(changed_songs);
|
||||
if (!added_songs.isEmpty()) Q_EMIT SongsAdded(added_songs);
|
||||
if (!changed_songs.isEmpty()) Q_EMIT SongsChanged(changed_songs);
|
||||
|
||||
UpdateTotalSongCountAsync();
|
||||
UpdateTotalArtistCountAsync();
|
||||
@@ -819,9 +819,9 @@ void CollectionBackend::UpdateSongsBySongID(const SongMap &new_songs) {
|
||||
|
||||
transaction.Commit();
|
||||
|
||||
if (!deleted_songs.isEmpty()) emit SongsDeleted(deleted_songs);
|
||||
if (!added_songs.isEmpty()) emit SongsAdded(added_songs);
|
||||
if (!changed_songs.isEmpty()) emit SongsChanged(changed_songs);
|
||||
if (!deleted_songs.isEmpty()) Q_EMIT SongsDeleted(deleted_songs);
|
||||
if (!added_songs.isEmpty()) Q_EMIT SongsAdded(added_songs);
|
||||
if (!changed_songs.isEmpty()) Q_EMIT SongsChanged(changed_songs);
|
||||
|
||||
UpdateTotalSongCountAsync();
|
||||
UpdateTotalArtistCountAsync();
|
||||
@@ -867,7 +867,7 @@ void CollectionBackend::DeleteSongs(const SongList &songs) {
|
||||
|
||||
transaction.Commit();
|
||||
|
||||
emit SongsDeleted(songs);
|
||||
Q_EMIT SongsDeleted(songs);
|
||||
|
||||
UpdateTotalSongCountAsync();
|
||||
UpdateTotalArtistCountAsync();
|
||||
@@ -894,10 +894,10 @@ void CollectionBackend::MarkSongsUnavailable(const SongList &songs, const bool u
|
||||
transaction.Commit();
|
||||
|
||||
if (unavailable) {
|
||||
emit SongsDeleted(songs);
|
||||
Q_EMIT SongsDeleted(songs);
|
||||
}
|
||||
else {
|
||||
emit SongsAdded(songs);
|
||||
Q_EMIT SongsAdded(songs);
|
||||
}
|
||||
|
||||
UpdateTotalSongCountAsync();
|
||||
@@ -1410,7 +1410,7 @@ void CollectionBackend::CompilationsNeedUpdating() {
|
||||
transaction.Commit();
|
||||
|
||||
if (!changed_songs.isEmpty()) {
|
||||
emit SongsChanged(changed_songs);
|
||||
Q_EMIT SongsChanged(changed_songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1617,7 +1617,7 @@ void CollectionBackend::UpdateEmbeddedAlbumArt(const QString &effective_albumart
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsChanged(songs);
|
||||
Q_EMIT SongsChanged(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1663,7 +1663,7 @@ void CollectionBackend::UpdateManualAlbumArt(const QString &effective_albumartis
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsChanged(songs);
|
||||
Q_EMIT SongsChanged(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1708,7 +1708,7 @@ void CollectionBackend::UnsetAlbumArt(const QString &effective_albumartist, cons
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsChanged(songs);
|
||||
Q_EMIT SongsChanged(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1754,7 +1754,7 @@ void CollectionBackend::ClearAlbumArt(const QString &effective_albumartist, cons
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsChanged(songs);
|
||||
Q_EMIT SongsChanged(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1803,7 +1803,7 @@ void CollectionBackend::ForceCompilation(const QString &album, const QStringList
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsChanged(songs);
|
||||
Q_EMIT SongsChanged(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1825,7 +1825,7 @@ void CollectionBackend::IncrementPlayCount(const int id) {
|
||||
}
|
||||
|
||||
Song new_song = GetSongById(id, db);
|
||||
emit SongsStatisticsChanged(SongList() << new_song);
|
||||
Q_EMIT SongsStatisticsChanged(SongList() << new_song);
|
||||
|
||||
}
|
||||
|
||||
@@ -1847,7 +1847,7 @@ void CollectionBackend::IncrementSkipCount(const int id, const float progress) {
|
||||
}
|
||||
|
||||
Song new_song = GetSongById(id, db);
|
||||
emit SongsStatisticsChanged(SongList() << new_song);
|
||||
Q_EMIT SongsStatisticsChanged(SongList() << new_song);
|
||||
|
||||
}
|
||||
|
||||
@@ -1872,7 +1872,7 @@ void CollectionBackend::ResetPlayStatistics(const QList<int> &id_list, const boo
|
||||
const bool success = ResetPlayStatistics(id_str_list);
|
||||
if (success) {
|
||||
const SongList songs = GetSongsById(id_list);
|
||||
emit SongsStatisticsChanged(songs, save_tags);
|
||||
Q_EMIT SongsStatisticsChanged(songs, save_tags);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1921,7 +1921,7 @@ void CollectionBackend::DeleteAll() {
|
||||
t.Commit();
|
||||
}
|
||||
|
||||
emit DatabaseReset();
|
||||
Q_EMIT DatabaseReset();
|
||||
|
||||
}
|
||||
|
||||
@@ -2014,7 +2014,7 @@ void CollectionBackend::UpdateLastPlayed(const QString &artist, const QString &a
|
||||
}
|
||||
}
|
||||
|
||||
emit SongsStatisticsChanged(SongList() << songs);
|
||||
Q_EMIT SongsStatisticsChanged(SongList() << songs);
|
||||
|
||||
}
|
||||
|
||||
@@ -2040,7 +2040,7 @@ void CollectionBackend::UpdatePlayCount(const QString &artist, const QString &ti
|
||||
}
|
||||
}
|
||||
|
||||
emit SongsStatisticsChanged(SongList() << songs, save_tags);
|
||||
Q_EMIT SongsStatisticsChanged(SongList() << songs, save_tags);
|
||||
|
||||
}
|
||||
|
||||
@@ -2075,7 +2075,7 @@ void CollectionBackend::UpdateSongsRating(const QList<int> &id_list, const float
|
||||
|
||||
SongList new_song_list = GetSongsById(id_str_list, db);
|
||||
|
||||
emit SongsRatingChanged(new_song_list, save_tags);
|
||||
Q_EMIT SongsRatingChanged(new_song_list, save_tags);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -479,12 +479,12 @@ void CollectionFilterWidget::keyReleaseEvent(QKeyEvent *e) {
|
||||
|
||||
switch (e->key()) {
|
||||
case Qt::Key_Up:
|
||||
emit UpPressed();
|
||||
Q_EMIT UpPressed();
|
||||
e->accept();
|
||||
break;
|
||||
|
||||
case Qt::Key_Down:
|
||||
emit DownPressed();
|
||||
Q_EMIT DownPressed();
|
||||
e->accept();
|
||||
break;
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ void CollectionModel::SetGroupBy(const Grouping g, const std::optional<bool> sep
|
||||
|
||||
ScheduleReset();
|
||||
|
||||
emit GroupingChanged(g, options_current_.separate_albums_by_grouping);
|
||||
Q_EMIT GroupingChanged(g, options_current_.separate_albums_by_grouping);
|
||||
|
||||
}
|
||||
|
||||
@@ -622,7 +622,7 @@ void CollectionModel::UpdateSongsInternal(const SongList &songs) {
|
||||
qLog(Debug) << "Song metadata and title for" << new_song.id() << new_song.PrettyTitleWithArtist() << "changed, informing model";
|
||||
const QModelIndex idx = ItemToIndex(item);
|
||||
if (!idx.isValid()) continue;
|
||||
emit dataChanged(idx, idx);
|
||||
Q_EMIT dataChanged(idx, idx);
|
||||
}
|
||||
else {
|
||||
qLog(Debug) << "Song metadata for" << new_song.id() << new_song.PrettyTitleWithArtist() << "changed";
|
||||
@@ -633,7 +633,7 @@ void CollectionModel::UpdateSongsInternal(const SongList &songs) {
|
||||
ClearItemPixmapCache(item);
|
||||
const QModelIndex idx = ItemToIndex(item);
|
||||
if (idx.isValid()) {
|
||||
emit dataChanged(idx, idx);
|
||||
Q_EMIT dataChanged(idx, idx);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -989,7 +989,7 @@ void CollectionModel::AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderR
|
||||
const QModelIndex idx = ItemToIndex(item);
|
||||
if (!idx.isValid()) return;
|
||||
|
||||
emit dataChanged(idx, idx);
|
||||
Q_EMIT dataChanged(idx, idx);
|
||||
|
||||
}
|
||||
|
||||
@@ -1532,21 +1532,21 @@ CollectionModel::GroupBy &CollectionModel::Grouping::operator[](const int i) {
|
||||
void CollectionModel::TotalSongCountUpdatedSlot(const int count) {
|
||||
|
||||
total_song_count_ = count;
|
||||
emit TotalSongCountUpdated(count);
|
||||
Q_EMIT TotalSongCountUpdated(count);
|
||||
|
||||
}
|
||||
|
||||
void CollectionModel::TotalArtistCountUpdatedSlot(const int count) {
|
||||
|
||||
total_artist_count_ = count;
|
||||
emit TotalArtistCountUpdated(count);
|
||||
Q_EMIT TotalArtistCountUpdated(count);
|
||||
|
||||
}
|
||||
|
||||
void CollectionModel::TotalAlbumCountUpdatedSlot(const int count) {
|
||||
|
||||
total_album_count_ = count;
|
||||
emit TotalAlbumCountUpdated(count);
|
||||
Q_EMIT TotalAlbumCountUpdated(count);
|
||||
|
||||
}
|
||||
|
||||
@@ -1566,7 +1566,7 @@ void CollectionModel::RowsInserted(const QModelIndex &parent, const int first, c
|
||||
}
|
||||
|
||||
if (!songs.isEmpty()) {
|
||||
emit SongsAdded(songs);
|
||||
Q_EMIT SongsAdded(songs);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1582,7 +1582,7 @@ void CollectionModel::RowsRemoved(const QModelIndex &parent, const int first, co
|
||||
songs << item->metadata;
|
||||
}
|
||||
|
||||
emit SongsRemoved(songs);
|
||||
Q_EMIT SongsRemoved(songs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ void CollectionView::TotalSongCountUpdated(const int count) {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalSongCountUpdated_();
|
||||
Q_EMIT TotalSongCountUpdated_();
|
||||
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ void CollectionView::TotalArtistCountUpdated(const int count) {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalArtistCountUpdated_();
|
||||
Q_EMIT TotalArtistCountUpdated_();
|
||||
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ void CollectionView::TotalAlbumCountUpdated(const int count) {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalAlbumCountUpdated_();
|
||||
Q_EMIT TotalAlbumCountUpdated_();
|
||||
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ void CollectionView::mouseReleaseEvent(QMouseEvent *e) {
|
||||
QTreeView::mouseReleaseEvent(e);
|
||||
|
||||
if (total_song_count_ == 0) {
|
||||
emit ShowConfigDialog();
|
||||
Q_EMIT ShowConfigDialog();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -538,13 +538,13 @@ void CollectionView::Load() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->clear_first_ = true;
|
||||
}
|
||||
emit AddToPlaylistSignal(q_mimedata);
|
||||
Q_EMIT AddToPlaylistSignal(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
void CollectionView::AddToPlaylist() {
|
||||
|
||||
emit AddToPlaylistSignal(model()->mimeData(selectedIndexes()));
|
||||
Q_EMIT AddToPlaylistSignal(model()->mimeData(selectedIndexes()));
|
||||
|
||||
}
|
||||
|
||||
@@ -554,7 +554,7 @@ void CollectionView::AddToPlaylistEnqueue() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->enqueue_now_ = true;
|
||||
}
|
||||
emit AddToPlaylistSignal(q_mimedata);
|
||||
Q_EMIT AddToPlaylistSignal(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -564,7 +564,7 @@ void CollectionView::AddToPlaylistEnqueueNext() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->enqueue_next_now_ = true;
|
||||
}
|
||||
emit AddToPlaylistSignal(q_mimedata);
|
||||
Q_EMIT AddToPlaylistSignal(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -574,7 +574,7 @@ void CollectionView::OpenInNewPlaylist() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->open_in_new_playlist_ = true;
|
||||
}
|
||||
emit AddToPlaylistSignal(q_mimedata);
|
||||
Q_EMIT AddToPlaylistSignal(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -731,7 +731,7 @@ void CollectionView::EditTracks() {
|
||||
}
|
||||
|
||||
void CollectionView::EditTagError(const QString &message) {
|
||||
emit Error(message);
|
||||
Q_EMIT Error(message);
|
||||
}
|
||||
|
||||
void CollectionView::RescanSongs() {
|
||||
@@ -773,7 +773,7 @@ void CollectionView::FilterReturnPressed() {
|
||||
|
||||
if (!currentIndex().isValid()) return;
|
||||
|
||||
emit doubleClicked(currentIndex());
|
||||
Q_EMIT doubleClicked(currentIndex());
|
||||
}
|
||||
|
||||
void CollectionView::ShowInBrowser() const {
|
||||
|
||||
@@ -138,7 +138,7 @@ void CollectionWatcher::Exit() {
|
||||
Abort();
|
||||
if (backend_) backend_->Close();
|
||||
moveToThread(original_thread_);
|
||||
emit ExitFinished();
|
||||
Q_EMIT ExitFinished();
|
||||
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ CollectionWatcher::ScanTransaction::ScanTransaction(CollectionWatcher *watcher,
|
||||
}
|
||||
|
||||
task_id_ = watcher_->task_manager_->StartTask(description);
|
||||
emit watcher_->ScanStarted(task_id_);
|
||||
Q_EMIT watcher_->ScanStarted(task_id_);
|
||||
|
||||
}
|
||||
|
||||
@@ -297,35 +297,35 @@ void CollectionWatcher::ScanTransaction::CommitNewOrUpdatedSongs() {
|
||||
|
||||
if (!deleted_songs.isEmpty()) {
|
||||
if (mark_songs_unavailable_ && watcher_->source() == Song::Source::Collection) {
|
||||
emit watcher_->SongsUnavailable(deleted_songs);
|
||||
Q_EMIT watcher_->SongsUnavailable(deleted_songs);
|
||||
}
|
||||
else {
|
||||
emit watcher_->SongsDeleted(deleted_songs);
|
||||
Q_EMIT watcher_->SongsDeleted(deleted_songs);
|
||||
}
|
||||
deleted_songs.clear();
|
||||
}
|
||||
|
||||
if (!new_songs.isEmpty()) {
|
||||
emit watcher_->NewOrUpdatedSongs(new_songs);
|
||||
Q_EMIT watcher_->NewOrUpdatedSongs(new_songs);
|
||||
new_songs.clear();
|
||||
}
|
||||
|
||||
if (!touched_songs.isEmpty()) {
|
||||
emit watcher_->SongsMTimeUpdated(touched_songs);
|
||||
Q_EMIT watcher_->SongsMTimeUpdated(touched_songs);
|
||||
touched_songs.clear();
|
||||
}
|
||||
|
||||
if (!readded_songs.isEmpty()) {
|
||||
emit watcher_->SongsReadded(readded_songs);
|
||||
Q_EMIT watcher_->SongsReadded(readded_songs);
|
||||
readded_songs.clear();
|
||||
}
|
||||
|
||||
if (!new_subdirs.isEmpty()) {
|
||||
emit watcher_->SubdirsDiscovered(new_subdirs);
|
||||
Q_EMIT watcher_->SubdirsDiscovered(new_subdirs);
|
||||
}
|
||||
|
||||
if (!touched_subdirs.isEmpty()) {
|
||||
emit watcher_->SubdirsMTimeUpdated(touched_subdirs);
|
||||
Q_EMIT watcher_->SubdirsMTimeUpdated(touched_subdirs);
|
||||
touched_subdirs.clear();
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@ void CollectionWatcher::ScanTransaction::CommitNewOrUpdatedSongs() {
|
||||
new_subdirs.clear();
|
||||
|
||||
if (incremental_ || ignores_mtime_) {
|
||||
emit watcher_->UpdateLastSeen(dir_, expire_unavailable_songs_days_);
|
||||
Q_EMIT watcher_->UpdateLastSeen(dir_, expire_unavailable_songs_days_);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -484,7 +484,7 @@ void CollectionWatcher::AddDirectory(const CollectionDirectory &dir, const Colle
|
||||
}
|
||||
}
|
||||
|
||||
emit CompilationsNeedUpdating();
|
||||
Q_EMIT CompilationsNeedUpdating();
|
||||
|
||||
}
|
||||
|
||||
@@ -1151,7 +1151,7 @@ void CollectionWatcher::RescanPathsNow() {
|
||||
|
||||
rescan_queue_.clear();
|
||||
|
||||
emit CompilationsNeedUpdating();
|
||||
Q_EMIT CompilationsNeedUpdating();
|
||||
|
||||
}
|
||||
|
||||
@@ -1291,7 +1291,7 @@ void CollectionWatcher::PerformScan(const bool incremental, const bool ignore_mt
|
||||
|
||||
last_scan_time_ = QDateTime::currentSecsSinceEpoch();
|
||||
|
||||
emit CompilationsNeedUpdating();
|
||||
Q_EMIT CompilationsNeedUpdating();
|
||||
|
||||
}
|
||||
|
||||
@@ -1372,6 +1372,6 @@ void CollectionWatcher::RescanSongs(const SongList &songs) {
|
||||
}
|
||||
}
|
||||
|
||||
emit CompilationsNeedUpdating();
|
||||
Q_EMIT CompilationsNeedUpdating();
|
||||
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ void GroupByDialog::Reset() {
|
||||
|
||||
void GroupByDialog::accept() {
|
||||
|
||||
emit Accepted(CollectionModel::Grouping(
|
||||
Q_EMIT Accepted(CollectionModel::Grouping(
|
||||
p_->mapping_.get<tag_index>().find(ui_->combobox_first->currentIndex())->group_by,
|
||||
p_->mapping_.get<tag_index>().find(ui_->combobox_second->currentIndex())->group_by,
|
||||
p_->mapping_.get<tag_index>().find(ui_->combobox_third->currentIndex())->group_by),
|
||||
|
||||
@@ -207,7 +207,7 @@ void SavedGroupingManager::Remove() {
|
||||
}
|
||||
UpdateModel();
|
||||
|
||||
emit UpdateGroupByActions();
|
||||
Q_EMIT UpdateGroupByActions();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user