Add missing Q_EMIT when emitting signals

This commit is contained in:
Aleix Pol 2021-05-13 18:46:06 +02:00
parent 5b5ef7f07e
commit d6e8148675
2 changed files with 3 additions and 3 deletions

View file

@ -57,10 +57,10 @@ Module::Module(QWidget *parent, const QVariantList &args) :
});
connect(ui->scriptSelector, &KPluginSelector::changed, this, [this](bool isChanged){
changed(isChanged || !m_pendingDeletions.isEmpty());
Q_EMIT changed(isChanged || !m_pendingDeletions.isEmpty());
});
connect(ui->scriptSelector, &KPluginSelector::defaulted, this, [this](bool isDefaulted){
defaulted(isDefaulted && m_pendingDeletions.isEmpty());
Q_EMIT defaulted(isDefaulted && m_pendingDeletions.isEmpty());
});
connect(this, &Module::defaultsIndicatorsVisibleChanged, ui->scriptSelector, &KPluginSelector::setDefaultsIndicatorsVisible);
connect(ui->importScriptButton, &QPushButton::clicked, this, &Module::importScript);

View file

@ -133,7 +133,7 @@ void WaylandBackend::lockRequest(bool persistent, QRect region)
qDebug() << "------ LOCKED! ------";
if(lockHint()) {
m_lockedPointer->setCursorPositionHint(QPointF(10., 10.));
forceSurfaceCommit();
Q_EMIT forceSurfaceCommit();
}
Q_EMIT lockChanged(true);