Sophie

Sophie

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

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

<class name="QStyleOptionTab" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters for drawing a tab bar.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; class is used for drawing several built-in Qt widgets including &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt; and the panel for &lt;a href=&quot;QTabWidget.html&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt;. Note that to describe the parameters necessary for drawing a frame in Qt 4.1 or above, you must use the &lt;a href=&quot;QStyleOptionFrameV2.html&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;An instance of the QStyleOptiontabV2 class has type &lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_Tab&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOption.html#version()&quot;&gt;version&lt;/tt&gt;&lt;/a&gt; 1. The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles. The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;
&lt;p&gt;If you create your own &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; subclass, you should handle both &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionTabV2.html&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For an example demonstrating how style options can be used, see the Styles&lt;/tt&gt; example.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTabV2.html&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStyleOptionTab(com.trolltech.qt.gui.QStyleOptionTab other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionTab()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; object, initializing the members variables to their default values.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionTab(int version)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <enum name="StyleOptionVersion" doc="/**
&lt;p&gt;This enum is used to hold information about the version of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#StyleOptionType-enum&quot;&gt;&lt;tt&gt;StyleOptionType&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Version" doc="/**
&lt;p&gt;1&lt;/p&gt;
 */"/>
</enum>
    <enum name="CornerWidget" doc="/**
&lt;p&gt;These flags indicate the corner widgets in a tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#cornerWidgets()&quot;&gt;&lt;tt&gt;cornerWidgets&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NoCornerWidgets" doc="/**
&lt;p&gt;There are no corner widgets&lt;/p&gt;
 */"/>
        <enum-value name="LeftCornerWidget" doc="/**
&lt;p&gt;Left corner widget&lt;/p&gt;
 */"/>
        <enum-value name="RightCornerWidget" doc="/**
&lt;p&gt;Right corner widget&lt;/p&gt;
 */"/>
</enum>
    <enum name="TabPosition" doc="/**
&lt;p&gt;This enum describes the position of the tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#position()&quot;&gt;position&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Beginning" doc="/**
&lt;p&gt;The tab is the first tab in the tab bar.&lt;/p&gt;
 */"/>
        <enum-value name="Middle" doc="/**
&lt;p&gt;The tab is neither the first nor the last tab in the tab bar.&lt;/p&gt;
 */"/>
        <enum-value name="End" doc="/**
&lt;p&gt;The tab is the last tab in the tab bar.&lt;/p&gt;
 */"/>
        <enum-value name="OnlyOneTab" doc="/**
&lt;p&gt;The tab is both the first and the last tab in the tab bar.&lt;/p&gt;
 */"/>
</enum>
    <enum name="SelectedPosition" doc="/**
&lt;p&gt;This enum describes the position of the selected tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NotAdjacent" doc="/**
&lt;p&gt;The tab is not adjacent to a selected tab (or is the selected tab).&lt;/p&gt;
 */"/>
        <enum-value name="NextIsSelected" doc="/**
&lt;p&gt;The next tab (typically the tab on the right) is selected.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousIsSelected" doc="/**
&lt;p&gt;The previous tab (typically the tab on the left) is selected.&lt;/p&gt;
 */"/>
</enum>
    <enum name="StyleOptionType" doc="/**
&lt;p&gt;This enum is used to hold information about the type of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#StyleOptionVersion-enum&quot;&gt;&lt;tt&gt;StyleOptionVersion&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Type" doc="/**
&lt;p&gt;The type of style option provided (&lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_Tab&lt;/tt&gt;&lt;/a&gt; for this class).&lt;/p&gt;
 */"/>
</enum>
    <method name="public final int row()" doc="/**
&lt;p&gt;Returns which row the tab is currently in.&lt;/p&gt;
&lt;p&gt;The default value is 0, indicating the front row. Currently this property can only be 0.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setRow(int)&quot;&gt;&lt;tt&gt;setRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRow(int row)" doc="/**
&lt;p&gt;Sets which row the tab is currently in to &lt;tt&gt;row&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is 0, indicating the front row. Currently this property can only be 0.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#row()&quot;&gt;&lt;tt&gt;row&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets cornerWidgets()" doc="/**
&lt;p&gt;Returns an OR combination of &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;CornerWidget&lt;/tt&gt;&lt;/a&gt; values indicating the corner widgets of the tab bar.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;NoCornerWidgets&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setCornerWidgets(com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets)&quot;&gt;&lt;tt&gt;setCornerWidgets&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;CornerWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCornerWidgets(com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets cornerWidgets)" doc="/**
&lt;p&gt;Sets an OR combination of &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;CornerWidget&lt;/tt&gt;&lt;/a&gt; values indicating the corner widgets of the tab bar to &lt;tt&gt;cornerWidgets&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;NoCornerWidgets&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#cornerWidgets()&quot;&gt;&lt;tt&gt;cornerWidgets&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionTab.html#CornerWidget-enum&quot;&gt;&lt;tt&gt;CornerWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionTab.TabPosition position()" doc="/**
&lt;p&gt;Returns the position of the tab in the tab bar.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#TabPosition-enum&quot;&gt;Beginning&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is the first tab in the tab bar.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setPosition(com.trolltech.qt.gui.QStyleOptionTab.TabPosition)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPosition(com.trolltech.qt.gui.QStyleOptionTab.TabPosition position)" doc="/**
&lt;p&gt;Sets the position of the tab in the tab bar to &lt;tt&gt;position&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#TabPosition-enum&quot;&gt;Beginning&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is the first tab in the tab bar.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/**
&lt;p&gt;Returns the icon for the tab.&lt;/p&gt;
&lt;p&gt;The default value is an empty icon, i.e&amp;#x2e; an icon with neither a pixmap nor a filename.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the icon for the tab to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is an empty icon, i.e&amp;#x2e; an icon with neither a pixmap nor a filename.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#icon()&quot;&gt;&lt;tt&gt;icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTabBar.Shape shape()" doc="/**
&lt;p&gt;Returns the tab shape used to draw the tab; by default QTabBar::RoundedNorth.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setShape(com.trolltech.qt.gui.QTabBar.Shape)&quot;&gt;&lt;tt&gt;setShape&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::Shape&lt;/tt&gt; */"/>
    <method name="public final void setShape(com.trolltech.qt.gui.QTabBar.Shape shape)" doc="/**
&lt;p&gt;Sets the tab shape used to draw the tab; by default QTabBar::RoundedNorth to &lt;tt&gt;shape&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#shape()&quot;&gt;&lt;tt&gt;shape&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::Shape&lt;/tt&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the text of the tab.&lt;/p&gt;
&lt;p&gt;The default value is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the text of the tab to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition selectedPosition()" doc="/**
&lt;p&gt;Returns the position of the selected tab in relation to this tab.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#SelectedPosition-enum&quot;&gt;&lt;tt&gt;NotAdjacent&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#setSelectedPosition(com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition)&quot;&gt;&lt;tt&gt;setSelectedPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSelectedPosition(com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition selectedPosition)" doc="/**
&lt;p&gt;Sets the position of the selected tab in relation to this tab to &lt;tt&gt;selectedPosition&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionTab.html#SelectedPosition-enum&quot;&gt;&lt;tt&gt;NotAdjacent&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; */"/>
</class>