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.
This commit is contained in:
Kai Koehne
2010-07-08 11:30:44 +02:00
parent 1fff761d57
commit 1541dec6f3
6 changed files with 90 additions and 2 deletions

View File

@@ -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