~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <QObject>
34
34
#include <QSet>
35
35
#include <QStringList>
36
 
#include <qdeclarative.h>
37
36
 
38
37
namespace QmlProjectManager {
39
38
 
52
51
    Q_OBJECT
53
52
    Q_DECLARE_PRIVATE(QmlProjectItem)
54
53
 
55
 
    Q_PROPERTY(QDeclarativeListProperty<QmlProjectManager::QmlProjectContentItem> content READ content DESIGNABLE false)
56
54
    Q_PROPERTY(QString sourceDirectory READ sourceDirectory NOTIFY sourceDirectoryChanged)
57
55
    Q_PROPERTY(QStringList importPaths READ importPaths WRITE setImportPaths NOTIFY importPathsChanged)
58
56
    Q_PROPERTY(QString mainFile READ mainFile WRITE setMainFile NOTIFY mainFileChanged)
59
57
 
60
 
    Q_CLASSINFO("DefaultProperty", "content")
61
 
 
62
58
public:
63
59
    QmlProjectItem(QObject *parent = 0);
64
60
    ~QmlProjectItem();
65
61
 
66
 
    QDeclarativeListProperty<QmlProjectContentItem> content();
67
 
 
68
62
    QString sourceDirectory() const;
69
63
    void setSourceDirectory(const QString &directoryPath);
70
64
 
77
71
    QString mainFile() const;
78
72
    void setMainFile(const QString &mainFilePath);
79
73
 
 
74
    void appendContent(QmlProjectContentItem* contentItem);
80
75
 
81
76
signals:
82
77
    void qmlFilesChanged(const QSet<QString> &, const QSet<QString> &);
90
85
 
91
86
} // namespace QmlProjectManager
92
87
 
93
 
QML_DECLARE_TYPE(QmlProjectManager::QmlProjectItem)
94
 
QML_DECLARE_TYPE(QmlProjectManager::QmlProjectContentItem)
95
 
Q_DECLARE_METATYPE(QList<QmlProjectManager::QmlProjectContentItem *>)
96
 
 
97
88
#endif // QMLPROJECTITEM_H