Complete documentation for QStyleOptionHeaderV2
Document the isSectionDragTarget variable, and add \inmodule command. Put code and documentation together. Amends 4c6579eacded086ad014b0fd2432095362c1d131. Change-Id: Id8837ca75cd6af13c8dc4c028b304b279e507ade Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit 7f1dc4bb750f412482a55e4f52e29751d2b4120d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b147c28e27
commit
ef193ccaed
@ -752,28 +752,6 @@ QStyleOptionHeader::QStyleOptionHeader(int version)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
\class QStyleOptionHeaderV2
|
|
||||||
\brief The QStyleOptionHeaderV2 class is used to describe the
|
|
||||||
parameters for drawing a header.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*!
|
|
||||||
Constructs a QStyleOptionHeaderV2, initializing the members
|
|
||||||
variables to their default values.
|
|
||||||
*/
|
|
||||||
QStyleOptionHeaderV2::QStyleOptionHeaderV2()
|
|
||||||
: QStyleOptionHeaderV2(QStyleOptionHeader::Version)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\internal
|
|
||||||
*/
|
|
||||||
QStyleOptionHeaderV2::QStyleOptionHeaderV2(int version)
|
|
||||||
: QStyleOptionHeader(version), textElideMode(Qt::ElideNone), isSectionDragTarget(false), unused(0)
|
|
||||||
{}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\variable QStyleOptionHeader::orientation
|
\variable QStyleOptionHeader::orientation
|
||||||
\brief the header's orientation (horizontal or vertical)
|
\brief the header's orientation (horizontal or vertical)
|
||||||
@ -913,6 +891,30 @@ QStyleOptionHeaderV2::QStyleOptionHeaderV2(int version)
|
|||||||
\sa sortIndicator
|
\sa sortIndicator
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\class QStyleOptionHeaderV2
|
||||||
|
\brief The QStyleOptionHeaderV2 class is used to describe the
|
||||||
|
parameters for drawing a header.
|
||||||
|
|
||||||
|
\inmodule QtWidgets
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Constructs a QStyleOptionHeaderV2, initializing the members
|
||||||
|
variables to their default values.
|
||||||
|
*/
|
||||||
|
QStyleOptionHeaderV2::QStyleOptionHeaderV2()
|
||||||
|
: QStyleOptionHeaderV2(QStyleOptionHeader::Version)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\internal
|
||||||
|
*/
|
||||||
|
QStyleOptionHeaderV2::QStyleOptionHeaderV2(int version)
|
||||||
|
: QStyleOptionHeader(version), textElideMode(Qt::ElideNone), isSectionDragTarget(false), unused(0)
|
||||||
|
{}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\variable QStyleOptionHeaderV2::textElideMode
|
\variable QStyleOptionHeaderV2::textElideMode
|
||||||
\brief where ellipsis should be added for text that is too long to fit
|
\brief where ellipsis should be added for text that is too long to fit
|
||||||
@ -923,6 +925,15 @@ QStyleOptionHeaderV2::QStyleOptionHeaderV2(int version)
|
|||||||
\sa Qt::TextElideMode
|
\sa Qt::TextElideMode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\variable QStyleOptionHeaderV2::isSectionDragTarget
|
||||||
|
|
||||||
|
\brief whether the section is the location at which a dragged section
|
||||||
|
will be inserted
|
||||||
|
|
||||||
|
\sa QHeaderView::setSectionsMovable
|
||||||
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QStyleOptionButton
|
\class QStyleOptionButton
|
||||||
\brief The QStyleOptionButton class is used to describe the
|
\brief The QStyleOptionButton class is used to describe the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user