Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
4f484180
Commit
4f484180
authored
Nov 18, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
Add emit to signal calls
To signify they're emitting.
parent
22658bb2
Changes
6
Hide whitespace changes
Inline
Side-by-side
kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
View file @
4f484180
...
...
@@ -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
);
...
...
kcmkwin/kwindecoration/declarative-plugin/previewsettings.cpp
View file @
4f484180
...
...
@@ -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
);
...
...
kcmkwin/kwindesktop/desktopsmodel.cpp
View file @
4f484180
...
...
@@ -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
);
}
...
...
libkwineffects/kwineffectquickview.cpp
View file @
4f484180
...
...
@@ -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
]()
{
...
...
plugins/platforms/wayland/wayland_backend.cpp
View file @
4f484180
...
...
@@ -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
)
{
...
...
tabletmodemanager.cpp
View file @
4f484180
...
...
@@ -152,7 +152,7 @@ void KWin::TabletModeManager::setTabletModeAvailable(bool detecting)
{
if
(
m_detecting
!=
detecting
)
{
m_detecting
=
detecting
;
tabletModeAvailableChanged
(
detecting
);
emit
tabletModeAvailableChanged
(
detecting
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment