QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RFontChooserWidget.h
Go to the documentation of this file.
1
#ifndef _RFONTCHOOSERWIDGET_H_
2
#define _RFONTCHOOSERWIDGET_H_
3
4
#include <QComboBox>
5
#include <QFont>
6
#include <QFontComboBox>
7
8
class
QLabel;
9
13
class
RFontChooserWidget
:
public
QWidget {
14
15
Q_OBJECT
16
Q_PROPERTY(QString
label
READ
getLabel
WRITE
setLabel
);
17
Q_PROPERTY(QFont
font
READ
getFont
WRITE
setFont
);
18
19
public
:
20
RFontChooserWidget
(QWidget *parent = 0);
21
22
QFont
getFont
()
const
;
23
void
setFont
(
const
QFont&
font
);
24
int
getSize
()
const
;
25
void
setSize
(
int
size);
26
QString
getLabel
()
const
;
27
void
setLabel
(
const
QString& l);
28
29
signals:
30
void
valueChanged
(
const
QFont&
font
);
31
32
public
slots:
33
void
fontChanged
(
const
QFont&
font
);
34
void
sizeChanged
(
int
index);
35
36
protected
:
37
void
resizeEvent
(QResizeEvent* event);
38
39
private
:
40
void
updateSizeCombo
();
41
42
private
:
43
QFont
font
;
44
QComboBox*
cbSize
;
45
QFontComboBox*
cbFont
;
46
QLabel*
lbSampleText
;
47
QLabel*
lbLabel
;
48
};
49
50
Q_DECLARE_METATYPE
(
RFontChooserWidget
*)
51
52
#endif
src
gui
RFontChooserWidget.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1