summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsicons.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-07-08 11:30:44 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-07-08 14:02:51 +0200
commit1541dec6f34a6cbcec44391f87de2a7c2c00048b (patch)
tree5352c4f050051f9e27f5a43dd88f5d8573c11f22 /src/libs/qmljs/qmljsicons.h
parent1fff761d57c82978d0f8a408424241eb1fc4fdb9 (diff)
downloadqt-creator-1541dec6f34a6cbcec44391f87de2a7c2c00048b.tar.gz
Add Icons provider to QmlJS library
Add an Icons class to QmlJS along the Icons class in the C++ support. This will be used in the QmlJS Outline.
Diffstat (limited to 'src/libs/qmljs/qmljsicons.h')
-rw-r--r--src/libs/qmljs/qmljsicons.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsicons.h b/src/libs/qmljs/qmljsicons.h
new file mode 100644
index 0000000000..b45d21acda
--- /dev/null
+++ b/src/libs/qmljs/qmljsicons.h
@@ -0,0 +1,28 @@
+#ifndef QMLJSICONS_H
+#define QMLJSICONS_H
+
+#include <qmljs/qmljs_global.h>
+#include <qmljs/parser/qmljsast_p.h>
+#include <QtGui/QIcon>
+
+namespace QmlJS {
+
+class IconsPrivate;
+
+class QMLJS_EXPORT Icons
+{
+public:
+ Icons();
+ ~Icons();
+
+ QIcon icon(AST::Node *node) const;
+
+ QIcon objectDefinitionIcon() const;
+ QIcon scriptBindingIcon() const;
+
+ IconsPrivate *m_d;
+};
+
+} // namespace QmlJS
+
+#endif // QMLJSICONS_H