• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libksane/libksane

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libksane
  • libksane
  • widgets
ksane_button.cpp
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is part of the KDE project
4  *
5  * Copyright (C) 2008-2011 by Kare Sars <kare.sars@iki.fi>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) version 3, or any
11  * later version accepted by the membership of KDE e.V. (or its
12  * successor approved by the membership of KDE e.V.), which shall
13  * act as a proxy defined in Section 6 of version 3 of the license.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * ============================================================ */
24 
25 // Local includes
26 #include "ksane_button.h"
27 #include "ksane_button.moc"
28 
29 // Qt includes
30 #include <KDebug>
31 
32 namespace KSaneIface
33 {
34 
35 KSaneButton::KSaneButton(QWidget *parent, const QString& ltext)
36 : KSaneOptionWidget(parent, QString())
37 {
38  m_button = new QPushButton(ltext, this);
39  m_layout->addWidget(m_button, 0, 1);
40  m_layout->addWidget(new QWidget(this), 0, 2);
41  m_layout->setColumnStretch(1, 0);
42  m_layout->setColumnStretch(2, 50);
43 
44  connect(m_button, SIGNAL(clicked(bool)), this, SIGNAL(clicked()));
45 }
46 
47 KSaneButton::~KSaneButton()
48 {
49 }
50 
51 } // NameSpace KSaneIface
QWidget
QGridLayout::addWidget
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
KSaneIface::KSaneButton::clicked
void clicked()
ksane_button.h
KSaneIface::KSaneOptionWidget::m_layout
QGridLayout * m_layout
Definition: ksane_option_widget.h:65
KSaneIface::KSaneOptionWidget
A wrapper for a checkbox.
Definition: ksane_option_widget.h:45
QString
KSaneIface::KSaneButton::~KSaneButton
~KSaneButton()
Definition: ksane_button.cpp:47
QGridLayout::setColumnStretch
void setColumnStretch(int column, int stretch)
QWidget::QWidget
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
KSaneIface::KSaneButton::KSaneButton
KSaneButton(QWidget *parent, const QString &text)
Create the checkbox.
Definition: ksane_button.cpp:35
QPushButton
QObject::connect
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libksane/libksane

Skip menu "libs/libksane/libksane"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal