UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_title_inline.hpp
1 /* zq_title_inline.hpp */
2 /* $Id: zq_title_inline.hpp,v 1.5 2006/06/05 10:39:25 guser4 Exp $ */
3 #ifndef __zq_title_inline_hpp
4 #define __zq_title_inline_hpp
5 
6 /* DON'T INCLUDE IN APPLICATION SOURCES */
7 
8 #ifdef __zq_title_hpp
9 #define INLINE inline
10 #else
11 #define INLINE
12 #endif /* __zq_title_hpp */
13 
14 
15 /*
16  * Properties
17  */
18 
23 INLINE void
24 ZqTitle::setPen (const QPen& pen)
25 {
26  m_qPen = pen;
27 }
28 
29 
34 INLINE const QPen&
36 {
37  return m_qPen;
38 }
39 
40 
45 INLINE QPen&
47 {
48  return m_qPen;
49 }
50 
51 
56 INLINE void
57 ZqTitle::setFont (const QFont& font)
58 {
59  m_qFont = font;
60 }
61 
62 
67 INLINE const QFont&
69 {
70  return m_qFont;
71 }
72 
73 
78 INLINE QFont&
80 {
81  return m_qFont;
82 }
83 
84 
89 INLINE void
90 ZqTitle::setText (const QString& text)
91 {
92  m_qText = text;
93 }
94 
95 
100 INLINE const QString&
102 {
103  return m_qText;
104 }
105 
106 
111 INLINE QString&
113 {
114  return m_qText;
115 }
116 
117 
122 INLINE void
124 {
125  m_eTextAlign = align;
126 }
127 
128 
133 INLINE ZqTitle::Alignment
135 {
136  return m_eTextAlign;
137 }
138 
139 
144 INLINE void
146 {
147  m_bFitHeight = bFit;
148 }
149 
150 
155 INLINE void
157 {
158  m_bFitWidth = bFit;
159 }
160 
161 
162 #undef INLINE
163 
164 #endif /* zq_title_inline.hpp */
Alignment
Definition: zq_title.hpp:25
QString m_qText
Definition: zq_title.hpp:118
QFont m_qFont
Definition: zq_title.hpp:115
virtual QFont & font()
Definition: zq_title_inline.hpp:79
virtual const QString & getText() const
Definition: zq_title_inline.hpp:101
virtual void setText(const QString &text)
Definition: zq_title_inline.hpp:90
virtual void fitTextWidth(bool bFit=true)
Definition: zq_title_inline.hpp:156
QPen m_qPen
Definition: zq_title.hpp:112
bool m_bFitHeight
Definition: zq_title.hpp:125
virtual const QPen & getPen() const
Definition: zq_title_inline.hpp:35
virtual void setAlignment(Alignment align)
Definition: zq_title_inline.hpp:123
bool m_bFitWidth
Definition: zq_title.hpp:129
Alignment m_eTextAlign
Definition: zq_title.hpp:121
virtual Alignment getAlignment() const
Definition: zq_title_inline.hpp:134
virtual void setFont(const QFont &font)
Definition: zq_title_inline.hpp:57
virtual void fitTextHeight(bool bFit=true)
Definition: zq_title_inline.hpp:145
virtual void setPen(const QPen &pen)
Definition: zq_title_inline.hpp:24
virtual QPen & pen()
Definition: zq_title_inline.hpp:46
virtual const QFont & getFont() const
Definition: zq_title_inline.hpp:68
virtual QString & text()
Definition: zq_title_inline.hpp:112