File: smradiobutton.h

package info (click to toggle)
scribus 1.4.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244,532 kB
  • sloc: cpp: 274,439; xml: 12,534; python: 3,448; ansic: 3,438; makefile: 1,201; perl: 95; sh: 41
file content (41 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// C++ Interface: smradiobutton
//
// Description: a clone of SMCheckBox
//
//
// Author: Pierre Marchand <pierremarc@oep-h.com>, (C) 2009
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef SMRADIOBUTTON_H
#define SMRADIOBUTTON_H

#include <QRadioButton>

class SMRadioButton : public QRadioButton
{
	public:
		SMRadioButton(QWidget *parent);
		~SMRadioButton() {};

		void setChecked(bool val);
		void setChecked(bool val, bool isParentVal);

		void setParentValue(bool);

		bool useParentValue();

	private:
		bool   hasParent_;
		bool   useParentValue_;
		bool   pValue_;
		void setFont(bool wantBold);

};


#endif //SMRADIOBUTTON_H