KSaneCore

internaloption.cpp
1/*
2 * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7
8#include "internaloption.h"
9#include "option_p.h"
10
11namespace KSaneCore
12{
13
14InternalOption::InternalOption(BaseOption *option, QObject *parent)
15 : Option(parent)
16{
17 d->option = option;
18 connect(d->option, &BaseOption::optionReloaded, this, &Option::optionReloaded);
19 connect(d->option, &BaseOption::valueChanged, this, &Option::valueChanged);
20 connect(d->option, &BaseOption::destroyed, this, [=]() {
21 d->option = nullptr;
22 });
23}
24
25} // namespace KSaneCore
26
27#include "moc_internaloption.cpp"
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.