Sophie

Sophie

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

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

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

@see &lt;tt&gt;QApplication::setPalette&lt;/tt&gt;
@see &lt;tt&gt;QWidget::setPalette&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QPalette(com.trolltech.qt.gui.QPalette palette)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;palette&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This constructor is fast thanks to implicit sharing&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QPalette(com.trolltech.qt.gui.QColor button)" doc="/**
&lt;p&gt;Constructs a palette from the &lt;tt&gt;button&lt;/tt&gt; color. The other colors are automatically calculated, based on this color. &lt;tt&gt;Window&lt;/tt&gt; will be the button color as well.&lt;/p&gt;
 */"/>
    <method name="public QPalette(com.trolltech.qt.gui.QBrush windowText, com.trolltech.qt.gui.QBrush button, com.trolltech.qt.gui.QBrush light, com.trolltech.qt.gui.QBrush dark, com.trolltech.qt.gui.QBrush mid, com.trolltech.qt.gui.QBrush text, com.trolltech.qt.gui.QBrush bright_text, com.trolltech.qt.gui.QBrush base, com.trolltech.qt.gui.QBrush window)" doc="/**
&lt;p&gt;Constructs a palette. You can pass either brushes, pixmaps or plain colors for &lt;tt&gt;windowText&lt;/tt&gt;, &lt;tt&gt;button&lt;/tt&gt;, &lt;tt&gt;light&lt;/tt&gt;, &lt;tt&gt;dark&lt;/tt&gt;, &lt;tt&gt;mid&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;bright_text&lt;/tt&gt;, &lt;tt&gt;base&lt;/tt&gt; and &lt;tt&gt;window&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPalette(com.trolltech.qt.core.Qt.GlobalColor button)" doc="/**
&lt;p&gt;Constructs a palette from the &lt;tt&gt;button&lt;/tt&gt; color. The other colors are automatically calculated, based on this color. &lt;tt&gt;Window&lt;/tt&gt; will be the button color as well.&lt;/p&gt;
 */"/>
    <method name="public QPalette()" doc="/**
&lt;p&gt;Constructs a palette object that uses the application's default palette.&lt;/p&gt;

@see &lt;tt&gt;QApplication::setPalette&lt;/tt&gt;
@see &lt;tt&gt;QApplication::palette&lt;/tt&gt; */"/>
    <method name="public QPalette(com.trolltech.qt.gui.QColor button, com.trolltech.qt.gui.QColor window)" doc="/**
&lt;p&gt;Constructs a palette from a &lt;tt&gt;button&lt;/tt&gt; color and a &lt;tt&gt;window&lt;/tt&gt;. The other colors are automatically calculated, based on these colors.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QBrush alternateBase()" doc="/**
&lt;p&gt;Returns the alternate base brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush base()" doc="/**
&lt;p&gt;Returns the base brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush brightText()" doc="/**
&lt;p&gt;Returns the bright text foreground brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush brush(com.trolltech.qt.gui.QPalette.ColorRole cr)" doc="/**
&lt;p&gt;Returns the brush that has been set for the given color &lt;tt&gt;cr&lt;/tt&gt; in the current &lt;a href=&quot;QPalette.html#ColorGroup-enum&quot;&gt;&lt;tt&gt;ColorGroup&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush brush(com.trolltech.qt.gui.QPalette.ColorGroup cg, com.trolltech.qt.gui.QPalette.ColorRole cr)" doc="/**
&lt;p&gt;Returns the brush in the specified color &lt;tt&gt;cg&lt;/tt&gt;, used for the given color &lt;tt&gt;cr&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush button()" doc="/**
&lt;p&gt;Returns the button brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush buttonText()" doc="/**
&lt;p&gt;Returns the button text foreground brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long cacheKey()" doc="/**
&lt;p&gt;Returns a number that identifies the contents of this &lt;a href=&quot;QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;QPalette&lt;/tt&gt;&lt;/a&gt; object. Distinct &lt;a href=&quot;QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;QPalette&lt;/tt&gt;&lt;/a&gt; objects can have the same key if they refer to the same contents.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPalette.html#cacheKey()&quot;&gt;&lt;tt&gt;cacheKey&lt;/tt&gt;&lt;/a&gt; will change when the palette is altered.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QColor color(com.trolltech.qt.gui.QPalette.ColorRole cr)" doc="/**
&lt;p&gt;Returns the color that has been set for the given color &lt;tt&gt;cr&lt;/tt&gt; in the current &lt;a href=&quot;QPalette.html#ColorGroup-enum&quot;&gt;&lt;tt&gt;ColorGroup&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor color(com.trolltech.qt.gui.QPalette.ColorGroup cg, com.trolltech.qt.gui.QPalette.ColorRole cr)" doc="/**
&lt;p&gt;Returns the color in the specified color &lt;tt&gt;cg&lt;/tt&gt;, used for the given color &lt;tt&gt;cr&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPalette.ColorGroup currentColorGroup()" doc="/**
&lt;p&gt;Returns the palette's current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#setCurrentColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup)&quot;&gt;&lt;tt&gt;setCurrentColorGroup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush dark()" doc="/**
&lt;p&gt;Returns the dark brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush highlight()" doc="/**
&lt;p&gt;Returns the highlight brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush highlightedText()" doc="/**
&lt;p&gt;Returns the highlighted text brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isBrushSet(com.trolltech.qt.gui.QPalette.ColorGroup cg, com.trolltech.qt.gui.QPalette.ColorRole cr)" doc="/**
&lt;p&gt;Returns true if the &lt;a href=&quot;QPalette.html#ColorGroup-enum&quot;&gt;&lt;tt&gt;ColorGroup&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;cg&lt;/tt&gt; and &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;cr&lt;/tt&gt; has been set previously on this palette; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isCopyOf(com.trolltech.qt.gui.QPalette p)" doc="/**
&lt;p&gt;Returns true if this palette and &lt;tt&gt;p&lt;/tt&gt; are copies of each other, i.e&amp;#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.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt;
@see &lt;tt&gt;operator==&lt;/tt&gt; */"/>
    <method name="public final boolean isEqual(com.trolltech.qt.gui.QPalette.ColorGroup cr1, com.trolltech.qt.gui.QPalette.ColorGroup cr2)" doc="/**
&lt;p&gt;Returns true (usually quickly) if color group &lt;tt&gt;cr1&lt;/tt&gt; is equal to &lt;tt&gt;cr2&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QBrush light()" doc="/**
&lt;p&gt;Returns the light brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush link()" doc="/**
&lt;p&gt;Returns the unvisited link text brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush linkVisited()" doc="/**
&lt;p&gt;Returns the visited link text brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush mid()" doc="/**
&lt;p&gt;Returns the mid brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush midlight()" doc="/**
&lt;p&gt;Returns the midlight brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream ds)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream ds)"/>
    <method name="public final int resolve()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPalette resolve(com.trolltech.qt.gui.QPalette arg__1)" doc="/**
&lt;p&gt;Returns a new &lt;a href=&quot;QPalette.html#QPalette(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;QPalette&lt;/tt&gt;&lt;/a&gt; that has attributes copied from &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void resolve(int mask)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final void setBrush(com.trolltech.qt.gui.QPalette.ColorGroup cg, com.trolltech.qt.gui.QPalette.ColorRole cr, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the brush in the specified color &lt;tt&gt;cg&lt;/tt&gt;, used for the given color &lt;tt&gt;cr&lt;/tt&gt;, to &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBrush(com.trolltech.qt.gui.QPalette.ColorRole cr, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the brush for the given color &lt;tt&gt;cr&lt;/tt&gt; to the specified &lt;tt&gt;brush&lt;/tt&gt; for all groups in the palette.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setColor(com.trolltech.qt.gui.QPalette.ColorGroup cg, com.trolltech.qt.gui.QPalette.ColorRole cr, com.trolltech.qt.gui.QColor color)" doc="/**
&lt;p&gt;Sets the brush in the specified color &lt;tt&gt;cg&lt;/tt&gt;, used for the given color &lt;tt&gt;cr&lt;/tt&gt;, to the specified solid &lt;tt&gt;color&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#setBrush(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setColor(com.trolltech.qt.gui.QPalette.ColorRole cr, com.trolltech.qt.gui.QColor color)" doc="/**
&lt;p&gt;Sets the color used for the given color &lt;tt&gt;cr&lt;/tt&gt;, in all color groups, to the specified solid &lt;tt&gt;color&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#color(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#setColor(com.trolltech.qt.gui.QPalette.ColorRole, com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup cr, com.trolltech.qt.gui.QBrush windowText, com.trolltech.qt.gui.QBrush button, com.trolltech.qt.gui.QBrush light, com.trolltech.qt.gui.QBrush dark, com.trolltech.qt.gui.QBrush mid, com.trolltech.qt.gui.QBrush text, com.trolltech.qt.gui.QBrush bright_text, com.trolltech.qt.gui.QBrush base, com.trolltech.qt.gui.QBrush window)" doc="/**
&lt;p&gt;Sets a the group at &lt;tt&gt;cr&lt;/tt&gt;. You can pass either brushes, pixmaps or plain colors for &lt;tt&gt;windowText&lt;/tt&gt;, &lt;tt&gt;button&lt;/tt&gt;, &lt;tt&gt;light&lt;/tt&gt;, &lt;tt&gt;dark&lt;/tt&gt;, &lt;tt&gt;mid&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;bright_text&lt;/tt&gt;, &lt;tt&gt;base&lt;/tt&gt; and &lt;tt&gt;window&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCurrentColorGroup(com.trolltech.qt.gui.QPalette.ColorGroup cg)" doc="/**
&lt;p&gt;Set the palette's current color group to &lt;tt&gt;cg&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#currentColorGroup()&quot;&gt;&lt;tt&gt;currentColorGroup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush shadow()" doc="/**
&lt;p&gt;Returns the shadow brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush text()" doc="/**
&lt;p&gt;Returns the text foreground brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush window()" doc="/**
&lt;p&gt;Returns the window (general background) brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush windowText()" doc="/**
&lt;p&gt;Returns the window text (general foreground) brush of the current color group.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPalette.html#brush(com.trolltech.qt.gui.QPalette.ColorGroup, com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ColorGroup">
        <enum-value name="Active" doc="/**
Internal. */"/>
        <enum-value name="Disabled" doc="/**
Internal. */"/>
        <enum-value name="Inactive" doc="/**
Internal. */"/>
        <enum-value name="NColorGroups" doc="/**
Internal. */"/>
        <enum-value name="Current" doc="/**
Internal. */"/>
        <enum-value name="All" doc="/**
Internal. */"/>
        <enum-value name="Normal" doc="/**
&lt;p&gt;synonym for Active&lt;/p&gt;
 */"/>
</enum>
    <enum name="ColorRole" doc="/**
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/palette.png&quot; alt=&quot;Color Roles&quot; /&gt;&lt;/p&gt;&lt;p&gt;The &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;ColorRole&lt;/tt&gt;&lt;/a&gt; enum defines the different symbolic color roles used in current GUIs.&lt;/p&gt;
&lt;p&gt;The central roles are:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Window&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;10&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A general background color.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Background&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;10&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;This value is obsolete. Use Window instead.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;WindowText&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A general foreground color.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Foreground&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;This value is obsolete. Use &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;WindowText&lt;/tt&gt;&lt;/a&gt; instead.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Base&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;9&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Used as the background color for text entry widgets; usually white or another light color.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;AlternateBase&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Used as the alternate background color in views with alternating row colors (see QAbstractItemView::setAlternatingRowColors()).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Text&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;6&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The foreground color used with &lt;tt&gt;Base&lt;/tt&gt;. This is usually the same as the &lt;tt&gt;WindowText&lt;/tt&gt;, in which case it must provide good contrast with &lt;tt&gt;Window&lt;/tt&gt; and &lt;tt&gt;Base&lt;/tt&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Button&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The general button background color. This background can be different from &lt;tt&gt;Window&lt;/tt&gt; as some styles require a different background color for buttons.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;ButtonText&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A foreground color used with the &lt;tt&gt;Button&lt;/tt&gt; color.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;BrightText&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;7&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A text color that is very different from &lt;tt&gt;WindowText&lt;/tt&gt;, and contrasts well with e.g&amp;#x2e; &lt;tt&gt;Dark&lt;/tt&gt;. Typically used for text that needs to be drawn where &lt;tt&gt;Text&lt;/tt&gt; or &lt;tt&gt;WindowText&lt;/tt&gt; would give poor contrast, such as on pressed push buttons. Note that text colors can be used for things other than just words; text colors are &lt;i&gt;usually&lt;/i&gt; used for text, but it's quite common to use the text color roles for lines, icons, etc.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;There are some color roles used mostly for 3D bevel and shadow effects. All of these are normally derived from &lt;tt&gt;Window&lt;/tt&gt;, and used in ways that depend on that relationship. For example, buttons depend on it to make the bevels look attractive, and Motif scroll bars depend on &lt;tt&gt;Mid&lt;/tt&gt; to be slightly different from &lt;tt&gt;Window&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Light&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Lighter than &lt;tt&gt;Button&lt;/tt&gt; color.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Midlight&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Between &lt;tt&gt;Button&lt;/tt&gt; and &lt;tt&gt;Light&lt;/tt&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Dark&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Darker than &lt;tt&gt;Button&lt;/tt&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Mid&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;5&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Between &lt;tt&gt;Button&lt;/tt&gt; and &lt;tt&gt;Dark&lt;/tt&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Shadow&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;11&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A very dark color. By default, the shadow color is Qt::black.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Selected (marked) items have two roles:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Highlight&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;12&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A color to indicate a selected item or the current item. By default, the highlight color is Qt::darkBlue.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;HighlightedText&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;13&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A text color that contrasts with &lt;tt&gt;Highlight&lt;/tt&gt;. By default, the highlighted text color is Qt::white.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;There are two color roles related to hyperlinks:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Link&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;14&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A text color used for unvisited hyperlinks. By default, the link color is Qt::blue.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;LinkVisited&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;15&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A text color used for already visited hyperlinks. By default, the linkvisited color is Qt::magenta.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Note that we do not use the &lt;tt&gt;Link&lt;/tt&gt; and &lt;tt&gt;LinkVisited&lt;/tt&gt; roles when rendering rich text in Qt, and that we recommend that you use CSS and the QTextDocument::setDefaultStyleSheet() function to alter the appearance of links. For example:&lt;/p&gt;
&lt;pre&gt;        QTextBrowser browser;
        QColor linkColor(Qt::red);
        QString sheet = QString::fromLatin1(&amp;quot;a { text-decoration: underline; color: %1 }&amp;quot;).arg(linkColor.name());
        browser.document()-&amp;gt;setDefaultStyleSheet(sheet);&lt;/pre&gt;
 */">
        <enum-value name="WindowText" doc="/**
&lt;p&gt;A general foreground color.&lt;/p&gt;
 */"/>
        <enum-value name="Button" doc="/**
&lt;p&gt;The general button background color. This background can be different from &lt;tt&gt;Window&lt;/tt&gt; as some styles require a different background color for buttons.&lt;/p&gt;
 */"/>
        <enum-value name="Light" doc="/**
&lt;p&gt;Lighter than &lt;tt&gt;Button&lt;/tt&gt; color.&lt;/p&gt;
 */"/>
        <enum-value name="Midlight" doc="/**
&lt;p&gt;Between &lt;tt&gt;Button&lt;/tt&gt; and &lt;tt&gt;Light&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Dark" doc="/**
&lt;p&gt;Darker than &lt;tt&gt;Button&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Mid" doc="/**
&lt;p&gt;Between &lt;tt&gt;Button&lt;/tt&gt; and &lt;tt&gt;Dark&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Text" doc="/**
&lt;p&gt;The foreground color used with &lt;tt&gt;Base&lt;/tt&gt;. This is usually the same as the &lt;tt&gt;WindowText&lt;/tt&gt;, in which case it must provide good contrast with &lt;tt&gt;Window&lt;/tt&gt; and &lt;tt&gt;Base&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="BrightText" doc="/**
&lt;p&gt;A text color that is very different from &lt;tt&gt;WindowText&lt;/tt&gt;, and contrasts well with e.g&amp;#x2e; &lt;tt&gt;Dark&lt;/tt&gt;. Typically used for text that needs to be drawn where &lt;tt&gt;Text&lt;/tt&gt; or &lt;tt&gt;WindowText&lt;/tt&gt; would give poor contrast, such as on pressed push buttons. Note that text colors can be used for things other than just words; text colors are &lt;i&gt;usually&lt;/i&gt; used for text, but it's quite common to use the text color roles for lines, icons, etc.&lt;/p&gt;
 */"/>
        <enum-value name="ButtonText" doc="/**
&lt;p&gt;A foreground color used with the &lt;tt&gt;Button&lt;/tt&gt; color.&lt;/p&gt;
 */"/>
        <enum-value name="Base" doc="/**
&lt;p&gt;Used as the background color for text entry widgets; usually white or another light color.&lt;/p&gt;
 */"/>
        <enum-value name="Window" doc="/**
&lt;p&gt;A general background color.&lt;/p&gt;
 */"/>
        <enum-value name="Shadow" doc="/**
&lt;p&gt;A very dark color. By default, the shadow color is Qt::black.&lt;/p&gt;
 */"/>
        <enum-value name="Highlight" doc="/**
&lt;p&gt;A color to indicate a selected item or the current item. By default, the highlight color is Qt::darkBlue.&lt;/p&gt;
 */"/>
        <enum-value name="HighlightedText" doc="/**
&lt;p&gt;A text color that contrasts with &lt;tt&gt;Highlight&lt;/tt&gt;. By default, the highlighted text color is Qt::white.&lt;/p&gt;
 */"/>
        <enum-value name="Link" doc="/**
&lt;p&gt;A text color used for unvisited hyperlinks. By default, the link color is Qt::blue.&lt;/p&gt;
 */"/>
        <enum-value name="LinkVisited" doc="/**
&lt;p&gt;A text color used for already visited hyperlinks. By default, the linkvisited color is Qt::magenta.&lt;/p&gt;
 */"/>
        <enum-value name="AlternateBase" doc="/**
&lt;p&gt;Used as the alternate background color in views with alternating row colors (see QAbstractItemView::setAlternatingRowColors()).&lt;/p&gt;
 */"/>
        <enum-value name="NoRole" doc="/**
Internal. */"/>
        <enum-value name="NColorRoles" doc="/**
Internal. */"/>
        <enum-value name="Foreground" doc="/**
&lt;p&gt;This value is obsolete. Use &lt;a href=&quot;QPalette.html#ColorRole-enum&quot;&gt;&lt;tt&gt;WindowText&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
 */"/>
        <enum-value name="Background" doc="/**
&lt;p&gt;This value is obsolete. Use Window instead.&lt;/p&gt;
 */"/>
</enum>
</class>