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
1f83657c
Commit
1f83657c
authored
Mar 16, 2021
by
Vlad Zahorodnii
Browse files
Remove unused signals
parent
8fc6cb85
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/xdgforeign_v2_interface.cpp
View file @
1f83657c
...
...
@@ -103,7 +103,6 @@ void XdgExporterV2InterfacePrivate::zxdg_exporter_v2_export_toplevel(Resource *r
QObject
::
connect
(
xdgExported
,
&
XdgExportedV2Interface
::
destroyed
,
q
,
[
this
,
handle
]()
{
exportedSurfaces
.
remove
(
handle
);
emit
q
->
surfaceUnexported
(
handle
);
});
//if the surface dies before this, this dies too
...
...
@@ -113,12 +112,10 @@ void XdgExporterV2InterfacePrivate::zxdg_exporter_v2_export_toplevel(Resource *r
xdgExported
->
deleteLater
();
}
exportedSurfaces
.
remove
(
handle
);
emit
q
->
surfaceUnexported
(
handle
);
});
exportedSurfaces
[
handle
]
=
xdgExported
;
zxdg_exported_v2_send_handle
(
XdgExported_resource
,
handle
.
toUtf8
().
constData
());
emit
q
->
surfaceExported
(
handle
,
xdgExported
);
}
XdgExporterV2InterfacePrivate
::
XdgExporterV2InterfacePrivate
(
XdgExporterV2Interface
*
_q
,
Display
*
display
,
XdgForeignV2Interface
*
foreignInterface
)
...
...
@@ -211,7 +208,6 @@ void XdgImporterV2InterfacePrivate::zxdg_importer_v2_import_toplevel(Resource *r
XdgImported
->
deleteLater
();
}
importedSurfaces
.
remove
(
handle
);
emit
q
->
surfaceUnimported
(
handle
);
});
QObject
::
connect
(
XdgImported
,
&
XdgImportedV2Interface
::
childChanged
,
...
...
@@ -245,7 +241,6 @@ void XdgImporterV2InterfacePrivate::zxdg_importer_v2_import_toplevel(Resource *r
QObject
::
connect
(
XdgImported
,
&
XdgImportedV2Interface
::
destroyed
,
q
,
[
this
,
handle
,
XdgImported
]()
{
importedSurfaces
.
remove
(
handle
);
emit
q
->
surfaceUnimported
(
handle
);
auto
it
=
children
.
find
(
XdgImported
);
if
(
it
!=
children
.
end
())
{
...
...
@@ -257,7 +252,6 @@ void XdgImporterV2InterfacePrivate::zxdg_importer_v2_import_toplevel(Resource *r
});
importedSurfaces
[
handle
]
=
XdgImported
;
emit
q
->
surfaceImported
(
handle
,
XdgImported
);
}
XdgImporterV2InterfacePrivate
::
XdgImporterV2InterfacePrivate
(
XdgImporterV2Interface
*
_q
,
Display
*
display
,
XdgForeignV2Interface
*
foreignInterface
)
...
...
src/wayland/xdgforeign_v2_interface_p.h
View file @
1f83657c
...
...
@@ -40,10 +40,6 @@ public:
XdgExportedV2Interface
*
exportedSurface
(
const
QString
&
handle
);
Q_SIGNALS:
void
surfaceExported
(
const
QString
&
handle
,
XdgExportedV2Interface
*
exported
);
void
surfaceUnexported
(
const
QString
&
handle
);
private:
QScopedPointer
<
XdgExporterV2InterfacePrivate
>
d
;
};
...
...
@@ -59,8 +55,6 @@ public:
SurfaceInterface
*
transientFor
(
SurfaceInterface
*
surface
);
Q_SIGNALS:
void
surfaceImported
(
const
QString
&
handle
,
XdgImportedV2Interface
*
imported
);
void
surfaceUnimported
(
const
QString
&
handle
);
void
transientChanged
(
KWaylandServer
::
SurfaceInterface
*
child
,
KWaylandServer
::
SurfaceInterface
*
parent
);
private:
...
...
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