⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qstyleoption.cpp

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
*/#endif // QT_NO_SLIDER#ifndef QT_NO_SPINBOX/*!    \class QStyleOptionSpinBox    \brief The QStyleOptionSpinBox class is used to describe the    parameters necessary for drawing a spin box.    The QStyleOptionSpinBox is used for drawing QSpinBox and QDateTimeEdit.*//*!    Constructs a QStyleOptionSpinBox. The members variables are    initialized to default values.*/QStyleOptionSpinBox::QStyleOptionSpinBox()    : QStyleOptionComplex(Version, SO_SpinBox), buttonSymbols(QAbstractSpinBox::UpDownArrows),      stepEnabled(QAbstractSpinBox::StepNone), frame(false){}/*!    \internal*/QStyleOptionSpinBox::QStyleOptionSpinBox(int version)    : QStyleOptionComplex(version, SO_SpinBox), buttonSymbols(QAbstractSpinBox::UpDownArrows),      stepEnabled(QAbstractSpinBox::StepNone), frame(false){}/*!    \fn QStyleOptionSpinBox::QStyleOptionSpinBox(const QStyleOptionSpinBox &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionSpinBox::Type    Equals SO_SpinBox.*//*!    \variable QStyleOptionSpinBox::Version    Equals 1.*//*!    \variable QStyleOptionSpinBox::buttonSymbols    \brief The type of button symbols to draw for the spin box.    \sa QAbstractSpinBox::ButtonSymbols*//*!    \variable QStyleOptionSpinBox::stepEnabled    \brief Indicates which buttons of the spin box are enabled.    \sa QAbstractSpinBox::StepEnabled*//*!    \variable QStyleOptionSpinBox::frame    \brief Indicates whether whether the spin box has a frame.*/#endif // QT_NO_SPINBOX/*!    \class QStyleOptionQ3ListViewItem    \brief The QStyleOptionQ3ListViewItem class is used to describe an    item drawn in a Q3ListView.    This is used by the compatibility Q3ListView to draw its items.    It should be avoided for new classes.    \sa Q3ListView, Q3ListViewItem*//*!    \enum QStyleOptionQ3ListViewItem::Q3ListViewItemFeature    This enum describes the features a list view item can have.    \value None A standard item.    \value Expandable The item has children that can be shown.    \value MultiLine The item is more than one line tall.    \value Visible The item is visible.    \value ParentControl The item's parent is a type of item control (Q3CheckListItem::Controller).    \sa features, Q3ListViewItem::isVisible(), Q3ListViewItem::multiLinesEnabled(),        Q3ListViewItem::isExpandable()*//*!    Constructs a QStyleOptionQ3ListViewItem. The members variables are    initialized to default values.*/QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem()    : QStyleOption(Version, SO_Q3ListViewItem), features(None), height(0), totalHeight(0),      itemY(0), childCount(0){}/*!    \internal*/QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem(int version)    : QStyleOption(version, SO_Q3ListViewItem), features(None), height(0), totalHeight(0),      itemY(0), childCount(0){}/*!    \fn QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem(const QStyleOptionQ3ListViewItem &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionQ3ListViewItem::Type    Equals SO_Q3ListViewItem.*//*!    \variable QStyleOptionQ3ListViewItem::Version    Equals 1.*//*!    \variable QStyleOptionQ3ListViewItem::features    \brief The features for this item    This variable is a bitwise OR of the features of the item.    \sa Q3ListViewItemFeature*//*!    \variable QStyleOptionQ3ListViewItem::height    \brief The height of the item    This doesn't include the height of the item's children.    \sa Q3ListViewItem::height()*//*!    \variable QStyleOptionQ3ListViewItem::totalHeight    \brief The total height of the item, including its children    \sa Q3ListViewItem::totalHeight()*//*!    \variable QStyleOptionQ3ListViewItem::itemY    \brief The Y-coordinate for the item    \sa Q3ListViewItem::itemPos()*//*!    \variable QStyleOptionQ3ListViewItem::childCount    \brief The number of children the item has.*//*!    \class QStyleOptionQ3ListView    \brief The QStyleOptionQ3ListView class is used to describe the    parameters for drawing a Q3ListView.    The class is used for drawing the compat \l Q3ListView. It is not    recommended for use in new code.*//*!    Creates a QStyleOptionQ3ListView. The members variables are    initialized to default values.*/QStyleOptionQ3ListView::QStyleOptionQ3ListView()    : QStyleOptionComplex(Version, SO_Q3ListView), sortColumn(0), itemMargin(0), treeStepSize(0),      rootIsDecorated(false){}/*!    \internal*/QStyleOptionQ3ListView::QStyleOptionQ3ListView(int version)    : QStyleOptionComplex(version, SO_Q3ListView), sortColumn(0), itemMargin(0), treeStepSize(0),      rootIsDecorated(false){}/*!    \fn QStyleOptionQ3ListView::QStyleOptionQ3ListView(const QStyleOptionQ3ListView &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionQ3ListView::Type    Equals SO_Q3ListView.*//*!    \variable QStyleOptionQ3ListView::Version    Equals 1.*//*!    \variable QStyleOptionQ3ListView::items    \brief A list of items in the \l Q3ListView.    This is a list of \l {QStyleOptionQ3ListViewItem}s. The first item    can be used for most of the calculation that are needed for    drawing a list view. Any additional items are the children of    this first item, which may be used for additional information.    \sa QStyleOptionQ3ListViewItem*//*!    \variable QStyleOptionQ3ListView::viewportPalette    \brief The palette of Q3ListView's viewport.*//*!    \variable QStyleOptionQ3ListView::viewportBGRole    \brief The background role of \l Q3ListView's viewport.    \sa QWidget::backgroundRole()*//*!    \variable QStyleOptionQ3ListView::sortColumn    \brief The sort column of the list view.    \sa Q3ListView::sortColumn()*//*!    \variable QStyleOptionQ3ListView::itemMargin    \brief The margin for items in the list view.    \sa Q3ListView::itemMargin()*//*!    \variable QStyleOptionQ3ListView::treeStepSize    \brief The number of pixel to offset children items from their parents.    \sa Q3ListView::treeStepSize()*//*!    \variable QStyleOptionQ3ListView::rootIsDecorated    \brief Whether root items are decorated    \sa Q3ListView::rootIsDecorated()*//*!    \class QStyleOptionQ3DockWindow    \brief The QStyleOptionQ3DockWindow class is used to describe the    parameters for drawing various parts of a \l Q3DockWindow.    This class is used for drawing the old Q3DockWindow and its    parts. It is not recommended for new classes.*//*!    Constructs a QStyleOptionQ3DockWindow. The member variables are    initialized to default values.*/QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow()    : QStyleOption(Version, SO_Q3DockWindow), docked(false), closeEnabled(false){}/*!    \internal*/QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow(int version)    : QStyleOption(version, SO_Q3DockWindow), docked(false), closeEnabled(false){}/*!    \fn QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow(const QStyleOptionQ3DockWindow &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionQ3DockWindow::Type    Equals SO_Q3DockWindow.*//*!    \variable QStyleOptionQ3DockWindow::Version    Equals 1.*//*!    \variable QStyleOptionQ3DockWindow::docked    \brief Indicates that the dock window is currently docked.*//*!    \variable QStyleOptionQ3DockWindow::closeEnabled    \brief Indicates that the dock window has a close button.*//*!    \class QStyleOptionDockWidget    \brief The QStyleOptionDockWidget class is used to describe the    parameters for drawing a dock window.*//*!    Constructs a QStyleOptionDockWidget. The member variables are    initialized to default values.*/QStyleOptionDockWidget::QStyleOptionDockWidget()    : QStyleOption(Version, SO_DockWidget), movable(false){}/*!    \internal*/QStyleOptionDockWidget::QStyleOptionDockWidget(int version)    : QStyleOption(version, SO_DockWidget), closable(false),      movable(false), floatable(false){}/*!    \fn QStyleOptionDockWidget::QStyleOptionDockWidget(const QStyleOptionDockWidget &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionDockWidget::Type    Equals SO_DockWidget.*//*!    \variable QStyleOptionDockWidget::Version    Equals 1.*//*!    \variable QStyleOptionDockWidget::title    \brief The title of the dock window*//*!    \variable QStyleOptionDockWidget::closable    \brief Indicates that the dock window is closable.*//*!    \variable QStyleOptionDockWidget::movable    \brief Indicates that the dock window is movable.*//*!    \variable QStyleOptionDockWidget::floatable    \brief Indicates that the dock window is floatable.*//*!    \class QStyleOptionToolButton    \brief The QStyleOptionToolButton class is used to describe the    parameters for drawing a tool button.    The QStyleOptionToolButton class is used for drawing QToolButton.*//*!    \enum QStyleOptionToolButton::ToolButtonFeature    Describes the various features that a tool button can have.    \value None A normal tool button.    \value Arrow The tool button is an arrow.    \value Menu The tool button has a menu.    \value PopupDelay There is a delay to showing the menu.    \sa features, QToolButton::toolButtonStyle(), QToolButton::popupMode()*//*!    Constructs a QStyleOptionToolButton. The members variables are    initialized to default values.*/QStyleOptionToolButton::QStyleOptionToolButton()    : QStyleOptionComplex(Version, SO_ToolButton), features(None), arrowType(Qt::DownArrow)    , toolButtonStyle(Qt::ToolButtonIconOnly){}/*!    \internal*/QStyleOptionToolButton::QStyleOptionToolButton(int version)    : QStyleOptionComplex(version, SO_ToolButton), features(None), arrowType(Qt::DownArrow)    , toolButtonStyle(Qt::ToolButtonIconOnly){}/*!    \fn QStyleOptionToolButton::QStyleOptionToolButton(const QStyleOptionToolButton &other)    Constructs a copy of the \a other style option.*//*!    \variable QStyleOptionToolButton::Type    Equals SO_ToolButton.*//*!    \variable QStyleOptionToolButton::Version    Equals 1.*//*!    \variable QStyleOptionToolButton::features    \brief The features of the tool button.    This variable is a bitwise OR describing the features of the button.    \sa ToolButtonFeature*//*!    \variable QStyleOptionToolButton::icon    \brief The icon for the tool button.    \sa iconSize*//*!    \variable QStyleOptionToolButton::iconSize    \brief the size of the icon for the tool button*//*!    \variable QStyleOptionToolButton::text    \brief The text of the tool button.    This value is only used if toolButtonStyle is Qt::ToolButtonTextUnderIcon,    Qt::ToolButtonTextBe

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -