diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-04-11 12:31:24 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-04-26 12:36:58 +0200 |
commit | 756b54bd83e5acc029e09deb19a70bbc75b28ea8 (patch) | |
tree | 992fa2ccc43129c98f0ea707c7d1894512a8e452 /tools | |
parent | 291971b91a1f62cc64d0f2a7859cc69c81ba4050 (diff) |
qmllint: Show whether a plugin is built-in or not
Display whether a plugin is built-in or not when listing them via
--list-plugins.
Fixes: QTBUG-102419
Change-Id: I2b2dc40933402ec9e4a1dd6153971e4371ef76e8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmllint/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 791a29f839..f6c29c19b6 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -259,10 +259,12 @@ All warnings can be set to three levels: if (parser.isSet(listPluginsOption)) { const std::vector<QQmlJSLinter::Plugin> &plugins = linter.plugins(); if (!plugins.empty()) { - qInfo().nospace().noquote() << "Plugin\t\t\tVersion\tAuthor\t\tDescription"; + qInfo().nospace().noquote() << "Plugin\t\t\tBuilt-in?\tVersion\tAuthor\t\tDescription"; for (const QQmlJSLinter::Plugin &plugin : plugins) { - qInfo().nospace().noquote() << plugin.name() << "\t\t\t" << plugin.version() << "\t" - << plugin.author() << "\t\t" << plugin.description(); + qInfo().nospace().noquote() + << plugin.name() << "\t\t\t" << (plugin.isBuiltin() ? "Yes" : "No") + << "\t\t" << plugin.version() << "\t" << plugin.author() << "\t\t" + << plugin.description(); } } else { qInfo() << "No plugins installed."; |