aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp b/src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp
index ef24dea8a37..26c13902176 100644
--- a/src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/contentnoteditableindicator.cpp
@@ -37,9 +37,7 @@ ContentNotEditableIndicator::ContentNotEditableIndicator(LayerItem *layerItem)
}
-ContentNotEditableIndicator::ContentNotEditableIndicator()
-{
-}
+ContentNotEditableIndicator::ContentNotEditableIndicator() = default;
ContentNotEditableIndicator::~ContentNotEditableIndicator()
{
@@ -92,7 +90,7 @@ void ContentNotEditableIndicator::addAddiationEntries(const QList<FormEditorItem
if (modelNode.metaInfo().isValid() && modelNode.metaInfo().isSubclassOf("QtQuick.Loader")) {
if (!m_entryList.contains(EntryPair(formEditorItem, 0))) {
- QGraphicsRectItem *indicatorShape = new QGraphicsRectItem(m_layerItem);
+ auto indicatorShape = new QGraphicsRectItem(m_layerItem);
QPen linePen;
linePen.setCosmetic(true);
linePen.setColor(QColor(0xa0, 0xa0, 0xa0));