positionernodeinstance.h 937 Bytes
Newer Older
1
2
3
4
5
#ifndef POSITIONERNODEINSTANCE_H
#define POSITIONERNODEINSTANCE_H

#include "qmlgraphicsitemnodeinstance.h"

hjk's avatar
hjk committed
6
QT_BEGIN_NAMESPACE
7
class QDeclarativeBasePositioner;
hjk's avatar
hjk committed
8
QT_END_NAMESPACE
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

namespace QmlDesigner {
namespace Internal {

class PositionerNodeInstance : public QmlGraphicsItemNodeInstance
{
public:
    typedef QSharedPointer<PositionerNodeInstance> Pointer;
    typedef QWeakPointer<PositionerNodeInstance> WeakPointer;

    static Pointer create(const NodeMetaInfo &metaInfo, QDeclarativeContext *context, QObject *objectToBeWrapped);

    void setPropertyVariant(const QString &name, const QVariant &value);
    void setPropertyBinding(const QString &name, const QString &expression);

    bool isPositioner() const;

    bool isResizable() const;


protected:
    PositionerNodeInstance(QDeclarativeBasePositioner *item, bool hasContent);
};

} // namespace Internal
} // namespace QmlDesigner

#endif // POSITIONERNODEINSTANCE_H