KSane

ksanebutton.h
1/*
2 * SPDX-FileCopyrightText: 2008-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 KSANE_BUTTON_H
8#define KSANE_BUTTON_H
9
10#include "ksaneoptionwidget.h"
11
12// Qt includes
13#include <QPushButton>
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 * Create the checkbox.
33 *
34 * \param parent parent widget
35 * \param text is the text describing the checkbox.
36 */
37 KSaneButton(QWidget *parent, const QString &text);
39 ~KSaneButton() override;
40
42 void clicked(const QVariant &value);
43
44private:
45 void initButton(const QString &text);
46 QPushButton *m_button;
47};
48
49} // NameSpace KSaneIface
50
51#endif // KSANE_BUTTON_H
A wrapper for a checkbox.
Definition ksanebutton.h:27
KSaneButton(QWidget *parent, const QString &text)
Create the checkbox.
Base class for option widgets.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.