Make QML color validation code reusable.

Reviewed-by: ckamm
This commit is contained in:
Leandro Melo
2010-07-29 11:20:06 +02:00
parent 0707aac622
commit e8ac7ead06
2 changed files with 24 additions and 18 deletions

View File

@@ -37,6 +37,7 @@
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <QtCore/QCoreApplication>
#include <QtGui/QColor>
namespace QmlJS {
@@ -80,6 +81,8 @@ private:
bool _ignoreTypeErrors;
};
QMLJS_EXPORT QColor toQColor(const QString &qmlColorString);
} // namespace QmlJS
#endif // QMLJSCHECK_H