diff options
Diffstat (limited to 'lang/qt/src/cryptoconfig.cpp')
-rw-r--r-- | lang/qt/src/cryptoconfig.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/qt/src/cryptoconfig.cpp b/lang/qt/src/cryptoconfig.cpp index d52dce73..4f13d3f0 100644 --- a/lang/qt/src/cryptoconfig.cpp +++ b/lang/qt/src/cryptoconfig.cpp @@ -44,6 +44,15 @@ QStringList CryptoConfigEntry::stringValueList() const return entry->stringValueList(); } +QVariant CryptoConfigEntry::defaultValue() const +{ + const QGpgMENewCryptoConfigEntry *entry = dynamic_cast <const QGpgMENewCryptoConfigEntry*>(this); + if (!entry) { + return {}; + } + return entry->defaultValue(); +} + QGpgME::CryptoConfigEntry *CryptoConfig::entry(const QString &componentName, const QString &entryName) const { const CryptoConfigComponent *comp = component(componentName); |