Don't depend directly on QSizePolicy, as that's QtWidgets

Introduce our own enum. Soon our qtquick frontend won't link
against QtWidgets
This commit is contained in:
Sergio Martins
2022-06-11 18:22:38 +01:00
parent e120f6f318
commit 1acbf48786
18 changed files with 82 additions and 36 deletions

View File

@@ -204,6 +204,16 @@ enum class DropIndicatorType
};
Q_ENUM_NS(DropIndicatorType)
enum class SizePolicy
{
Fixed = 0,
Minimum = 1,
Maximum = 4,
Preferred = 5,
Expanding = 7
};
Q_ENUM_NS(SizePolicy)
///@internal
enum SuggestedGeometryHint {
SuggestedGeometryHint_None,