1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qpalette.cpp:512 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QPalette Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QPalette Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QPalette class contains color groups for each widget state.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qpalette-h.html">qpalette.h</a>></tt>
|
---|
37 | <p><a href="qpalette-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn><a href="#QPalette"><b>QPalette</b></a> ()</li>
|
---|
41 | <li class=fn>QPalette ( const QColor & button ) <em>(obsolete)</em></li>
|
---|
42 | <li class=fn><a href="#QPalette-3"><b>QPalette</b></a> ( const QColor & button, const QColor & background )</li>
|
---|
43 | <li class=fn><a href="#QPalette-4"><b>QPalette</b></a> ( const QColorGroup & active, const QColorGroup & disabled, const QColorGroup & inactive )</li>
|
---|
44 | <li class=fn><a href="#QPalette-5"><b>QPalette</b></a> ( const QPalette & p )</li>
|
---|
45 | <li class=fn><a href="#~QPalette"><b>~QPalette</b></a> ()</li>
|
---|
46 | <li class=fn>QPalette & <a href="#operator-eq"><b>operator=</b></a> ( const QPalette & p )</li>
|
---|
47 | <li class=fn>enum <a href="#ColorGroup-enum"><b>ColorGroup</b></a> { Disabled, Active, Inactive, NColorGroups, Normal = Active }</li>
|
---|
48 | <li class=fn>const QColor & <a href="#color"><b>color</b></a> ( ColorGroup gr, QColorGroup::ColorRole r ) const</li>
|
---|
49 | <li class=fn>const QBrush & <a href="#brush"><b>brush</b></a> ( ColorGroup gr, QColorGroup::ColorRole r ) const</li>
|
---|
50 | <li class=fn>void <a href="#setColor"><b>setColor</b></a> ( ColorGroup gr, QColorGroup::ColorRole r, const QColor & c )</li>
|
---|
51 | <li class=fn>void <a href="#setBrush"><b>setBrush</b></a> ( ColorGroup gr, QColorGroup::ColorRole r, const QBrush & b )</li>
|
---|
52 | <li class=fn>void <a href="#setColor-2"><b>setColor</b></a> ( QColorGroup::ColorRole r, const QColor & c )</li>
|
---|
53 | <li class=fn>void <a href="#setBrush-2"><b>setBrush</b></a> ( QColorGroup::ColorRole r, const QBrush & b )</li>
|
---|
54 | <li class=fn>QPalette <a href="#copy"><b>copy</b></a> () const</li>
|
---|
55 | <li class=fn>const QColorGroup & <a href="#active"><b>active</b></a> () const</li>
|
---|
56 | <li class=fn>const QColorGroup & <a href="#disabled"><b>disabled</b></a> () const</li>
|
---|
57 | <li class=fn>const QColorGroup & <a href="#inactive"><b>inactive</b></a> () const</li>
|
---|
58 | <li class=fn>const QColorGroup & normal () const <em>(obsolete)</em></li>
|
---|
59 | <li class=fn>void <a href="#setActive"><b>setActive</b></a> ( const QColorGroup & g )</li>
|
---|
60 | <li class=fn>void <a href="#setDisabled"><b>setDisabled</b></a> ( const QColorGroup & g )</li>
|
---|
61 | <li class=fn>void <a href="#setInactive"><b>setInactive</b></a> ( const QColorGroup & g )</li>
|
---|
62 | <li class=fn>void setNormal ( const QColorGroup & cg ) <em>(obsolete)</em></li>
|
---|
63 | <li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const QPalette & p ) const</li>
|
---|
64 | <li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const QPalette & p ) const</li>
|
---|
65 | <li class=fn>bool <a href="#isCopyOf"><b>isCopyOf</b></a> ( const QPalette & p )</li>
|
---|
66 | <li class=fn>int <a href="#serialNumber"><b>serialNumber</b></a> () const</li>
|
---|
67 | </ul>
|
---|
68 | <h2>Related Functions</h2>
|
---|
69 | <ul>
|
---|
70 | <li class=fn>QDataStream & <a href="#operator-lt-lt"><b>operator<<</b></a> ( QDataStream & s, const QPalette & p )</li>
|
---|
71 | <li class=fn>QDataStream & <a href="#operator-gt-gt"><b>operator>></b></a> ( QDataStream & s, QPalette & p )</li>
|
---|
72 | </ul>
|
---|
73 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
74 |
|
---|
75 |
|
---|
76 | <p> The QPalette class contains color groups for each widget state.
|
---|
77 | <p>
|
---|
78 |
|
---|
79 |
|
---|
80 |
|
---|
81 |
|
---|
82 | <p> A palette consists of three color groups: <em>active</em>, <em>disabled</em>,
|
---|
83 | and <em>inactive</em>. All widgets contain a palette, and all widgets in
|
---|
84 | Qt use their palette to draw themselves. This makes the user
|
---|
85 | interface easily configurable and easier to keep consistent.
|
---|
86 | <p> If you create a new widget we strongly recommend that you use the
|
---|
87 | colors in the palette rather than hard-coding specific colors.
|
---|
88 | <p> The color groups:
|
---|
89 | <ul>
|
---|
90 | <li> The <a href="#active">active</a>() group is used for the window that has <a href="focus.html#keyboard-focus">keyboard focus</a>.
|
---|
91 | <li> The <a href="#inactive">inactive</a>() group is used for other windows.
|
---|
92 | <li> The <a href="#disabled">disabled</a>() group is used for widgets (not windows) that are
|
---|
93 | disabled for some reason.
|
---|
94 | </ul>
|
---|
95 | <p> Both active and inactive windows can contain disabled widgets.
|
---|
96 | (Disabled widgets are often called <em>inaccessible</em> or <em>grayed out</em>.)
|
---|
97 | <p> In <a href="motif-extension.html#Motif">Motif</a> style, active() and inactive() look the same. In Windows
|
---|
98 | 2000 style and Macintosh Platinum style, the two styles look
|
---|
99 | slightly different.
|
---|
100 | <p> There are <a href="#setActive">setActive</a>(), <a href="#setInactive">setInactive</a>(), and <a href="#setDisabled">setDisabled</a>() functions
|
---|
101 | to modify the palette. (Qt also supports a <a href="#normal">normal</a>() group; this is
|
---|
102 | an obsolete alias for active(), supported for backwards
|
---|
103 | compatibility.)
|
---|
104 | <p> Colors and brushes can be set for particular roles in any of a
|
---|
105 | palette's color groups with <a href="#setColor">setColor</a>() and <a href="#setBrush">setBrush</a>().
|
---|
106 | <p> You can copy a palette using the copy constructor and test to see
|
---|
107 | if two palettes are <em>identical</em> using <a href="#isCopyOf">isCopyOf</a>().
|
---|
108 | <p> <p>See also <a href="qapplication.html#setPalette">QApplication::setPalette</a>(), <a href="qwidget.html#palette-prop">QWidget::palette</a>, <a href="qcolorgroup.html">QColorGroup</a>, <a href="qcolor.html">QColor</a>, <a href="appearance.html">Widget Appearance and Style</a>, <a href="graphics.html">Graphics Classes</a>, <a href="images.html">Image Processing Classes</a>, and <a href="shared.html">Implicitly and Explicitly Shared Classes</a>.
|
---|
109 |
|
---|
110 | <hr><h2>Member Type Documentation</h2>
|
---|
111 | <h3 class=fn><a name="ColorGroup-enum"></a>QPalette::ColorGroup</h3>
|
---|
112 |
|
---|
113 | <ul>
|
---|
114 | <li><tt>QPalette::Disabled</tt>
|
---|
115 | <li><tt>QPalette::Active</tt>
|
---|
116 | <li><tt>QPalette::Inactive</tt>
|
---|
117 | <li><tt>QPalette::NColorGroups</tt>
|
---|
118 | <li><tt>QPalette::Normal</tt> - synonym for Active
|
---|
119 | </ul>
|
---|
120 | <hr><h2>Member Function Documentation</h2>
|
---|
121 | <h3 class=fn><a name="QPalette"></a>QPalette::QPalette ()
|
---|
122 | </h3>
|
---|
123 | Constructs a palette that consists of color groups with only black
|
---|
124 | colors.
|
---|
125 |
|
---|
126 | <h3 class=fn><a name="QPalette-2"></a>QPalette::QPalette ( const <a href="qcolor.html">QColor</a> & button )
|
---|
127 | </h3><b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
128 | <p> Constructs a palette from the <em>button</em> color. The other colors are
|
---|
129 | automatically calculated, based on this color. Background will be
|
---|
130 | the button color as well.
|
---|
131 |
|
---|
132 | <h3 class=fn><a name="QPalette-3"></a>QPalette::QPalette ( const <a href="qcolor.html">QColor</a> & button, const <a href="qcolor.html">QColor</a> & background )
|
---|
133 | </h3>
|
---|
134 | Constructs a palette from a <em>button</em> color and a <em>background</em>.
|
---|
135 | The other colors are automatically calculated, based on these
|
---|
136 | colors.
|
---|
137 |
|
---|
138 | <h3 class=fn><a name="QPalette-4"></a>QPalette::QPalette ( const <a href="qcolorgroup.html">QColorGroup</a> & active, const <a href="qcolorgroup.html">QColorGroup</a> & disabled, const <a href="qcolorgroup.html">QColorGroup</a> & inactive )
|
---|
139 | </h3>
|
---|
140 | Constructs a palette that consists of the three color groups <em>active</em>, <em>disabled</em> and <em>inactive</em>. See the <a href="#details">Detailed Description</a> for definitions of the color groups
|
---|
141 | and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> for definitions of each color role
|
---|
142 | in the three groups.
|
---|
143 | <p> <p>See also <a href="qcolorgroup.html">QColorGroup</a> and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
144 |
|
---|
145 | <h3 class=fn><a name="QPalette-5"></a>QPalette::QPalette ( const <a href="qpalette.html">QPalette</a> & p )
|
---|
146 | </h3>
|
---|
147 | Constructs a copy of <em>p</em>.
|
---|
148 | <p> This constructor is fast (it uses copy-on-write).
|
---|
149 |
|
---|
150 | <h3 class=fn><a name="~QPalette"></a>QPalette::~QPalette ()
|
---|
151 | </h3>
|
---|
152 | Destroys the palette.
|
---|
153 |
|
---|
154 | <h3 class=fn>const <a href="qcolorgroup.html">QColorGroup</a> & <a name="active"></a>QPalette::active () const
|
---|
155 | </h3>
|
---|
156 |
|
---|
157 | <p> Returns the active color group of this palette.
|
---|
158 | <p> <p>See also <a href="qcolorgroup.html">QColorGroup</a>, <a href="#setActive">setActive</a>(), <a href="#inactive">inactive</a>(), and <a href="#disabled">disabled</a>().
|
---|
159 |
|
---|
160 | <p>Examples: <a href="themes-example.html#x290">themes/metal.cpp</a> and <a href="themes-example.html#x224">themes/wood.cpp</a>.
|
---|
161 | <h3 class=fn>const <a href="qbrush.html">QBrush</a> & <a name="brush"></a>QPalette::brush ( <a href="qpalette.html#ColorGroup-enum">ColorGroup</a> gr, <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r ) const
|
---|
162 | </h3>
|
---|
163 | Returns the brush in color group <em>gr</em>, used for color role <em>r</em>.
|
---|
164 | <p> <p>See also <a href="#color">color</a>(), <a href="#setBrush">setBrush</a>(), and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
165 |
|
---|
166 | <h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="color"></a>QPalette::color ( <a href="qpalette.html#ColorGroup-enum">ColorGroup</a> gr, <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r ) const
|
---|
167 | </h3>
|
---|
168 | Returns the color in color group <em>gr</em>, used for color role <em>r</em>.
|
---|
169 | <p> <p>See also <a href="#brush">brush</a>(), <a href="#setColor">setColor</a>(), and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
170 |
|
---|
171 | <h3 class=fn><a href="qpalette.html">QPalette</a> <a name="copy"></a>QPalette::copy () const
|
---|
172 | </h3>
|
---|
173 | Returns a <a href="shclass.html#deep-copy">deep copy</a> of this palette.
|
---|
174 | <p> <b>Warning:</b> This is slower than the copy constructor and assignment
|
---|
175 | operator and offers no benefits.
|
---|
176 |
|
---|
177 | <h3 class=fn>const <a href="qcolorgroup.html">QColorGroup</a> & <a name="disabled"></a>QPalette::disabled () const
|
---|
178 | </h3>
|
---|
179 |
|
---|
180 | <p> Returns the disabled color group of this palette.
|
---|
181 | <p> <p>See also <a href="qcolorgroup.html">QColorGroup</a>, <a href="#setDisabled">setDisabled</a>(), <a href="#active">active</a>(), and <a href="#inactive">inactive</a>().
|
---|
182 |
|
---|
183 | <p>Examples: <a href="themes-example.html#x291">themes/metal.cpp</a> and <a href="themes-example.html#x225">themes/wood.cpp</a>.
|
---|
184 | <h3 class=fn>const <a href="qcolorgroup.html">QColorGroup</a> & <a name="inactive"></a>QPalette::inactive () const
|
---|
185 | </h3>
|
---|
186 |
|
---|
187 | <p> Returns the inactive color group of this palette.
|
---|
188 | <p> <p>See also <a href="qcolorgroup.html">QColorGroup</a>, <a href="#setInactive">setInactive</a>(), <a href="#active">active</a>(), and <a href="#disabled">disabled</a>().
|
---|
189 |
|
---|
190 | <h3 class=fn>bool <a name="isCopyOf"></a>QPalette::isCopyOf ( const <a href="qpalette.html">QPalette</a> & p )
|
---|
191 | </h3>
|
---|
192 | Returns TRUE if this palette and <em>p</em> are copies of each other,
|
---|
193 | i.e. one of them was created as a copy of the other and neither
|
---|
194 | was subsequently modified; otherwise returns FALSE. This is much
|
---|
195 | stricter than equality.
|
---|
196 | <p> <p>See also <a href="#operator-eq">operator=</a>() and <a href="#operator-eq-eq">operator==</a>().
|
---|
197 |
|
---|
198 | <h3 class=fn>const <a href="qcolorgroup.html">QColorGroup</a> & <a name="normal"></a>QPalette::normal () const
|
---|
199 | </h3>
|
---|
200 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
201 | <p>
|
---|
202 | <p> Returns the active color group. Use <a href="#active">active</a>() instead.
|
---|
203 | <p> <p>See also <a href="#setActive">setActive</a>() and <a href="#active">active</a>().
|
---|
204 |
|
---|
205 | <h3 class=fn>bool <a name="operator!-eq"></a>QPalette::operator!= ( const <a href="qpalette.html">QPalette</a> & p ) const
|
---|
206 | </h3>
|
---|
207 |
|
---|
208 | <p> Returns TRUE (slowly) if this palette is different from <em>p</em>;
|
---|
209 | otherwise returns FALSE (usually quickly).
|
---|
210 |
|
---|
211 | <h3 class=fn><a href="qpalette.html">QPalette</a> & <a name="operator-eq"></a>QPalette::operator= ( const <a href="qpalette.html">QPalette</a> & p )
|
---|
212 | </h3>
|
---|
213 | Assigns <em>p</em> to this palette and returns a reference to this
|
---|
214 | palette.
|
---|
215 | <p> This is fast (it uses copy-on-write).
|
---|
216 | <p> <p>See also <a href="#copy">copy</a>().
|
---|
217 |
|
---|
218 | <h3 class=fn>bool <a name="operator-eq-eq"></a>QPalette::operator== ( const <a href="qpalette.html">QPalette</a> & p ) const
|
---|
219 | </h3>
|
---|
220 | Returns TRUE (usually quickly) if this palette is equal to <em>p</em>;
|
---|
221 | otherwise returns FALSE (slowly).
|
---|
222 |
|
---|
223 | <h3 class=fn>int <a name="serialNumber"></a>QPalette::serialNumber () const
|
---|
224 | </h3>
|
---|
225 |
|
---|
226 | <p> Returns a number that uniquely identifies this QPalette object.
|
---|
227 | The serial number is intended for caching. Its value may not be
|
---|
228 | used for anything other than equality testing.
|
---|
229 | <p> Note that QPalette uses copy-on-write, and the serial number
|
---|
230 | changes during the lazy copy operation (detach()), not during a
|
---|
231 | <a href="shclass.html#shallow-copy">shallow copy</a> (copy constructor or assignment).
|
---|
232 | <p> <p>See also <a href="qpixmap.html">QPixmap</a>, <a href="qpixmapcache.html">QPixmapCache</a>, and <a href="qcache.html">QCache</a>.
|
---|
233 |
|
---|
234 | <h3 class=fn>void <a name="setActive"></a>QPalette::setActive ( const <a href="qcolorgroup.html">QColorGroup</a> & g )
|
---|
235 | </h3>
|
---|
236 | Sets the <a href="#ColorGroup-enum">Active</a> color group to <em>g</em>.
|
---|
237 | <p> <p>See also <a href="#active">active</a>(), <a href="#setDisabled">setDisabled</a>(), <a href="#setInactive">setInactive</a>(), and <a href="qcolorgroup.html">QColorGroup</a>.
|
---|
238 |
|
---|
239 | <h3 class=fn>void <a name="setBrush"></a>QPalette::setBrush ( <a href="qpalette.html#ColorGroup-enum">ColorGroup</a> gr, <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r, const <a href="qbrush.html">QBrush</a> & b )
|
---|
240 | </h3>
|
---|
241 | Sets the brush in color group <em>gr</em>, used for color role <em>r</em>, to
|
---|
242 | <em>b</em>.
|
---|
243 | <p> <p>See also <a href="#brush">brush</a>(), <a href="#setColor">setColor</a>(), and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
244 |
|
---|
245 | <h3 class=fn>void <a name="setBrush-2"></a>QPalette::setBrush ( <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r, const <a href="qbrush.html">QBrush</a> & b )
|
---|
246 | </h3>
|
---|
247 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
248 | <p> Sets the brush in for color role <em>r</em> in all three color groups to
|
---|
249 | <em>b</em>.
|
---|
250 | <p> <p>See also <a href="#brush">brush</a>(), <a href="#setColor">setColor</a>(), <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>, <a href="#active">active</a>(), <a href="#inactive">inactive</a>(), and <a href="#disabled">disabled</a>().
|
---|
251 |
|
---|
252 | <h3 class=fn>void <a name="setColor"></a>QPalette::setColor ( <a href="qpalette.html#ColorGroup-enum">ColorGroup</a> gr, <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r, const <a href="qcolor.html">QColor</a> & c )
|
---|
253 | </h3>
|
---|
254 | Sets the brush in color group <em>gr</em>, used for color role <em>r</em>, to
|
---|
255 | the solid color <em>c</em>.
|
---|
256 | <p> <p>See also <a href="#setBrush">setBrush</a>(), <a href="#color">color</a>(), and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
257 |
|
---|
258 | <p>Example: <a href="themes-example.html#x332">themes/themes.cpp</a>.
|
---|
259 | <h3 class=fn>void <a name="setColor-2"></a>QPalette::setColor ( <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a> r, const <a href="qcolor.html">QColor</a> & c )
|
---|
260 | </h3>
|
---|
261 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
262 | <p> Sets the brush color used for color role <em>r</em> to color <em>c</em> in all
|
---|
263 | three color groups.
|
---|
264 | <p> <p>See also <a href="#color">color</a>(), <a href="#setBrush">setBrush</a>(), and <a href="qcolorgroup.html#ColorRole-enum">QColorGroup::ColorRole</a>.
|
---|
265 |
|
---|
266 | <h3 class=fn>void <a name="setDisabled"></a>QPalette::setDisabled ( const <a href="qcolorgroup.html">QColorGroup</a> & g )
|
---|
267 | </h3>
|
---|
268 | Sets the <a href="#ColorGroup-enum">Disabled</a> color group to <em>g</em>.
|
---|
269 | <p> <p>See also <a href="#disabled">disabled</a>(), <a href="#setActive">setActive</a>(), and <a href="#setInactive">setInactive</a>().
|
---|
270 |
|
---|
271 | <h3 class=fn>void <a name="setInactive"></a>QPalette::setInactive ( const <a href="qcolorgroup.html">QColorGroup</a> & g )
|
---|
272 | </h3>
|
---|
273 | Sets the <a href="#ColorGroup-enum">Inactive</a> color group to <em>g</em>.
|
---|
274 | <p> <p>See also <a href="#active">active</a>(), <a href="#setDisabled">setDisabled</a>(), <a href="#setActive">setActive</a>(), and <a href="qcolorgroup.html">QColorGroup</a>.
|
---|
275 |
|
---|
276 | <h3 class=fn>void <a name="setNormal"></a>QPalette::setNormal ( const <a href="qcolorgroup.html">QColorGroup</a> & cg )
|
---|
277 | </h3>
|
---|
278 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
279 | <p>
|
---|
280 | <p> Sets the active color group to <em>cg</em>. Use <a href="#setActive">setActive</a>() instead.
|
---|
281 | <p> <p>See also <a href="#setActive">setActive</a>() and <a href="#active">active</a>().
|
---|
282 |
|
---|
283 | <hr><h2>Related Functions</h2>
|
---|
284 | <h3 class=fn><a href="qdatastream.html">QDataStream</a> & <a name="operator-lt-lt"></a>operator<< ( <a href="qdatastream.html">QDataStream</a> & s, const <a href="qpalette.html">QPalette</a> & p )
|
---|
285 | </h3>
|
---|
286 |
|
---|
287 | <p> Writes the palette, <em>p</em> to the stream <em>s</em> and returns a
|
---|
288 | reference to the stream.
|
---|
289 | <p> <p>See also <a href="datastreamformat.html">Format of the QDataStream operators</a>.
|
---|
290 |
|
---|
291 | <h3 class=fn><a href="qdatastream.html">QDataStream</a> & <a name="operator-gt-gt"></a>operator>> ( <a href="qdatastream.html">QDataStream</a> & s, <a href="qpalette.html">QPalette</a> & p )
|
---|
292 | </h3>
|
---|
293 |
|
---|
294 | <p> Reads a palette from the stream, <em>s</em> into the palette <em>p</em>, and
|
---|
295 | returns a reference to the stream.
|
---|
296 | <p> <p>See also <a href="datastreamformat.html">Format of the QDataStream operators</a>.
|
---|
297 |
|
---|
298 | <!-- eof -->
|
---|
299 | <hr><p>
|
---|
300 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
301 | Copyright © 1995-2007
|
---|
302 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
303 | <table width=100% cellspacing=0 border=0><tr>
|
---|
304 | <td>Copyright © 2007
|
---|
305 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
306 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
307 | </table></div></address></body>
|
---|
308 | </html>
|
---|