diff options
| author | saturneric <[email protected]> | 2026-10-21 22:20:08 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-21 22:20:08 +0200 |
| commit | cf75361ea7eca6ce113a5eef1641c2b7bcd103b7 (patch) | |
| tree | 59cc971348b704ff200d2410ab94c5eb53614b93 | |
| parent | fix(i18n): avoid lupdate namespace parsing warning (diff) | |
| download | modules-cf75361ea7eca6ce113a5eef1641c2b7bcd103b7.tar.gz modules-cf75361ea7eca6ce113a5eef1641c2b7bcd103b7.zip | |
fix(i18n): help lupdate parse command metadata
- add an unqualified metadata alias for lupdate compatibility
- preserve command registration behavior and metadata values
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index 454102f..ef35b9d 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -75,6 +75,10 @@ using Context = struct { namespace { +/// Spelled unqualified: lupdate misreads `gf::cmd::Meta kMeta{` in a class +/// body and warns about an unknown namespace. +using CommandMeta = gf::cmd::Meta; + /// What GnuPG is installed and how it is configured, in a dialog frame the /// Host owns. class GnupgInfoWidget : public QWidget, public gf::ui::DialogWidget { @@ -88,12 +92,12 @@ class GnupgInfoWidget : public QWidget, public gf::ui::DialogWidget { /// Help > GnuPG. Its title and whereabouts are the command's and the /// script's; it only opens the module's own dialog. struct ShowGnupgInfo { - static constexpr gf::cmd::Meta kMeta{GF_MODULE_ID ".show_gnupg_info", - GTrC::Noop("GnuPG"), - GTrC::Noop("Information about GnuPG"), - "", - 0, - gf::cmd::kNeedsGuiThread}; + static constexpr CommandMeta kMeta{GF_MODULE_ID ".show_gnupg_info", + GTrC::Noop("GnuPG"), + GTrC::Noop("Information about GnuPG"), + "", + 0, + gf::cmd::kNeedsGuiThread}; using Args = gf::cmd::Unit; using Result = gf::cmd::Unit; }; |
