Replace emit with Q_EMIT
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user