Replace emit with Q_EMIT

This commit is contained in:
Jonas Kvinge
2024-08-25 01:06:30 +02:00
parent cb0db8750f
commit 8da616491d
158 changed files with 891 additions and 891 deletions

View File

@@ -106,9 +106,9 @@ void Queue::SourceDataChanged(const QModelIndex &top_left, const QModelIndex &bo
QModelIndex proxy_index = mapFromSource(sourceModel()->index(row, 0));
if (!proxy_index.isValid()) continue;
emit dataChanged(proxy_index, proxy_index);
Q_EMIT dataChanged(proxy_index, proxy_index);
}
emit ItemCountChanged(ItemCount());
Q_EMIT ItemCountChanged(ItemCount());
}
@@ -127,7 +127,7 @@ void Queue::SourceLayoutChanged() {
signal_item_count_changed_ = QObject::connect(this, &Queue::ItemCountChanged, this, &Queue::UpdateTotalLength);
emit ItemCountChanged(ItemCount());
Q_EMIT ItemCountChanged(ItemCount());
}
@@ -242,7 +242,7 @@ void Queue::UpdateTotalLength() {
total_length_ns_ = total;
emit TotalLengthChanged(total);
Q_EMIT TotalLengthChanged(total);
}
@@ -258,7 +258,7 @@ void Queue::UpdateSummaryText() {
summary += QLatin1String(" - [ ") + Utilities::WordyTimeNanosec(nanoseconds) + QLatin1String(" ]");
}
emit SummaryTextChanged(summary);
Q_EMIT SummaryTextChanged(summary);
}
@@ -274,7 +274,7 @@ void Queue::Clear() {
void Queue::Move(const QList<int> &proxy_rows, int pos) {
emit layoutAboutToBeChanged();
Q_EMIT layoutAboutToBeChanged();
QList<QPersistentModelIndex> moved_items;
// Take the items out of the list first, keeping track of whether the insertion point changes
@@ -311,7 +311,7 @@ void Queue::Move(const QList<int> &proxy_rows, int pos) {
}
}
emit layoutChanged();
Q_EMIT layoutChanged();
}
@@ -453,7 +453,7 @@ void Queue::Remove(QList<int> &proxy_rows) {
std::stable_sort(proxy_rows.begin(), proxy_rows.end());
// Reflects immediately changes in the playlist
emit layoutAboutToBeChanged();
Q_EMIT layoutAboutToBeChanged();
int removed_rows = 0;
for (int row : proxy_rows) {
@@ -465,6 +465,6 @@ void Queue::Remove(QList<int> &proxy_rows) {
removed_rows++;
}
emit layoutChanged();
Q_EMIT layoutChanged();
}