Replace emit with Q_EMIT
This commit is contained in:
@@ -263,7 +263,7 @@ void SmartPlaylistQueryWizardPlugin::RemoveSearchTerm() {
|
||||
void SmartPlaylistQueryWizardPlugin::UpdateTermPreview() {
|
||||
|
||||
SmartPlaylistSearch search = MakeSearch();
|
||||
emit search_page_->completeChanged();
|
||||
Q_EMIT search_page_->completeChanged();
|
||||
// When removing last term, update anyway the search
|
||||
if (!search.is_valid() && !search_page_->terms_.isEmpty()) return;
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ void SmartPlaylistSearchTermWidget::FieldChanged(int index) {
|
||||
ui_->value_text->setCompleter(nullptr);
|
||||
}
|
||||
|
||||
emit Changed();
|
||||
Q_EMIT Changed();
|
||||
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ void SmartPlaylistSearchTermWidget::OpChanged(int idx) {
|
||||
ui_->value_stack->setCurrentWidget(page);
|
||||
}
|
||||
|
||||
emit Changed();
|
||||
Q_EMIT Changed();
|
||||
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@ void SmartPlaylistSearchTermWidget::RelativeValueChanged() {
|
||||
QMessageBox::warning(this, QStringLiteral("Strawberry"), tr("The second value must be greater than the first one!"));
|
||||
}
|
||||
// Emit the signal in any case, so the Next button will be disabled
|
||||
emit Changed();
|
||||
Q_EMIT Changed();
|
||||
|
||||
}
|
||||
|
||||
@@ -502,9 +502,9 @@ void SmartPlaylistSearchTermWidget::Overlay::paintEvent(QPaintEvent*) {
|
||||
}
|
||||
|
||||
void SmartPlaylistSearchTermWidget::Overlay::mouseReleaseEvent(QMouseEvent*) {
|
||||
emit parent_->Clicked();
|
||||
Q_EMIT parent_->Clicked();
|
||||
}
|
||||
|
||||
void SmartPlaylistSearchTermWidget::Overlay::keyReleaseEvent(QKeyEvent *e) {
|
||||
if (e->key() == Qt::Key_Space) emit parent_->Clicked();
|
||||
if (e->key() == Qt::Key_Space) Q_EMIT parent_->Clicked();
|
||||
}
|
||||
|
||||
@@ -40,12 +40,12 @@ SmartPlaylistsView::SmartPlaylistsView(QWidget *_parent) : QListView(_parent) {
|
||||
SmartPlaylistsView::~SmartPlaylistsView() = default;
|
||||
|
||||
void SmartPlaylistsView::selectionChanged(const QItemSelection&, const QItemSelection&) {
|
||||
emit ItemsSelectedChanged();
|
||||
Q_EMIT ItemsSelectedChanged();
|
||||
}
|
||||
|
||||
void SmartPlaylistsView::contextMenuEvent(QContextMenuEvent *e) {
|
||||
|
||||
emit RightClicked(e->globalPos(), indexAt(e->pos()));
|
||||
Q_EMIT RightClicked(e->globalPos(), indexAt(e->pos()));
|
||||
e->accept();
|
||||
|
||||
}
|
||||
|
||||
@@ -146,13 +146,13 @@ void SmartPlaylistsViewContainer::ReplaceCurrentPlaylist() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->clear_first_ = true;
|
||||
}
|
||||
emit AddToPlaylist(q_mimedata);
|
||||
Q_EMIT AddToPlaylist(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
void SmartPlaylistsViewContainer::AppendToPlaylist() {
|
||||
|
||||
emit AddToPlaylist(ui_->view->model()->mimeData(ui_->view->selectionModel()->selectedIndexes()));
|
||||
Q_EMIT AddToPlaylist(ui_->view->model()->mimeData(ui_->view->selectionModel()->selectedIndexes()));
|
||||
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ void SmartPlaylistsViewContainer::OpenInNewPlaylist() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->open_in_new_playlist_ = true;
|
||||
}
|
||||
emit AddToPlaylist(q_mimedata);
|
||||
Q_EMIT AddToPlaylist(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ void SmartPlaylistsViewContainer::AddToPlaylistEnqueue() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->enqueue_now_ = true;
|
||||
}
|
||||
emit AddToPlaylist(q_mimedata);
|
||||
Q_EMIT AddToPlaylist(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ void SmartPlaylistsViewContainer::AddToPlaylistEnqueueNext() {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->enqueue_next_now_ = true;
|
||||
}
|
||||
emit AddToPlaylist(q_mimedata);
|
||||
Q_EMIT AddToPlaylist(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
@@ -275,6 +275,6 @@ void SmartPlaylistsViewContainer::ItemDoubleClicked(const QModelIndex &idx) {
|
||||
if (MimeData *mimedata = qobject_cast<MimeData*>(q_mimedata)) {
|
||||
mimedata->from_doubleclick_ = true;
|
||||
}
|
||||
emit AddToPlaylist(q_mimedata);
|
||||
Q_EMIT AddToPlaylist(q_mimedata);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user