forked from qt-creator/qt-creator
		
	QmlJS: Move Q_DECLARE_TR_FUNCTIONS to the start of class declarations.
The documentation requires having it there.
This commit is contained in:
		@@ -42,14 +42,14 @@ namespace QmlJS {
 | 
			
		||||
 | 
			
		||||
class QMLJS_EXPORT Check: protected AST::Visitor
 | 
			
		||||
{
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Check)
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    Check(Document::Ptr doc, const Snapshot &snapshot, const QStringList &importPaths);
 | 
			
		||||
    virtual ~Check();
 | 
			
		||||
 | 
			
		||||
    QList<DiagnosticMessage> operator()();
 | 
			
		||||
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Check)
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    virtual bool visit(AST::UiProgram *ast);
 | 
			
		||||
    virtual bool visit(AST::UiObjectDefinition *ast);
 | 
			
		||||
 
 | 
			
		||||
@@ -326,6 +326,8 @@ public:
 | 
			
		||||
 | 
			
		||||
class QmlXmlReader
 | 
			
		||||
{
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Interpreter::QmlXmlReader)
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    QmlXmlReader(QIODevice *dev)
 | 
			
		||||
        : _xml(dev)
 | 
			
		||||
@@ -349,8 +351,6 @@ public:
 | 
			
		||||
        return _xml.errorString();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Interpreter::QmlXmlReader)
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    void unexpectedElement(const QStringRef &child, const QString &parent) {
 | 
			
		||||
        _xml.raiseError(tr("Unexpected element <%1> in <%2>").arg(child.toString(), parent));
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,8 @@ class NameId;
 | 
			
		||||
*/
 | 
			
		||||
class QMLJS_EXPORT Link
 | 
			
		||||
{
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Link)
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    // Link all documents in snapshot
 | 
			
		||||
    Link(Interpreter::Context *context, const Document::Ptr &doc, const Snapshot &snapshot,
 | 
			
		||||
@@ -27,8 +29,6 @@ public:
 | 
			
		||||
 | 
			
		||||
    QList<DiagnosticMessage> diagnosticMessages() const;
 | 
			
		||||
 | 
			
		||||
    Q_DECLARE_TR_FUNCTIONS(QmlJS::Link)
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    Interpreter::Engine *engine();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user