|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QStyle.StyleHint>
com.trolltech.qt.gui.QStyle.StyleHint
public static enum QStyle.StyleHint
This enum describes the available style hints. A style hint is a general look and/or feel hint.
Used to fill any area not covered by the items.
Enum Constant Summary | |
---|---|
CustomEnum
|
|
SH_BlinkCursorWhenTextSelected
Whether cursor should blink when text is selected. |
|
SH_Button_FocusPolicy
The default focus policy for buttons. |
|
SH_ComboBox_LayoutDirection
The layout direction for the combo box. |
|
SH_ComboBox_ListMouseTracking
Mouse tracking in combobox drop-down lists. |
|
SH_ComboBox_Popup
Allows popups as a combobox drop-down menu. |
|
SH_ComboBox_PopupFrameStyle
The frame style used when drawing a combobox popup menu. |
|
SH_CustomBase
Base value for custom style hints. |
|
SH_Dial_BackgroundRole
Defines the style's preferred background role (as QPalette::ColorRole) for a dial widget. |
|
SH_DialogButtonBox_ButtonsHaveIcons
Indicates whether or not StandardButtons in QDialogButtonBox should have icons or not. |
|
SH_DialogButtonLayout
Controls how buttons are laid out in a QDialogButtonBox, returns a QDialogButtonBox::ButtonLayout enum. |
|
SH_DialogButtons_DefaultButton
Which button gets the default status in a dialog's button widget. |
|
SH_DitherDisabledText
Disabled text is dithered as it is on Motif. |
|
SH_DrawMenuBarSeparator
Indicates whether or not the menu bar draws separators. |
|
SH_EtchDisabledText
Disabled text is "etched" as it is on Windows. |
|
SH_FocusFrame_AboveWidget
The FocusFrame is stacked above the widget that it is "focusing on". |
|
SH_FocusFrame_Mask
The mask of the focus frame. |
|
SH_FontDialog_SelectAssociatedText
Select the text in the line edit, or when selecting an item from the listbox, or when the line edit receives focus, as done on Windows. |
|
SH_GroupBox_TextLabelColor
How to paint a group box's text label. |
|
SH_GroupBox_TextLabelVerticalAlignment
How to vertically align a group box's text label. |
|
SH_Header_ArrowAlignment
The placement of the sorting indicator may appear in list or table headers. |
|
SH_ItemView_ActivateItemOnSingleClick
Emit the activated signal when the user single clicks on an item in an item in an item view. |
|
SH_ItemView_ArrowKeysNavigateIntoChildren
Controls whether the tree view will select the first child when it is exapanded and the right arrow key is pressed. |
|
SH_ItemView_ChangeHighlightOnFocus
Gray out selected items when losing focus. |
|
SH_ItemView_EllipsisLocation
The location where ellipses should be added for item text that is too long to fit in an view item. |
|
SH_ItemView_MovementWithoutUpdatingSelection
The item view is able to indicate a current item without changing the selection. |
|
SH_ItemView_ShowDecorationSelected
When an item in an item view is selected, also highlight the branch or other decoration. |
|
SH_LineEdit_PasswordCharacter
The Unicode character to be used for passwords. |
|
SH_MainWindow_SpaceBelowMenuBar
One or two pixel space between the menu bar and the dockarea, as done on Windows. |
|
SH_Menu_AllowActiveAndDisabled
Allows disabled menu items to be active. |
|
SH_Menu_FillScreenWithScroll
Whether scrolling popups should fill the screen as they are scrolled. |
|
SH_Menu_KeyboardSearch
Typing causes a menu to be search for relevant items, otherwise only mnemnonic is considered. |
|
SH_Menu_MouseTracking
Mouse tracking in popup menus. |
|
SH_Menu_Scrollable
Whether popup menus must support scrolling. |
|
SH_Menu_SelectionWrap
Whether popups should allow the selections to wrap, that is when selection should the next item be the first item. |
|
SH_Menu_SloppySubMenus
Whether popupmenu's must support sloppy submenu; as implemented on Mac OS. |
|
SH_Menu_SpaceActivatesItem
Pressing the space bar activates the item, as done on Motif. |
|
SH_Menu_SubMenuPopupDelay
The number of milliseconds to wait before opening a submenu (256 on Windows, 96 on Motif). |
|
SH_MenuBar_AltKeyNavigation
Menu bars items are navigable by pressing Alt, followed by using the arrow keys to select the desired item. |
|
SH_MenuBar_DismissOnSecondClick
A boolean indicating if a menu in the menu bar should be dismissed when it is clicked on a second time. |
|
SH_MenuBar_MouseTracking
Mouse tracking in menu bars. |
|
SH_MessageBox_CenterButtons
A boolean indicating whether the buttons in the message box should be centered or not (see QDialogButtonBox::setCentered()). |
|
SH_MessageBox_TextInteractionFlags
A boolean indicating if the text in a message box should allow user interfactions (e.g. selection) or not. |
|
SH_MessageBox_UseBorderForButtonSpacing
A boolean indicating what the to use the border of the buttons (computed as half the button height) for the spacing of the button in a message box. |
|
SH_PrintDialog_RightAlignButtons
Right align buttons in the print dialog, as done on Windows. |
|
SH_ProgressDialog_CenterCancelButton
Center button on progress dialogs, like Motif, otherwise right aligned. |
|
SH_ProgressDialog_TextLabelAlignment
The alignment for text labels in progress dialogs; Qt::AlignCenter on Windows, Qt::AlignVCenter otherwise. |
|
SH_Q3ListViewExpand_SelectMouseType
Which type of mouse event should cause a list view expansion to be selected. |
|
SH_RichText_FullWidthSelection
Whether richtext selections should extend to the full width of the document. |
|
SH_RubberBand_Mask
The mask of the rubber band. |
|
SH_ScrollBar_ContextMenu
Whether or not a scroll bar has a context menu. |
|
SH_ScrollBar_LeftClickAbsolutePosition
A boolean value. |
|
SH_ScrollBar_MiddleClickAbsolutePosition
A boolean value. |
|
SH_ScrollBar_RollBetweenButtons
A boolean value. |
|
SH_ScrollBar_ScrollWhenPointerLeavesControl
A boolean value. |
|
SH_ScrollView_FrameOnlyAroundContents
Whether scrollviews draw their frame only around contents (like Motif), or around contents, scroll bars and corner widgets (like Windows). |
|
SH_Slider_AbsoluteSetButtons
Which mouse buttons cause a slider to set the value to the position clicked on. |
|
SH_Slider_PageSetButtons
Which mouse buttons cause a slider to page step the value. |
|
SH_Slider_SloppyKeyEvents
Key presses handled in a sloppy manner, i.e., left on a vertical slider subtracts a line. |
|
SH_Slider_SnapToValue
Sliders snap to values while moving, as they do on Windows. |
|
SH_Slider_StopMouseOverSlider
Stops auto-repeat when the slider reaches the mouse position. |
|
SH_SpellCheckUnderlineStyle
A QTextCharFormat::UnderlineStyle value that specifies the way misspelled words should be underlined. |
|
SH_SpinBox_AnimateButton
Animate a click when up or down is pressed in a spin box. |
|
SH_SpinBox_ClickAutoRepeatRate
Auto-repeat interval for spinbox mouse clicks. |
|
SH_SpinBox_KeyPressAutoRepeatRate
Auto-repeat interval for spinbox key presses. |
|
SH_SpinControls_DisableOnBounds
Determines if the spin controls will shown as disabled when reaching the spin range boundary. |
|
SH_TabBar_Alignment
The alignment for tabs in a QTabWidget. |
|
SH_TabBar_ElideMode
The default eliding style for a tab bar. |
|
SH_TabBar_PreferNoArrows
Whether a tab bar should suggest a size to prevent scoll arrows. |
|
SH_TabBar_SelectMouseType
Which type of mouse event should cause a tab to be selected. |
|
SH_Table_GridLineColor
The RGB value of the grid for a table. |
|
SH_TextControl_FocusIndicatorTextCharFormat
Specifies the text format used to highlight focused anchors in rich text documents displayed for example in QTextBrowser. |
|
SH_TitleBar_AutoRaise
A boolean indicating whether controls on a title bar ought to update when the mouse is over them. |
|
SH_TitleBar_ModifyNotification
Indicates if the title bar should show a '*' for windows that are modified. |
|
SH_TitleBar_NoBorder
The title bar has no border. |
|
SH_ToolBox_SelectedPageTitleBold
Boldness of the selected page title in a QToolBox. |
|
SH_ToolButton_PopupDelay
An int indicating the popup delay in milliseconds for menus attached to tool buttons. |
|
SH_ToolTip_Mask
The mask of a tool tip. |
|
SH_ToolTipLabel_Opacity
An integer indicating the opacity for the tip label, 0 is completely transparent, 255 is completely opaque. |
|
SH_UnderlineShortcut
Whether shortcuts are underlined. |
|
SH_Widget_ShareActivation
Turn on sharing activation with floating modeless dialogs. |
|
SH_WindowFrame_Mask
The mask of the window frame. |
|
SH_WizardStyle
Controls the look and feel of a QWizard. |
|
SH_Workspace_FillSpaceOnMaximize
The workspace should maximize the client area. |
Method Summary | |
---|---|
static QStyle.StyleHint |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QStyle.StyleHint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QStyle.StyleHint[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QStyle.StyleHint SH_EtchDisabledText
Disabled text is "etched" as it is on Windows.
public static final QStyle.StyleHint SH_DitherDisabledText
Disabled text is dithered as it is on Motif.
public static final QStyle.StyleHint SH_ScrollBar_MiddleClickAbsolutePosition
A boolean value. If true, middle clicking on a scroll bar causes the slider to jump to that position. If false, middle clicking is ignored.
public static final QStyle.StyleHint SH_ScrollBar_ScrollWhenPointerLeavesControl
A boolean value. If true, when clicking a scroll bar SubControl, holding the mouse button down and moving the pointer outside the SubControl, the scroll bar continues to scroll. If false, the scollbar stops scrolling when the pointer leaves the SubControl.
public static final QStyle.StyleHint SH_TabBar_SelectMouseType
Which type of mouse event should cause a tab to be selected.
public static final QStyle.StyleHint SH_TabBar_Alignment
The alignment for tabs in a QTabWidget. Possible values are Qt::AlignLeft, Qt::AlignCenter and Qt::AlignRight.
public static final QStyle.StyleHint SH_Header_ArrowAlignment
The placement of the sorting indicator may appear in list or table headers. Possible values are Qt::Left or Qt::Right.
public static final QStyle.StyleHint SH_Slider_SnapToValue
Sliders snap to values while moving, as they do on Windows.
public static final QStyle.StyleHint SH_Slider_SloppyKeyEvents
Key presses handled in a sloppy manner, i.e., left on a vertical slider subtracts a line.
public static final QStyle.StyleHint SH_ProgressDialog_CenterCancelButton
Center button on progress dialogs, like Motif, otherwise right aligned.
public static final QStyle.StyleHint SH_ProgressDialog_TextLabelAlignment
The alignment for text labels in progress dialogs; Qt::AlignCenter on Windows, Qt::AlignVCenter otherwise.
public static final QStyle.StyleHint SH_PrintDialog_RightAlignButtons
Right align buttons in the print dialog, as done on Windows.
public static final QStyle.StyleHint SH_MainWindow_SpaceBelowMenuBar
One or two pixel space between the menu bar and the dockarea, as done on Windows.
public static final QStyle.StyleHint SH_FontDialog_SelectAssociatedText
Select the text in the line edit, or when selecting an item from the listbox, or when the line edit receives focus, as done on Windows.
public static final QStyle.StyleHint SH_Menu_AllowActiveAndDisabled
Allows disabled menu items to be active.
public static final QStyle.StyleHint SH_Menu_SpaceActivatesItem
Pressing the space bar activates the item, as done on Motif.
public static final QStyle.StyleHint SH_Menu_SubMenuPopupDelay
The number of milliseconds to wait before opening a submenu (256 on Windows, 96 on Motif).
public static final QStyle.StyleHint SH_ScrollView_FrameOnlyAroundContents
Whether scrollviews draw their frame only around contents (like Motif), or around contents, scroll bars and corner widgets (like Windows).
public static final QStyle.StyleHint SH_MenuBar_AltKeyNavigation
Menu bars items are navigable by pressing Alt, followed by using the arrow keys to select the desired item.
public static final QStyle.StyleHint SH_ComboBox_ListMouseTracking
Mouse tracking in combobox drop-down lists.
public static final QStyle.StyleHint SH_Menu_MouseTracking
Mouse tracking in popup menus.
public static final QStyle.StyleHint SH_MenuBar_MouseTracking
Mouse tracking in menu bars.
public static final QStyle.StyleHint SH_ItemView_ChangeHighlightOnFocus
Gray out selected items when losing focus.
public static final QStyle.StyleHint SH_Widget_ShareActivation
Turn on sharing activation with floating modeless dialogs.
public static final QStyle.StyleHint SH_Workspace_FillSpaceOnMaximize
The workspace should maximize the client area.
public static final QStyle.StyleHint SH_ComboBox_Popup
Allows popups as a combobox drop-down menu.
public static final QStyle.StyleHint SH_TitleBar_NoBorder
The title bar has no border.
public static final QStyle.StyleHint SH_Slider_StopMouseOverSlider
Stops auto-repeat when the slider reaches the mouse position.
public static final QStyle.StyleHint SH_BlinkCursorWhenTextSelected
Whether cursor should blink when text is selected.
public static final QStyle.StyleHint SH_RichText_FullWidthSelection
Whether richtext selections should extend to the full width of the document.
public static final QStyle.StyleHint SH_Menu_Scrollable
Whether popup menus must support scrolling.
public static final QStyle.StyleHint SH_GroupBox_TextLabelVerticalAlignment
How to vertically align a group box's text label.
public static final QStyle.StyleHint SH_GroupBox_TextLabelColor
How to paint a group box's text label.
public static final QStyle.StyleHint SH_Menu_SloppySubMenus
Whether popupmenu's must support sloppy submenu; as implemented on Mac OS.
public static final QStyle.StyleHint SH_Table_GridLineColor
The RGB value of the grid for a table.
public static final QStyle.StyleHint SH_LineEdit_PasswordCharacter
The Unicode character to be used for passwords.
public static final QStyle.StyleHint SH_DialogButtons_DefaultButton
Which button gets the default status in a dialog's button widget.
public static final QStyle.StyleHint SH_ToolBox_SelectedPageTitleBold
Boldness of the selected page title in a QToolBox.
public static final QStyle.StyleHint SH_TabBar_PreferNoArrows
Whether a tab bar should suggest a size to prevent scoll arrows.
public static final QStyle.StyleHint SH_ScrollBar_LeftClickAbsolutePosition
A boolean value. If true, left clicking on a scroll bar causes the slider to jump to that position. If false, left clicking will behave as appropriate for each control.
public static final QStyle.StyleHint SH_Q3ListViewExpand_SelectMouseType
Which type of mouse event should cause a list view expansion to be selected.
public static final QStyle.StyleHint SH_UnderlineShortcut
Whether shortcuts are underlined.
public static final QStyle.StyleHint SH_SpinBox_AnimateButton
Animate a click when up or down is pressed in a spin box.
public static final QStyle.StyleHint SH_SpinBox_KeyPressAutoRepeatRate
Auto-repeat interval for spinbox key presses.
public static final QStyle.StyleHint SH_SpinBox_ClickAutoRepeatRate
Auto-repeat interval for spinbox mouse clicks.
public static final QStyle.StyleHint SH_Menu_FillScreenWithScroll
Whether scrolling popups should fill the screen as they are scrolled.
public static final QStyle.StyleHint SH_ToolTipLabel_Opacity
An integer indicating the opacity for the tip label, 0 is completely transparent, 255 is completely opaque.
public static final QStyle.StyleHint SH_DrawMenuBarSeparator
Indicates whether or not the menu bar draws separators.
public static final QStyle.StyleHint SH_TitleBar_ModifyNotification
Indicates if the title bar should show a '*' for windows that are modified.
public static final QStyle.StyleHint SH_Button_FocusPolicy
The default focus policy for buttons.
public static final QStyle.StyleHint SH_MenuBar_DismissOnSecondClick
A boolean indicating if a menu in the menu bar should be dismissed when it is clicked on a second time. (Example: Clicking and releasing on the File Menu in a menu bar and then immediately clicking on the File Menu again.)
public static final QStyle.StyleHint SH_MessageBox_UseBorderForButtonSpacing
A boolean indicating what the to use the border of the buttons (computed as half the button height) for the spacing of the button in a message box.
public static final QStyle.StyleHint SH_TitleBar_AutoRaise
A boolean indicating whether controls on a title bar ought to update when the mouse is over them.
public static final QStyle.StyleHint SH_ToolButton_PopupDelay
An int indicating the popup delay in milliseconds for menus attached to tool buttons.
public static final QStyle.StyleHint SH_FocusFrame_Mask
The mask of the focus frame.
public static final QStyle.StyleHint SH_RubberBand_Mask
The mask of the rubber band.
public static final QStyle.StyleHint SH_WindowFrame_Mask
The mask of the window frame.
public static final QStyle.StyleHint SH_SpinControls_DisableOnBounds
Determines if the spin controls will shown as disabled when reaching the spin range boundary.
public static final QStyle.StyleHint SH_Dial_BackgroundRole
Defines the style's preferred background role (as QPalette::ColorRole) for a dial widget.
public static final QStyle.StyleHint SH_ComboBox_LayoutDirection
The layout direction for the combo box. By default it should be the same as indicated by the QStyleOption::direction variable.
public static final QStyle.StyleHint SH_ItemView_EllipsisLocation
The location where ellipses should be added for item text that is too long to fit in an view item.
public static final QStyle.StyleHint SH_ItemView_ShowDecorationSelected
When an item in an item view is selected, also highlight the branch or other decoration.
public static final QStyle.StyleHint SH_ItemView_ActivateItemOnSingleClick
Emit the activated signal when the user single clicks on an item in an item in an item view. Otherwise the signal is emitted when the user double clicks on an item.
public static final QStyle.StyleHint SH_ScrollBar_ContextMenu
Whether or not a scroll bar has a context menu.
public static final QStyle.StyleHint SH_ScrollBar_RollBetweenButtons
A boolean value. If true, when clicking a scroll bar button (SC_ScrollBarAddLine or SC_ScrollBarSubLine) and dragging over to the opposite button (rolling) will press the new button and release the old one. When it is false, the original button is released and nothing happens (like a push button).
public static final QStyle.StyleHint SH_Slider_AbsoluteSetButtons
Which mouse buttons cause a slider to set the value to the position clicked on.
public static final QStyle.StyleHint SH_Slider_PageSetButtons
Which mouse buttons cause a slider to page step the value.
public static final QStyle.StyleHint SH_Menu_KeyboardSearch
Typing causes a menu to be search for relevant items, otherwise only mnemnonic is considered.
public static final QStyle.StyleHint SH_TabBar_ElideMode
The default eliding style for a tab bar.
public static final QStyle.StyleHint SH_DialogButtonLayout
Controls how buttons are laid out in a QDialogButtonBox, returns a QDialogButtonBox::ButtonLayout enum.
public static final QStyle.StyleHint SH_ComboBox_PopupFrameStyle
The frame style used when drawing a combobox popup menu.
public static final QStyle.StyleHint SH_MessageBox_TextInteractionFlags
A boolean indicating if the text in a message box should allow user interfactions (e.g. selection) or not.
public static final QStyle.StyleHint SH_DialogButtonBox_ButtonsHaveIcons
Indicates whether or not StandardButtons in QDialogButtonBox should have icons or not.
public static final QStyle.StyleHint SH_SpellCheckUnderlineStyle
A QTextCharFormat::UnderlineStyle value that specifies the way misspelled words should be underlined.
public static final QStyle.StyleHint SH_MessageBox_CenterButtons
A boolean indicating whether the buttons in the message box should be centered or not (see QDialogButtonBox::setCentered()).
public static final QStyle.StyleHint SH_Menu_SelectionWrap
Whether popups should allow the selections to wrap, that is when selection should the next item be the first item.
public static final QStyle.StyleHint SH_ItemView_MovementWithoutUpdatingSelection
The item view is able to indicate a current item without changing the selection.
public static final QStyle.StyleHint SH_ToolTip_Mask
The mask of a tool tip.
public static final QStyle.StyleHint SH_FocusFrame_AboveWidget
The FocusFrame is stacked above the widget that it is "focusing on".
public static final QStyle.StyleHint SH_TextControl_FocusIndicatorTextCharFormat
Specifies the text format used to highlight focused anchors in rich text documents displayed for example in QTextBrowser. The format has to be a QTextCharFormat returned in the variant of the QStyleHintReturnVariant return value. The QTextFormat::OutlinePen property is used for the outline and QTextFormat::BackgroundBrush for the background of the highlighted area.
public static final QStyle.StyleHint SH_WizardStyle
Controls the look and feel of a QWizard. Returns a QWizard::WizardStyle enum.
public static final QStyle.StyleHint SH_ItemView_ArrowKeysNavigateIntoChildren
Controls whether the tree view will select the first child when it is exapanded and the right arrow key is pressed.
public static final QStyle.StyleHint SH_CustomBase
Base value for custom style hints. Custom values must be greater than this value.
public static final QStyle.StyleHint CustomEnum
Method Detail |
---|
public static final QStyle.StyleHint[] values()
for(QStyle.StyleHint c : QStyle.StyleHint.values()) System.out.println(c);
public static QStyle.StyleHint valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QStyle.StyleHint resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |