Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmljstranslationfunctionmismatchcheck_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QQMLJSTRANSLATIONMISMATCHCHECK_P_H
5#define QQMLJSTRANSLATIONMISMATCHCHECK_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16
17#include "qqmlsa.h"
18
19QT_BEGIN_NAMESPACE
20
21class QQmlJSTranslationFunctionMismatchCheck : public QQmlSA::PropertyPass
22{
23public:
24 using QQmlSA::PropertyPass::PropertyPass;
25
26 void onCall(const QQmlSA::Element &element, const QString &propertyName,
27 const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) override;
28
29private:
30 enum TranslationType: quint8 { None, Normal, IdBased };
31 TranslationType m_lastTranslationFunction = None;
32};
33
35#endif // QQMLJSTRANSLATIONMISMATCHCHECK_P_H
Combined button and popup list for selecting options.