summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/graphicsview')
-rw-r--r--src/widgets/graphicsview/qgraphicsanchorlayout_p.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h
index e945c5d6b6..f82e58873a 100644
--- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h
@@ -392,30 +392,9 @@ public:
MaxPreferredToMaximum
};
- // Several structures internal to the layout are duplicated to handle
- // both Horizontal and Vertical restrictions.
- //
- // Orientation is used to reference the right structure in each context
- enum Orientation {
- Horizontal = 0,
- Vertical,
- };
-
- template <typename T>
- class QHVContainer : public QT_PREPEND_NAMESPACE(QHVContainer)<T>
- {
- using Base = QT_PREPEND_NAMESPACE(QHVContainer)<T>;
- static constexpr Qt::Orientation map(Orientation o) noexcept
- { return static_cast<Qt::Orientation>(int(o) + 1); }
- public:
- using Base::Base;
- using Base::operator[];
-
- constexpr const T &operator[](Orientation o) const noexcept
- { return this->operator[](map(o)); }
- constexpr T &operator[](Orientation o) noexcept
- { return this->operator[](map(o)); }
- };
+ typedef Qt::Orientation Orientation [[deprecated]];
+ [[deprecated]] static inline constexpr Qt::Orientation Horizontal = Qt::Horizontal;
+ [[deprecated]] static inline constexpr Qt::Orientation Vertical = Qt::Vertical;
QGraphicsAnchorLayoutPrivate();