Add emit to signal calls
To signify they're emitting.
This commit is contained in:
parent
22658bb2b4
commit
4f484180cd
6 changed files with 8 additions and 8 deletions
|
@ -91,7 +91,7 @@ PreviewClient::PreviewClient(DecoratedClient *c, Decoration *decoration)
|
|||
emit paletteChanged(m_palette.palette());
|
||||
});
|
||||
auto emitEdgesChanged = [this, c]() {
|
||||
c->adjacentScreenEdgesChanged(adjacentScreenEdges());
|
||||
emit c->adjacentScreenEdgesChanged(adjacentScreenEdges());
|
||||
};
|
||||
connect(this, &PreviewClient::bordersTopEdgeChanged, this, emitEdgesChanged);
|
||||
connect(this, &PreviewClient::bordersLeftEdgeChanged, this, emitEdgesChanged);
|
||||
|
|
|
@ -88,10 +88,10 @@ PreviewSettings::PreviewSettings(DecorationSettings *parent)
|
|||
connect(this, &PreviewSettings::closeOnDoubleClickOnMenuChanged, parent, &DecorationSettings::closeOnDoubleClickOnMenuChanged);
|
||||
connect(this, &PreviewSettings::fontChanged, parent, &DecorationSettings::fontChanged);
|
||||
auto updateLeft = [this, parent]() {
|
||||
parent->decorationButtonsLeftChanged(decorationButtonsLeft());
|
||||
emit parent->decorationButtonsLeftChanged(decorationButtonsLeft());
|
||||
};
|
||||
auto updateRight = [this, parent]() {
|
||||
parent->decorationButtonsRightChanged(decorationButtonsRight());
|
||||
emit parent->decorationButtonsRightChanged(decorationButtonsRight());
|
||||
};
|
||||
connect(m_leftButtons, &QAbstractItemModel::rowsRemoved, this, updateLeft);
|
||||
connect(m_leftButtons, &QAbstractItemModel::rowsMoved, this, updateLeft);
|
||||
|
|
|
@ -222,7 +222,7 @@ void DesktopsModel::setDesktopName(const QString &id, const QString &name)
|
|||
|
||||
const QModelIndex &idx = index(m_desktops.indexOf(id), 0);
|
||||
|
||||
dataChanged(idx, idx, QVector<int>{Qt::DisplayRole});
|
||||
emit dataChanged(idx, idx, QVector<int>{Qt::DisplayRole});
|
||||
|
||||
updateModifiedState();
|
||||
}
|
||||
|
@ -573,7 +573,7 @@ void DesktopsModel::desktopDataChanged(const QString &id, const KWin::DBusDeskto
|
|||
|
||||
const QModelIndex &idx = index(desktopIndex, 0);
|
||||
|
||||
dataChanged(idx, idx, QVector<int>{Qt::DisplayRole});
|
||||
emit dataChanged(idx, idx, QVector<int>{Qt::DisplayRole});
|
||||
} else {
|
||||
updateModifiedState(/* server */ true);
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ void EffectQuickView::setVisible(bool visible)
|
|||
d->m_visible = visible;
|
||||
|
||||
if (visible){
|
||||
d->m_renderControl->renderRequested();
|
||||
emit d->m_renderControl->renderRequested();
|
||||
} else {
|
||||
// deferred to not change GL context
|
||||
QTimer::singleShot(0, this, [this]() {
|
||||
|
|
|
@ -562,7 +562,7 @@ void WaylandBackend::init()
|
|||
}
|
||||
m_waylandCursor->installImage();
|
||||
auto c = Cursors::self()->currentCursor();
|
||||
c->rendered(c->geometry());
|
||||
emit c->rendered(c->geometry());
|
||||
}
|
||||
);
|
||||
connect(this, &WaylandBackend::pointerLockChanged, this, [this] (bool locked) {
|
||||
|
|
|
@ -152,7 +152,7 @@ void KWin::TabletModeManager::setTabletModeAvailable(bool detecting)
|
|||
{
|
||||
if (m_detecting != detecting) {
|
||||
m_detecting = detecting;
|
||||
tabletModeAvailableChanged(detecting);
|
||||
emit tabletModeAvailableChanged(detecting);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue