QmlDesigner: Modernize

modernize-use-using

Change-Id: Ia8eef3d97db7b99ec813a030e1f39ee492d6cf9a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2018-07-31 17:11:50 +02:00
parent 0c2bc9c2da
commit 2cb238471a
14 changed files with 33 additions and 30 deletions

View File

@@ -41,8 +41,8 @@ namespace Internal {
class AnchorChangesNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<AnchorChangesNodeInstance> Pointer;
typedef QWeakPointer<AnchorChangesNodeInstance> WeakPointer;
using Pointer = QSharedPointer<AnchorChangesNodeInstance>;
using WeakPointer = QWeakPointer<AnchorChangesNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -33,8 +33,8 @@ namespace Internal {
class BehaviorNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<BehaviorNodeInstance> Pointer;
typedef QWeakPointer<BehaviorNodeInstance> WeakPointer;
using Pointer = QSharedPointer<BehaviorNodeInstance>;
using WeakPointer = QWeakPointer<BehaviorNodeInstance>;
BehaviorNodeInstance(QObject *object);

View File

@@ -37,8 +37,9 @@ namespace Internal {
class ComponentNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<ComponentNodeInstance> Pointer;
typedef QWeakPointer<ComponentNodeInstance> WeakPointer;
using Pointer = QSharedPointer<ComponentNodeInstance>;
using WeakPointer = QWeakPointer<ComponentNodeInstance>;
ComponentNodeInstance(QQmlComponent *component);
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -35,8 +35,8 @@ namespace Internal {
class DummyNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<DummyNodeInstance> Pointer;
typedef QWeakPointer<DummyNodeInstance> WeakPointer;
using Pointer = QSharedPointer<DummyNodeInstance>;
using WeakPointer = QWeakPointer<DummyNodeInstance>;
static Pointer create();

View File

@@ -34,8 +34,8 @@ class LayoutNodeInstance : public QuickItemNodeInstance
{
public:
typedef QSharedPointer<LayoutNodeInstance> Pointer;
typedef QWeakPointer<LayoutNodeInstance> WeakPointer;
using Pointer = QSharedPointer<LayoutNodeInstance>;
using WeakPointer = QWeakPointer<LayoutNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -65,10 +65,11 @@ class NodeInstanceServer : public NodeInstanceServerInterface
{
Q_OBJECT
public:
typedef QPair<QPointer<QObject>, PropertyName> ObjectPropertyPair;
typedef QPair<qint32, QString> IdPropertyPair;
typedef QPair<ServerNodeInstance, PropertyName> InstancePropertyPair;
typedef QPair<QString, QPointer<QObject> > DummyPair;
using ObjectPropertyPair = QPair<QPointer<QObject>, PropertyName>;
using IdPropertyPair = QPair<qint32, QString>;
using InstancePropertyPair= QPair<ServerNodeInstance, PropertyName>;
using DummyPair = QPair<QString, QPointer<QObject> >;
explicit NodeInstanceServer(NodeInstanceClientInterface *nodeInstanceClient);

View File

@@ -36,8 +36,9 @@ namespace QmlDesigner {
namespace Internal {
class ObjectNodeInstance;
typedef QSharedPointer<ObjectNodeInstance> ObjectNodeInstancePointer;
typedef QWeakPointer<ObjectNodeInstance> ObjectNodeInstanceWeakPointer;
using ObjectNodeInstancePointer = QSharedPointer<ObjectNodeInstance>;
using ObjectNodeInstanceWeakPointer = QWeakPointer<ObjectNodeInstance>;
class NodeInstanceSignalSpy : public QObject
{

View File

@@ -60,8 +60,8 @@ class WidgetNodeInstance;
class ObjectNodeInstance
{
public:
typedef QSharedPointer<ObjectNodeInstance> Pointer;
typedef QWeakPointer<ObjectNodeInstance> WeakPointer;
using Pointer = QSharedPointer<ObjectNodeInstance>;
using WeakPointer = QWeakPointer<ObjectNodeInstance>;
virtual ~ObjectNodeInstance();
void destroy();

View File

@@ -37,8 +37,8 @@ namespace Internal {
class PositionerNodeInstance : public QuickItemNodeInstance
{
public:
typedef QSharedPointer<PositionerNodeInstance> Pointer;
typedef QWeakPointer<PositionerNodeInstance> WeakPointer;
using Pointer = QSharedPointer<PositionerNodeInstance>;
using WeakPointer = QWeakPointer<PositionerNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -39,8 +39,8 @@ class QmlPropertyChangesNodeInstance;
class QmlPropertyChangesNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<QmlPropertyChangesNodeInstance> Pointer;
typedef QWeakPointer<QmlPropertyChangesNodeInstance> WeakPointer;
using Pointer = QSharedPointer<QmlPropertyChangesNodeInstance>;
using WeakPointer = QWeakPointer<QmlPropertyChangesNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -34,8 +34,8 @@ namespace Internal {
class QmlStateNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<QmlStateNodeInstance> Pointer;
typedef QWeakPointer<QmlStateNodeInstance> WeakPointer;
using Pointer = QSharedPointer<QmlStateNodeInstance>;
using WeakPointer = QWeakPointer<QmlStateNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -33,8 +33,8 @@ namespace Internal {
class QmlTransitionNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<QmlTransitionNodeInstance> Pointer;
typedef QWeakPointer<QmlTransitionNodeInstance> WeakPointer;
using Pointer = QSharedPointer<QmlTransitionNodeInstance>;
using WeakPointer = QWeakPointer<QmlTransitionNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -33,8 +33,8 @@ namespace Internal {
class Qt3DPresentationNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<Qt3DPresentationNodeInstance> Pointer;
typedef QWeakPointer<Qt3DPresentationNodeInstance> WeakPointer;
using Pointer = QSharedPointer<Qt3DPresentationNodeInstance>;
using WeakPointer = QWeakPointer<Qt3DPresentationNodeInstance>;
static Pointer create(QObject *objectToBeWrapped);

View File

@@ -38,8 +38,8 @@ namespace Internal {
class QuickItemNodeInstance : public ObjectNodeInstance
{
public:
typedef QSharedPointer<QuickItemNodeInstance> Pointer;
typedef QWeakPointer<QuickItemNodeInstance> WeakPointer;
using Pointer = QSharedPointer<QuickItemNodeInstance>;
using WeakPointer = QWeakPointer<QuickItemNodeInstance>;
~QuickItemNodeInstance() override;