Debian Codegraph @

plugins/platforms/wayland/waylandcolormanagement/KisWaylandAPIOutput.cpp

raw symbols SCIP
1 /*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <[email protected]>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #include "KisWaylandAPIOutput.h"
8
9 #include "KisWaylandAPIImageDescription.h"
10
11 KisWaylandAPIOutput::KisWaylandAPIOutput(::wp_color_management_output_v1 *obj)
12 : QtWayland::wp_color_management_output_v1(obj)
13 {
14 wp_color_management_output_v1_image_description_changed();
15 }
16
17 KisWaylandAPIOutput::~KisWaylandAPIOutput()
18 {
19 wp_color_management_output_v1_destroy(object());
20 }
21
22 void KisWaylandAPIOutput::wp_color_management_output_v1_image_description_changed()
23 {
24 m_imageDescription = std::make_unique<KisWaylandAPIImageDescription>(get_image_description());
25 connect(m_imageDescription.get(), &KisWaylandAPIImageDescription::done, this, &KisWaylandAPIOutput::outputImageDescriptionChanged);
26 }
27
28 #include "moc_KisWaylandAPIOutput.cpp"