libyui-qt
Loading...
Searching...
No Matches
YQRadioButton.h
1/*
2 Copyright (C) 2000-2012 Novell, Inc
3 This library is free software; you can redistribute it and/or modify
4 it under the terms of the GNU Lesser General Public License as
5 published by the Free Software Foundation; either version 2.1 of the
6 License, or (at your option) version 3.0 of the License. This library
7 is distributed in the hope that it will be useful, but WITHOUT ANY
8 WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10 License for more details. You should have received a copy of the GNU
11 Lesser General Public License along with this library; if not, write
12 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13 Floor, Boston, MA 02110-1301 USA
14*/
15
16
17/*-/
18
19 File: YQRadioButton.h
20
21 Author: Stefan Hundhammer <shundhammer@suse.de>
22
23/-*/
24
25
26#ifndef YQRadioButton_h
27#define YQRadioButton_h
28
29#include <yui/YRadioButton.h>
30#include <QRadioButton>
31
32using std::string;
33
34
35class YQRadioButton : public QRadioButton, public YRadioButton
36{
37 Q_OBJECT
38
39public:
43 YQRadioButton( YWidget * parent,
44 const std::string & label,
45 bool checked );
46
52 virtual bool value();
53
59 virtual void setValue( bool checked );
60
66 virtual void setLabel( const std::string & label );
67
73 virtual void setUseBoldFont( bool bold = true );
74
80 virtual void setEnabled( bool enabled );
81
87 virtual int preferredWidth();
88
94 virtual int preferredHeight();
95
101 virtual void setSize( int newWidth, int newHeight );
102
108 virtual bool setKeyboardFocus();
109
110protected slots:
114 void changed( bool newState );
115
119 bool eventFilter( QObject * obj, QEvent * event );
120
121};
122
123#endif // YQRadioButton_h
Definition YQRadioButton.h:36
virtual void setValue(bool checked)
Definition YQRadioButton.cc:110
virtual void setUseBoldFont(bool bold=true)
Definition YQRadioButton.cc:76
virtual void setEnabled(bool enabled)
Definition YQRadioButton.cc:134
virtual int preferredWidth()
Definition YQRadioButton.cc:86
void changed(bool newState)
Definition YQRadioButton.cc:149
virtual void setSize(int newWidth, int newHeight)
Definition YQRadioButton.cc:98
YQRadioButton(YWidget *parent, const std::string &label, bool checked)
Definition YQRadioButton.cc:52
bool eventFilter(QObject *obj, QEvent *event)
Definition YQRadioButton.cc:170
virtual void setLabel(const std::string &label)
Definition YQRadioButton.cc:127
virtual bool value()
Definition YQRadioButton.cc:104
virtual int preferredHeight()
Definition YQRadioButton.cc:92
virtual bool setKeyboardFocus()
Definition YQRadioButton.cc:141