Scribus
Open source desktop publishing at your fingertips
smcheckbox.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SMCHECKBOX_H
8 #define SMCHECKBOX_H
9 
10 #include <QCheckBox>
11 
12 class SMCheckBox : public QCheckBox
13 {
14  Q_OBJECT
15 public:
16  SMCheckBox(QWidget *parent);
17  ~SMCheckBox() {};
18 
19  void setChecked(bool);
20  void setChecked(bool val, bool isParentVal);
21 
22  void setParentValue(bool);
23 
24  bool useParentValue();
25 
26 private:
27  bool m_hasParent;
28  bool m_useParentValue;
29  bool m_pValue;
30  void setFont(bool wantBold);
31 
32 private slots:
33  void slotStateChanged(int);
34 };
35 
36 #endif
Definition: smcheckbox.h:12