Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 671

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:02:57 CEST 2007 -->
<TITLE>
QPalette
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QPalette class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QPalette";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPalette.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPalette.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QPalette</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QPalette</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QPalette</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

<P>
<p>The <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> class contains color groups for each widget state.</p>
<p>A palette consists of three color groups: <i>Active</i>, <i>Disabled</i>, and <i>Inactive</i>. All widgets in Qt contain a palette and use their palette to draw themselves. This makes the user interface easily configurable and easier to keep consistent.</p>
<p>If you create a new widget we strongly recommend that you use the colors in the palette rather than hard-coding specific colors.</p>
<p>The color groups:</p>
<ul>
<li>The Active group is used for the window that has keyboard focus.</li>
<li>The Inactive group is used for other windows.</li>
<li>The Disabled group is used for widgets (not windows) that are disabled for some reason.</li>
</ul>
<p>Both active and inactive windows can contain disabled widgets. (Disabled widgets are often called <i>inaccessible</i> or <i>grayed out</i>.)</p>
<p>In most styles, Active and Inactive look the same.</p>
<p>Colors and brushes can be set for particular roles in any of a palette's color groups with <a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a> and <a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>. A color group contains a group of colors used by widgets for drawing themselves. We recommend that widgets use color group roles from the palette such as &quot;foreground&quot; and &quot;base&quot; rather than literal colors like &quot;red&quot; or &quot;turquoise&quot;. The color roles are enumerated and defined in the <a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a> documentation.</p>
<p>We strongly recommend that you use the default palette of the current style (returned by QApplication::palette()) and modify that as necessary. This is done by Qt's widgets when they are drawn.</p>
<p>To modify a color group you call the functions <a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a> and <a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, depending on whether you want a pure color or a pixmap pattern.</p>
<p>There are also corresponding <a href="QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>color</tt></a> and <a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a> getters, and a commonly used convenience function to get the <a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a> for the current <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a>: <a href="QPalette.html#window()"><tt>window</tt></a>, <a href="QPalette.html#windowText()"><tt>windowText</tt></a>, <a href="QPalette.html#base()"><tt>base</tt></a>, etc.</p>
<p>You can copy a palette using the copy constructor and test to see if two palettes are <i>identical</i> using <a href="QPalette.html#isCopyOf(com.trolltech.qt.gui.QPalette)"><tt>isCopyOf</tt></a>.</p>
<p><a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> is optimized by the use of implicit sharing</tt>, so it is very efficient to pass <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> objects as arguments.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><tt>QApplication::setPalette</tt>, 
<tt>QWidget::setPalette</tt>, 
<a href="QColor.html"><tt>QColor</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Press link for info on QPalette.ColorGroup</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p align="center"><img src="%2E%2E/images/palette.png" alt="Color Roles" /></TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette()">QPalette</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a palette object that uses the application's default palette.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette(com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush)">QPalette</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;windowText,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;button,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;light,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;dark,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;mid,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;text,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;bright_text,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;base,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;window)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a palette.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette(com.trolltech.qt.gui.QColor)">QPalette</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;button)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a palette from the <tt>button</tt> color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)">QPalette</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;button,
         <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;window)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a palette from a <tt>button</tt> color and a <tt>window</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette(com.trolltech.qt.gui.QPalette)">QPalette</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;palette)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a copy of <tt>palette</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#QPalette(com.trolltech.qt.core.Qt.GlobalColor)">QPalette</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.GlobalColor.html" title="enum in com.trolltech.qt.core">Qt.GlobalColor</A>&nbsp;button)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a palette from the <tt>button</tt> color.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#alternateBase()">alternateBase</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alternate base brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#base()">base</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the base brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#brightText()">brightText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bright text foreground brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)">brush</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
      <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorRole)">brush</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the brush that has been set for the given color <tt>cr</tt> in the current <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#button()">button</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the button brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#buttonText()">buttonText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the button text foreground brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#cacheKey()">cacheKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a number that identifies the contents of this <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)">color</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
      <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorRole)">color</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color that has been set for the given color <tt>cr</tt> in the current <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#currentColorGroup()">currentColorGroup</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the palette's current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#dark()">dark</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the dark brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QPalette instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#highlight()">highlight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the highlight brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#highlightedText()">highlightedText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the highlighted text brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#isBrushSet(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)">isBrushSet</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
           <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a> <tt>cg</tt> and <a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a> <tt>cr</tt> has been set previously on this palette; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#isCopyOf(com.trolltech.qt.gui.QPalette)">isCopyOf</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;p)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this palette and <tt>p</tt> are copies of each other, i.e&#x2e; one of them was created as a copy of the other and neither was subsequently modified; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#isEqual(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorGroup)">isEqual</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr1,
        <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true (usually quickly) if color group <tt>cr1</tt> is equal to <tt>cr2</tt>; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#light()">light</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the light brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#link()">link</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the unvisited link text brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#linkVisited()">linkVisited</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the visited link text brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#mid()">mid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the mid brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#midlight()">midlight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the midlight brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#nativePointerArray(com.trolltech.qt.gui.QPalette[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QPalette array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;ds)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QPalette from ds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#resolve()">resolve</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#resolve(int)">resolve</A></B>(int&nbsp;mask)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#resolve(com.trolltech.qt.gui.QPalette)">resolve</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> that has attributes copied from <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)">setBrush</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
         <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;brush)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>, to <tt>brush</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)">setBrush</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
         <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;brush)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the brush for the given color <tt>cr</tt> to the specified <tt>brush</tt> for all groups in the palette.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)">setColor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
         <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
         <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>, to the specified solid <tt>color</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)">setColor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
         <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the color used for the given color <tt>cr</tt>, in all color groups, to the specified solid <tt>color</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush)">setColorGroup</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;windowText,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;button,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;light,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;dark,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;mid,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;text,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;bright_text,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;base,
              <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;window)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a the group at <tt>cr</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#setCurrentColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup)">setCurrentColorGroup</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the palette's current color group to <tt>cg</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#shadow()">shadow</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the shadow brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#text()">text</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text foreground brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#window()">window</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the window (general background) brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#windowText()">windowText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the window text (general foreground) brush of the current color group.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPalette.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;ds)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQPalette to ds.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QPalette(com.trolltech.qt.gui.QPalette)"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;palette)</PRE>
<DL>
<DD><p>Constructs a copy of <tt>palette</tt>.</p>
<p>This constructor is fast thanks to implicit sharing</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QPalette(com.trolltech.qt.gui.QColor)"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;button)</PRE>
<DL>
<DD><p>Constructs a palette from the <tt>button</tt> color. The other colors are automatically calculated, based on this color. <tt>Window</tt> will be the button color as well.</p>
<P>
</DL>
<HR>

<A NAME="QPalette(com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush)"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;windowText,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;button,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;light,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;dark,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;mid,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;text,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;bright_text,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;base,
                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;window)</PRE>
<DL>
<DD><p>Constructs a palette. You can pass either brushes, pixmaps or plain colors for <tt>windowText</tt>, <tt>button</tt>, <tt>light</tt>, <tt>dark</tt>, <tt>mid</tt>, <tt>text</tt>, <tt>bright_text</tt>, <tt>base</tt> and <tt>window</tt>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QBrush.html"><tt>QBrush</tt></a></DL>
</DL>
<HR>

<A NAME="QPalette(com.trolltech.qt.core.Qt.GlobalColor)"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.GlobalColor.html" title="enum in com.trolltech.qt.core">Qt.GlobalColor</A>&nbsp;button)</PRE>
<DL>
<DD><p>Constructs a palette from the <tt>button</tt> color. The other colors are automatically calculated, based on this color. <tt>Window</tt> will be the button color as well.</p>
<P>
</DL>
<HR>

<A NAME="QPalette()"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>()</PRE>
<DL>
<DD><p>Constructs a palette object that uses the application's default palette.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><tt>QApplication::setPalette</tt>, 
<tt>QApplication::palette</tt></DL>
</DL>
<HR>

<A NAME="QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><!-- --></A><H3>
QPalette</H3>
<PRE>
public <B>QPalette</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;button,
                <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;window)</PRE>
<DL>
<DD><p>Constructs a palette from a <tt>button</tt> color and a <tt>window</tt>. The other colors are automatically calculated, based on these colors.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="alternateBase()"><!-- --></A><H3>
alternateBase</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>alternateBase</B>()</PRE>
<DL>
<DD><p>Returns the alternate base brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="base()"><!-- --></A><H3>
base</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>base</B>()</PRE>
<DL>
<DD><p>Returns the base brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="brightText()"><!-- --></A><H3>
brightText</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>brightText</B>()</PRE>
<DL>
<DD><p>Returns the bright text foreground brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="brush(com.trolltech.qt.gui.QPalette.ColorRole)"><!-- --></A><H3>
brush</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>brush</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</PRE>
<DL>
<DD><p>Returns the brush that has been set for the given color <tt>cr</tt> in the current <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>color</tt></a>, 
<a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><!-- --></A><H3>
brush</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>brush</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
                          <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</PRE>
<DL>
<DD><p>Returns the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>color</tt></a>, 
<a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="button()"><!-- --></A><H3>
button</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>button</B>()</PRE>
<DL>
<DD><p>Returns the button brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="buttonText()"><!-- --></A><H3>
buttonText</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>buttonText</B>()</PRE>
<DL>
<DD><p>Returns the button text foreground brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="cacheKey()"><!-- --></A><H3>
cacheKey</H3>
<PRE>
public final long <B>cacheKey</B>()</PRE>
<DL>
<DD><p>Returns a number that identifies the contents of this <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> object. Distinct <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> objects can have the same key if they refer to the same contents.</p>
<p>The <a href="QPalette.html#cacheKey()"><tt>cacheKey</tt></a> will change when the palette is altered.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="color(com.trolltech.qt.gui.QPalette.ColorRole)"><!-- --></A><H3>
color</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>color</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</PRE>
<DL>
<DD><p>Returns the color that has been set for the given color <tt>cr</tt> in the current <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><!-- --></A><H3>
color</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>color</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
                          <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</PRE>
<DL>
<DD><p>Returns the color in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a>, 
<a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentColorGroup()"><!-- --></A><H3>
currentColorGroup</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A> <B>currentColorGroup</B>()</PRE>
<DL>
<DD><p>Returns the palette's current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#setCurrentColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup)"><tt>setCurrentColorGroup</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="dark()"><!-- --></A><H3>
dark</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>dark</B>()</PRE>
<DL>
<DD><p>Returns the dark brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="highlight()"><!-- --></A><H3>
highlight</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>highlight</B>()</PRE>
<DL>
<DD><p>Returns the highlight brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="highlightedText()"><!-- --></A><H3>
highlightedText</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>highlightedText</B>()</PRE>
<DL>
<DD><p>Returns the highlighted text brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isBrushSet(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><!-- --></A><H3>
isBrushSet</H3>
<PRE>
public final boolean <B>isBrushSet</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
                                <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr)</PRE>
<DL>
<DD><p>Returns true if the <a href="QPalette.html#ColorGroup-enum"><tt>ColorGroup</tt></a> <tt>cg</tt> and <a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a> <tt>cr</tt> has been set previously on this palette; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isCopyOf(com.trolltech.qt.gui.QPalette)"><!-- --></A><H3>
isCopyOf</H3>
<PRE>
public final boolean <B>isCopyOf</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;p)</PRE>
<DL>
<DD><p>Returns true if this palette and <tt>p</tt> are copies of each other, i.e&#x2e; one of them was created as a copy of the other and neither was subsequently modified; otherwise returns false. This is much stricter than equality.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>operator=</tt>, 
<tt>operator==</tt></DL>
</DD>
</DL>
<HR>

<A NAME="isEqual(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorGroup)"><!-- --></A><H3>
isEqual</H3>
<PRE>
public final boolean <B>isEqual</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr1,
                             <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr2)</PRE>
<DL>
<DD><p>Returns true (usually quickly) if color group <tt>cr1</tt> is equal to <tt>cr2</tt>; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="light()"><!-- --></A><H3>
light</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>light</B>()</PRE>
<DL>
<DD><p>Returns the light brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="link()"><!-- --></A><H3>
link</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>link</B>()</PRE>
<DL>
<DD><p>Returns the unvisited link text brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="linkVisited()"><!-- --></A><H3>
linkVisited</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>linkVisited</B>()</PRE>
<DL>
<DD><p>Returns the visited link text brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mid()"><!-- --></A><H3>
mid</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>mid</B>()</PRE>
<DL>
<DD><p>Returns the mid brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="midlight()"><!-- --></A><H3>
midlight</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>midlight</B>()</PRE>
<DL>
<DD><p>Returns the midlight brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;ds)</PRE>
<DL>
<DD>Writes thisQPalette to ds.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;ds)</PRE>
<DL>
<DD>Reads a QPalette from ds.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resolve()"><!-- --></A><H3>
resolve</H3>
<PRE>
public final int <B>resolve</B>()</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resolve(com.trolltech.qt.gui.QPalette)"><!-- --></A><H3>
resolve</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A> <B>resolve</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns a new <a href="QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)"><tt>QPalette</tt></a> that has attributes copied from <tt>arg__1</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resolve(int)"><!-- --></A><H3>
resolve</H3>
<PRE>
public final void <B>resolve</B>(int&nbsp;mask)</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBrush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><!-- --></A><H3>
setBrush</H3>
<PRE>
public final void <B>setBrush</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
                           <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
                           <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;brush)</PRE>
<DL>
<DD><p>Sets the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>, to <tt>brush</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a>, 
<a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><!-- --></A><H3>
setBrush</H3>
<PRE>
public final void <B>setBrush</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
                           <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;brush)</PRE>
<DL>
<DD><p>Sets the brush for the given color <tt>cr</tt> to the specified <tt>brush</tt> for all groups in the palette.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a>, 
<a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setColor(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><!-- --></A><H3>
setColor</H3>
<PRE>
public final void <B>setColor</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg,
                           <A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
                           <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;color)</PRE>
<DL>
<DD><p>Sets the brush in the specified color <tt>cg</tt>, used for the given color <tt>cr</tt>, to the specified solid <tt>color</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, 
<a href="QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>color</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><!-- --></A><H3>
setColor</H3>
<PRE>
public final void <B>setColor</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui">QPalette.ColorRole</A>&nbsp;cr,
                           <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;color)</PRE>
<DL>
<DD><p>Sets the color used for the given color <tt>cr</tt>, in all color groups, to the specified solid <tt>color</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>color</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a>, 
<a href="QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a>, 
<a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush, com.trolltech.qt.gui.QBrush)"><!-- --></A><H3>
setColorGroup</H3>
<PRE>
public final void <B>setColorGroup</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cr,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;windowText,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;button,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;light,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;dark,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;mid,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;text,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;bright_text,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;base,
                                <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A>&nbsp;window)</PRE>
<DL>
<DD><p>Sets a the group at <tt>cr</tt>. You can pass either brushes, pixmaps or plain colors for <tt>windowText</tt>, <tt>button</tt>, <tt>light</tt>, <tt>dark</tt>, <tt>mid</tt>, <tt>text</tt>, <tt>bright_text</tt>, <tt>base</tt> and <tt>window</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QBrush.html"><tt>QBrush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCurrentColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup)"><!-- --></A><H3>
setCurrentColorGroup</H3>
<PRE>
public final void <B>setCurrentColorGroup</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui">QPalette.ColorGroup</A>&nbsp;cg)</PRE>
<DL>
<DD><p>Set the palette's current color group to <tt>cg</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#currentColorGroup()"><tt>currentColorGroup</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="shadow()"><!-- --></A><H3>
shadow</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>shadow</B>()</PRE>
<DL>
<DD><p>Returns the shadow brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="text()"><!-- --></A><H3>
text</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>text</B>()</PRE>
<DL>
<DD><p>Returns the text foreground brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="window()"><!-- --></A><H3>
window</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>window</B>()</PRE>
<DL>
<DD><p>Returns the window (general background) brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="windowText()"><!-- --></A><H3>
windowText</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>windowText</B>()</PRE>
<DL>
<DD><p>Returns the window text (general foreground) brush of the current color group.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPalette.html#ColorRole-enum"><tt>ColorRole</tt></a>, 
<a href="QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)"><tt>brush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QPalette instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QPalette[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QPalette.html" title="class in com.trolltech.qt.gui">QPalette</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QPalette array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPalette.ColorGroup.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPalette.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPalette.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>