Qt 4.8
|
#include <qglobal.h>
#include "qstylesheetstyle_p.h"
#include "private/qcssutil_p.h"
#include <qdebug.h>
#include <qapplication.h>
#include <qmenu.h>
#include <qmenubar.h>
#include <qpainter.h>
#include <qstyleoption.h>
#include <qlineedit.h>
#include <qwindowsstyle.h>
#include <qcombobox.h>
#include <qplastiquestyle.h>
#include "private/qcssparser_p.h"
#include "private/qmath_p.h"
#include <qabstractscrollarea.h>
#include "private/qabstractscrollarea_p.h"
#include <qtooltip.h>
#include <qshareddata.h>
#include <qradiobutton.h>
#include <qtoolbutton.h>
#include <qscrollbar.h>
#include <qstring.h>
#include <qfile.h>
#include <qcheckbox.h>
#include <qstatusbar.h>
#include <qheaderview.h>
#include <qprogressbar.h>
#include <private/qwindowsstyle_p.h>
#include <qtabbar.h>
#include <QMetaProperty>
#include <qmainwindow.h>
#include <qdockwidget.h>
#include <qmdisubwindow.h>
#include <qdialog.h>
#include <private/qwidget_p.h>
#include <QAbstractSpinBox>
#include <QLabel>
#include "qdrawutil.h"
#include <limits.h>
#include <QtGui/qtoolbar.h>
#include "moc_qstylesheetstyle_p.cpp"
Go to the source code of this file.
Classes | |
struct | PseudoElementInfo |
class | QRenderRule |
struct | QStyleSheetBackgroundData |
struct | QStyleSheetBorderData |
struct | QStyleSheetBorderImageData |
struct | QStyleSheetBoxData |
struct | QStyleSheetGeometryData |
struct | QStyleSheetImageData |
struct | QStyleSheetOutlineData |
struct | QStyleSheetPaletteData |
struct | QStyleSheetPositionData |
class | QStyleSheetStylePrivate |
class | QStyleSheetStyleRecursionGuard |
class | QStyleSheetStyleSelector |
Macros | |
#define | ceil(x) ((int)(x) + ((x) > 0 && (x) != (int)(x))) |
#define | RECURSION_GUARD(RETURN) |
#define | WIDGET(x) (static_cast<QWidget *>(x.ptr)) |
Functions | |
static QWidget * | containerWidget (const QWidget *w) |
static QVector< Declaration > | declarations (const QVector< StyleRule > &styleRules, const QString &part, quint64 pseudoClass=PseudoClass_Unspecified) |
static Origin | defaultOrigin (int pe) |
static Qt::Alignment | defaultPosition (int pe) |
static PositionMode | defaultPositionMode (int pe) |
static QWidget * | embeddedWidget (QWidget *w) |
static quint64 | extendedPseudoClass (const QWidget *w) |
static QWidget * | parentWidget (const QWidget *w) |
static QLatin1String | propertyNameForStandardPixmap (QStyle::StandardPixmap sp) |
static quint64 | pseudoClass (QStyle::State state) |
static void | qt_check_if_internal_widget (const QWidget **w, int *element) |
static QStyle::StandardPixmap | subControlIcon (int pe) |
static QList< QVariant > | subControlLayout (const QString &layout) |
static bool | unstylable (const QWidget *w) |
static void | updateWidgets (const QList< const QWidget *> &widgets) |
static bool | verticalTabs (QTabBar::Shape shape) |
Variables | |
static const QStyleSheetStyle * | globalStyleSheetStyle = 0 |
static const PseudoElementInfo | knownPseudoElements [NumPseudoElements] |
static const char * | knownStyleHints [] |
static const int | numKnownStyleHints = sizeof(knownStyleHints)/sizeof(knownStyleHints[0]) |
static QStyleSheetStyleCaches * | styleSheetCaches = 0 |
#define ceil | ( | x | ) | ((int)(x) + ((x) > 0 && (x) != (int)(x))) |
Definition at line 129 of file qstylesheetstyle.cpp.
Referenced by QPatternist::Decimal::ceiling(), QPatternist::AbstractFloat< isDouble >::ceiling(), QStyleSheetStyle::drawControl(), qCeil(), and QSmoothedAnimation::recalc().
#define RECURSION_GUARD | ( | RETURN | ) |
Definition at line 125 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::drawComplexControl(), QStyleSheetStyle::drawControl(), QStyleSheetStyle::drawPrimitive(), QStyleSheetStyle::hitTestComplexControl(), QStyleSheetStyle::pixelMetric(), QStyleSheetStyle::polish(), QStyleSheetStyle::sizeFromContents(), QStyleSheetStyle::standardIconImplementation(), QStyleSheetStyle::standardPixmap(), QStyleSheetStyle::styleHint(), QStyleSheetStyle::styleSheetPalette(), QStyleSheetStyle::subControlRect(), QStyleSheetStyle::subElementRect(), and QStyleSheetStyle::unpolish().
Definition at line 1409 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyleSelector::attribute(), QStyleSheetStyleSelector::nodeIds(), QStyleSheetStyleSelector::nodeNameEquals(), QStyleSheetStyleSelector::nodeNames(), and QStyleSheetStyleSelector::parentNode().
enum PseudoElement |
Definition at line 131 of file qstylesheetstyle.cpp.
if w is not embedded, return w itself
Definition at line 2356 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::drawPrimitive(), QStyleSheetStyle::styleSheetPalette(), unstylable(), and QStyleSheetStyle::updateStyleSheetFont().
|
static |
Definition at line 1597 of file qstylesheetstyle.cpp.
Referenced by QScript::AST::VariableStatement::accept0(), QScript::AST::LocalForStatement::accept0(), QDeclarativeJS::AST::VariableStatement::accept0(), QDeclarativeJS::AST::LocalForStatement::accept0(), QStyleSheetStyle::hasStyleRule(), QStyleSheetStyle::renderRule(), QDeclarativeXmlListModel::setNamespaceDeclarations(), QStyleSheetStyle::setProperties(), and QTextHtmlParserNode::uncollapsedMargin().
|
static |
Definition at line 2061 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::positionRect(), and QStyleSheetStyle::subControlRect().
|
static |
Definition at line 2109 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::positionRect().
|
static |
Definition at line 2261 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::positionRect().
Definition at line 2325 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::polish(), QStyleSheetStyle::setPalette(), and QStyleSheetStyle::unsetPalette().
Definition at line 2410 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::setGeometry(), QStyleSheetStyle::setPalette(), QStyleSheetStyle::styleSheetPalette(), and QStyleSheetStyle::updateStyleSheetFont().
Definition at line 1411 of file qstylesheetstyle.cpp.
Referenced by QGraphicsAnchorLayoutPrivate::addAnchor(), QLayout::addChildLayout(), QLayout::addChildWidget(), QLayout::alignmentRect(), QWidgetPrivate::create_sys(), QWidget::destroy(), getNetWmState(), QFormLayoutPrivate::getStyle(), QToolBarPrivate::init(), QTabBar::initStyleOption(), QWidgetPrivate::isBackgroundInherited(), isServerProcess(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), QStyleSheetStyleSelector::parentNode(), q_createNativeChildrenAndSetParent(), qt_mac_unregister_widget(), qt_mac_update_widget_position(), QWidgetPrivate::raise_sys(), QMainWindowLayout::removeFromMacToolbar(), QMainWindowLayout::removeToolBar(), QGraphicsWidgetPrivate::resolveLayoutDirection(), QDeclarativeVME::run(), QWidget::setShown(), QBoxLayoutPrivate::setupGeom(), QGridLayoutPrivate::setupSpacings(), QXlibWindow::setVisible(), QWidget::setWindowState(), QStyleSheetStyle::styleRules(), QMdiAreaTabBar::subWindowFromIndex(), QCoreFuriCuri::timerEvent(), QMainWindowLayout::toggleToolBarsVisible(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumSize(), QLayout::totalSizeHint(), QAccessible::updateAccessibility(), QGraphicsProxyWidgetPrivate::updateProxyGeometryFromWidget(), and updateRedirectedToGraphicsProxyWidget().
|
static |
Definition at line 5013 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::standardIconImplementation(), and QStyleSheetStyle::standardPixmap().
|
static |
Definition at line 1651 of file qstylesheetstyle.cpp.
Referenced by declarations(), QCss::StyleSelector::declarationsForNode(), QStyleSheetStyle::renderRule(), and QStyleSheetStyle::styleSheetPalette().
|
static |
Definition at line 1700 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::renderRule().
|
static |
Definition at line 845 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::drawComplexControl().
Definition at line 690 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::drawComplexControl(), QRenderRule::QRenderRule(), QStyleSheetStyle::sizeFromContents(), QStyleSheetStyle::subControlRect(), and QStyleSheetStyle::titleBarLayout().
|
static |
Definition at line 2385 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::initWidget().
Definition at line 2587 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::repolish().
|
inlinestatic |
Definition at line 2836 of file qstylesheetstyle.cpp.
Referenced by QCommonStyle::drawControl(), QMacStyle::drawControl(), QStyleSheetStyle::sizeFromContents(), QCommonStyle::subElementRect(), and QCommonStylePrivate::tabLayout().
|
static |
Definition at line 113 of file qstylesheetstyle.cpp.
Referenced by QRenderRule::QRenderRule().
|
static |
Definition at line 220 of file qstylesheetstyle.cpp.
|
static |
Definition at line 599 of file qstylesheetstyle.cpp.
Referenced by QRenderRule::QRenderRule().
|
static |
Definition at line 688 of file qstylesheetstyle.cpp.
Referenced by QRenderRule::QRenderRule().
|
static |
Definition at line 102 of file qstylesheetstyle.cpp.
Referenced by QStyleSheetStyle::~QStyleSheetStyle().