Add a generic Qt::Edge enum
The values are Top/Left/Right/BottomEdge and values specified so that it can be extended as flags later. Change-Id: I67482265e14d89942a8f59bf09e9e3fadab8243f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
parent
7015b464c0
commit
b6e9a8f21a
@ -63,7 +63,7 @@ Qt {
|
||||
Q_ENUMS(ScrollBarPolicy FocusPolicy ContextMenuPolicy)
|
||||
Q_ENUMS(ArrowType ToolButtonStyle PenStyle PenCapStyle PenJoinStyle BrushStyle)
|
||||
Q_ENUMS(FillRule MaskMode BGMode ClipOperation SizeMode)
|
||||
Q_ENUMS(Axis Corner LayoutDirection SizeHint Orientation DropAction)
|
||||
Q_ENUMS(Axis Corner Edge LayoutDirection SizeHint Orientation DropAction)
|
||||
Q_FLAGS(Alignment Orientations DropActions)
|
||||
Q_FLAGS(DockWidgetAreas ToolBarAreas)
|
||||
Q_ENUMS(DockWidgetArea ToolBarArea)
|
||||
@ -1202,6 +1202,13 @@ public:
|
||||
BottomRightCorner = 0x00003
|
||||
};
|
||||
|
||||
enum Edge {
|
||||
TopEdge = 0x00001,
|
||||
LeftEdge = 0x00002,
|
||||
RightEdge = 0x00004,
|
||||
BottomEdge = 0x00008
|
||||
};
|
||||
|
||||
enum ConnectionType {
|
||||
AutoConnection,
|
||||
DirectConnection,
|
||||
|
@ -1709,6 +1709,17 @@
|
||||
\value BottomRightCorner The bottom-right corner of the rectangle.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\enum Qt::Edge
|
||||
|
||||
This enum type specifies an edge in a rectangle:
|
||||
|
||||
\value TopEdge The top edge of the rectangle.
|
||||
\value LeftEdge The left edge of the rectangle.
|
||||
\value RightEdge The right edge of the rectangle.
|
||||
\value BottomEdge The bottom edge of the rectangle.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\enum Qt::ScrollBarPolicy
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user