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:
J-P Nurmi 2013-03-11 19:19:32 +01:00 committed by The Qt Project
parent 7015b464c0
commit b6e9a8f21a
2 changed files with 19 additions and 1 deletions

View File

@ -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,

View File

@ -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