Docs: fix QStyle related warnings
authorJ-P Nurmi <jpnurmi@digia.com>
Thu, 29 Nov 2012 14:12:35 +0000 (15:12 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Dec 2012 13:46:13 +0000 (14:46 +0100)
Change-Id: I4e67e34ecc0fc8050938a681b2c393b8442fce2e
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
src/widgets/doc/src/widgets-and-layouts/styles.qdoc
src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
src/widgets/styles/qcommonstyle.cpp
src/widgets/styles/qmacstyle.qdoc
src/widgets/styles/qstyleoption.cpp

index 0154b2c..51812ec 100644 (file)
     toolbars with equal orientation (vertical or horizontal) placed
     next to each other.
 
-    \l{QToolbar}{QToolbar}s in Qt consist of three elements:
+    \l{QToolBar}{Toolbars} in Qt consist of three elements:
     \c CE_ToolBar, \c PE_IndicatorToolBarHandle, and
     \c PE_IndicatorToolBarSeparator. It is QMainWindowLayout that
     calculates the bounding rectangles (i.e., position and size of the
     The dotted lines indicate that the QToolBar keeps an instance of
     QToolBarLayout and that QToolBarSeparators are kept by
     QToolBarLayout. When the toolbar is floating (i.e., has its own
-    window) the \c PE_FrameMenu element is drawn, else QToolbar draws
+    window) the \c PE_FrameMenu element is drawn, else QToolBar draws
     \c CE_ToolBar.
 
     Here is an image of a toolbar in the Java style:
index b160a22..2d9d5bb 100644 (file)
 
 /*!
     \page stylesheet-syntax.html
-    \contentspage {Qt Style Sheet}{Contents}
-    \previouspage Qt Style Sheet
+    \contentspage {Qt Style Sheets}{Contents}
+    \previouspage Qt Style Sheets
     \nextpage Qt Designer Integration
     \title The Style Sheet Syntax
 
 
 /*!
     \page stylesheet-designer.html
-    \contentspage {Qt Style Sheet}{Contents}
+    \contentspage {Qt Style Sheets}{Contents}
     \previouspage The Style Sheet Syntax
     \nextpage Customizing Qt Widgets Using Style Sheets
     \title Qt Designer Integration
 
 /*!
     \page stylesheet-customizing.html
-    \contentspage {Qt Style Sheet}{Contents}
+    \contentspage {Qt Style Sheets}{Contents}
     \previouspage Qt Designer Integration
     \nextpage Qt Style Sheets Reference
     \title Customizing Qt Widgets Using Style Sheets
 
 /*!
     \page stylesheet-reference.html
-    \contentspage {Qt Style Sheet}{Contents}
+    \contentspage {Qt Style Sheets}{Contents}
     \previouspage Customizing Qt Widgets Using Style Sheets
     \nextpage Qt Style Sheets Examples
     \title Qt Style Sheets Reference
         \li \b{\c bottom} \target bottom-prop
         \li \l{#Length}{Length}
         \li If \l{#position-prop}{position} is \c relative (the
-           default), moves a \l{subcontrol} by a certain offset up;
+           default), moves a subcontrol by a certain offset up;
            specifying \tt{bottom: \e{y}} is then equivalent to
            specifying \tt{\l{Qt Style Sheets Reference#top-prop}{top}: -\e{y}}.
 
     \row
         \li \b{\c height} \target height-prop
         \li \l{#Length}{Length}
-        \li The height of a \l{subcontrol} (or in some case, a widget).
+        \li The height of a subcontrol (or in some case, a widget).
 
            If this property is not specified, it defaults to a value
            that depends on the subcontrol/widget and on the current style.
         \li \b{\c image}* \target image-prop
         \li \l{#Url}{Url}+
         \li The image that is drawn in the contents rectangle of a
-           \l{subcontrol}.
+           subcontrol.
 
            The image property accepts a list of \l{#Url}{Url}s or
            an \c{svg}. The actual image that is drawn is determined
            image within the rectangle can be specified using
            \l{image-position-prop}{image-position}.
 
-           This property is for \l{subcontrol}s only--we don't support it for
+           This property is for subcontrols only--we don't support it for
            other elements.
 
            \warning The QIcon SVG plugin is needed to render SVG images.
         \li \b{\c left} \target left-prop
         \li \l{#Length}{Length}
         \li If \l{#position-prop}{position} is \c relative (the
-           default), moves a \l{subcontrol} by a certain offset to
+           default), moves a subcontrol by a certain offset to
            the right.
 
            If \l{#position-prop}{position} is \c absolute, the \c
         \li \b{\c right} \target right-prop
         \li \l{#Length}{Length}
         \li If \l{#position-prop}{position} is \c relative (the
-           default), moves a \l{subcontrol} by a certain offset to
+           default), moves a subcontrol by a certain offset to
            the left; specifying \tt{right: \e{x}} is then equivalent
            to specifying \tt{\l{Qt Style Sheets Reference#left-prop}{left}: -\e{x}}.
 
     \row
         \li \b{\c subcontrol-origin*} \target subcontrol-origin-prop
         \li \l{#Origin}{Origin}
-        \li The origin rectangle of the \l subcontrol within the
+        \li The origin rectangle of the subcontrol within the
            parent element.
 
            If this property is not specified, the default is \c
     \row
         \li \b{\c subcontrol-position*} \target subcontrol-position-prop
         \li \l{#Alignment}{Alignment}
-        \li The alignment of the \l subcontrol within the origin
+        \li The alignment of the subcontrol within the origin
            rectangle specified by \l{Qt Style Sheets Reference#subcontrol-origin-prop}
            {subcontrol-origin}.
 
         \li \b{\c top} \target top-prop
         \li \l{#Length}{Length}
         \li If \l{#position-prop}{position} is \c relative (the
-           default), moves a \l{subcontrol} by a certain offset
+           default), moves a subcontrol by a certain offset
            down.
 
            If \l{#position-prop}{position} is \c absolute, the \c top
     \row
         \li \b{\c width} \target width-prop
         \li \l{#Length}{Length}
-        \li The width of a \l{subcontrol} (or a widget in some cases).
+        \li The width of a subcontrol (or a widget in some cases).
 
            If this property is not specified, it defaults to a value
            that depends on the subcontrol/widget and on the current style.
 
 /*!
     \page stylesheet-examples.html
-    \contentspage {Qt Style Sheet}{Contents}
+    \contentspage {Qt Style Sheets}{Contents}
     \previouspage Qt Style Sheets Reference
     \title Qt Style Sheets Examples
 
index f25f035..a7b7edb 100644 (file)
@@ -108,7 +108,7 @@ QT_BEGIN_NAMESPACE
     subElementRect() are documented here.
     \endomit
 
-    \sa QStyle, QWindowsStyle
+    \sa QStyle, QProxyStyle
 */
 
 /*!
index caa6bfa..29f4175 100644 (file)
     or Qt::WA_MacNormalSize instead.
 */
 
-/*! \fn QMacStyle::WidgetSizePolicy QMacStyle::widgetSizePolicy(const QWidget *widget)
+/*! \fn QMacStyle::WidgetSizePolicy QMacStyle::widgetSizePolicy(const QWidget *widget, const QStyleOption *opt = 0)
     \obsolete
 
     Call QWidget::testAttribute() with Qt::WA_MacMiniSize, Qt::WA_MacSmallSize,
index 0ec42e4..1c2df68 100644 (file)
@@ -578,6 +578,7 @@ QStyleOptionFrame::QStyleOptionFrame(int version)
 
     \value None Indicates a normal frame.
     \value Flat Indicates a flat frame.
+    \value Rounded Indicates a rounded frame.
 */
 
 /*!