diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-08 13:49:49 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-15 16:23:21 +0100 |
commit | e8a4f4a92cfbab9fd43aea326dc5a7c88dbe390a (patch) | |
tree | 368c889fe1a1be32eea35730c7722cb6d04db8de /src/designer/src/components/formeditor/layout_propertysheet.cpp | |
parent | ec4b367cc41375564b6869cea833b60484965ac9 (diff) |
Qt Designer: Fix Qt API usage
Replace:
empty() by isEmpty()
front()/back() by constFirst()/constLast(), preventing detaching
Streamline some code.
Task-number: QTBUG-79896
Change-Id: Ic3f8414db79a83a30b55369a9352f332b41aa621
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/formeditor/layout_propertysheet.cpp')
-rw-r--r-- | src/designer/src/components/formeditor/layout_propertysheet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/formeditor/layout_propertysheet.cpp b/src/designer/src/components/formeditor/layout_propertysheet.cpp index e0e456d32..0bb3ecb2f 100644 --- a/src/designer/src/components/formeditor/layout_propertysheet.cpp +++ b/src/designer/src/components/formeditor/layout_propertysheet.cpp @@ -103,7 +103,7 @@ static bool isIntegerList(const QString &s) static LayoutPropertyType layoutPropertyType(const QString &name) { static QHash<QString, LayoutPropertyType> namePropertyMap; - if (namePropertyMap.empty()) { + if (namePropertyMap.isEmpty()) { namePropertyMap.insert(QLatin1String(leftMargin), LayoutPropertyLeftMargin); namePropertyMap.insert(QLatin1String(topMargin), LayoutPropertyTopMargin); namePropertyMap.insert(QLatin1String(rightMargin), LayoutPropertyRightMargin); |