KSane

labeledcheckbox.h
1/*
2 * SPDX-FileCopyrightText: 2007-2011 Kare Sars <kare.sars@iki .fi>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#ifndef LABELED_CHECKBOX_H
8#define LABELED_CHECKBOX_H
9
10#include "ksaneoptionwidget.h"
11
12// Qt includes
13#include <QCheckBox>
14#include <QGridLayout>
15
16namespace KSaneIface
17{
18
19/**
20 *@author Kåre Särs
21 */
22
23/**
24 * A wrapper for a checkbox
25 */
27{
29
30public:
31
32 /**
33 * Create the checkbox.
34 *
35 * \param parent parent widget
36 * \param text is the text describing the checkbox.
37 */
39
41 ~LabeledCheckbox() override;
42 void setChecked(bool);
43 bool isChecked();
44
46 void toggled(bool);
47
48public Q_SLOTS:
49 void setValue(const QVariant &value);
50
51protected:
52 void initCheckBox(const QString &name);
53
54private:
55
56 QCheckBox *chbx;
57};
58
59} // NameSpace KSaneIface
60
61#endif // LABELED_CHECKBOX_H
Base class for option widgets.
A wrapper for a checkbox.
LabeledCheckbox(QWidget *parent, const QString &text)
Create the checkbox.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.