diff --git a/src/plugins/qmldesigner/components/componentcore/selectioncontext.cpp b/src/plugins/qmldesigner/components/componentcore/selectioncontext.cpp index d08a74aa1bc..298eb855c38 100644 --- a/src/plugins/qmldesigner/components/componentcore/selectioncontext.cpp +++ b/src/plugins/qmldesigner/components/componentcore/selectioncontext.cpp @@ -30,10 +30,7 @@ namespace QmlDesigner { -SelectionContext::SelectionContext() -{ - -} +SelectionContext::SelectionContext() = default; SelectionContext::SelectionContext(AbstractView *view) : m_view(view) diff --git a/src/plugins/qmldesigner/components/componentcore/selectioncontext.h b/src/plugins/qmldesigner/components/componentcore/selectioncontext.h index ad94bae72af..594fc2f6e5c 100644 --- a/src/plugins/qmldesigner/components/componentcore/selectioncontext.h +++ b/src/plugins/qmldesigner/components/componentcore/selectioncontext.h @@ -65,8 +65,8 @@ public: private: QPointer m_view; ModelNode m_targetNode; - bool m_showSelectionTools = false; QPointF m_scenePosition; + bool m_showSelectionTools = false; bool m_toggled = false; };