forked from qt-creator/qt-creator
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:
28
src/libs/qmljs/qmljsicons.h
Normal file
28
src/libs/qmljs/qmljsicons.h
Normal 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
|
||||
Reference in New Issue
Block a user