Replace emit with Q_EMIT
This commit is contained in:
@@ -183,12 +183,12 @@ void PlaylistTabBar::RenameSlot() {
|
||||
|
||||
if (new_name.isEmpty() || new_name == old_name) return;
|
||||
|
||||
emit Rename(playlist_id, new_name);
|
||||
Q_EMIT Rename(playlist_id, new_name);
|
||||
|
||||
}
|
||||
|
||||
void PlaylistTabBar::RenameInline() {
|
||||
emit Rename(tabData(menu_index_).toInt(), rename_editor_->text());
|
||||
Q_EMIT Rename(tabData(menu_index_).toInt(), rename_editor_->text());
|
||||
HideEditor();
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ void PlaylistTabBar::CloseSlot() {
|
||||
|
||||
// Close the playlist. If the playlist is not a favorite playlist, it will be deleted, as it will not be visible after being closed.
|
||||
// Otherwise, the tab is closed but the playlist still exists and can be resurrected from the "Playlists" tab.
|
||||
emit Close(playlist_id);
|
||||
Q_EMIT Close(playlist_id);
|
||||
|
||||
// Select the nearest tab.
|
||||
if (menu_index_ > 1) {
|
||||
@@ -291,7 +291,7 @@ void PlaylistTabBar::SaveSlot() {
|
||||
|
||||
if (menu_index_ == -1) return;
|
||||
|
||||
emit Save(tabData(menu_index_).toInt());
|
||||
Q_EMIT Save(tabData(menu_index_).toInt());
|
||||
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ void PlaylistTabBar::set_text_by_id(const int id, const QString &text) {
|
||||
}
|
||||
|
||||
void PlaylistTabBar::CurrentIndexChanged(const int index) {
|
||||
if (!suppress_current_changed_) emit CurrentIdChanged(tabData(index).toInt());
|
||||
if (!suppress_current_changed_) Q_EMIT CurrentIdChanged(tabData(index).toInt());
|
||||
}
|
||||
|
||||
void PlaylistTabBar::InsertTab(const int id, const int index, const QString &text, const bool favorite) {
|
||||
@@ -363,7 +363,7 @@ void PlaylistTabBar::InsertTab(const int id, const int index, const QString &tex
|
||||
|
||||
// If we are still starting up, we don't need to do this, as the tab ordering after startup will be the same as was already in the db.
|
||||
if (initialized_) {
|
||||
if (currentIndex() == index) emit CurrentIdChanged(id);
|
||||
if (currentIndex() == index) Q_EMIT CurrentIdChanged(id);
|
||||
|
||||
// Update playlist tab order/visibility
|
||||
TabMoved();
|
||||
@@ -378,7 +378,7 @@ void PlaylistTabBar::TabMoved() {
|
||||
for (int i = 0; i < count(); ++i) {
|
||||
ids << tabData(i).toInt();
|
||||
}
|
||||
emit PlaylistOrderChanged(ids);
|
||||
Q_EMIT PlaylistOrderChanged(ids);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user