diff options
author | Robert Adam <dev@robert-adam.de> | 2020-04-29 11:18:24 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-04-29 22:03:27 +0300 |
commit | 7d43d15e79c0286c7fc787cee815b6dbfb46b032 (patch) | |
tree | d3fd3b9082db52f9bb6ffb2937f7a99af3507b7f /src/mumble/OverlayConfig.cpp | |
parent | d945acb883186135143121ee2a9fcc501f3c52f7 (diff) |
src/mumble: Extended ConfigWidget interface to include name property
This new extension adds a name property to each ConfigWidget that in
contrast to the title is not subject to localization.
Diffstat (limited to 'src/mumble/OverlayConfig.cpp')
-rw-r--r-- | src/mumble/OverlayConfig.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mumble/OverlayConfig.cpp b/src/mumble/OverlayConfig.cpp index c3a67f419..8e31f92b4 100644 --- a/src/mumble/OverlayConfig.cpp +++ b/src/mumble/OverlayConfig.cpp @@ -36,6 +36,8 @@ // We define a global macro called 'g'. This can lead to issues when included code uses 'g' as a type or parameter name (like protobuf 3.7 does). As such, for now, we have to make this our last include. #include "Global.h" +const QString OverlayConfig::name = QLatin1String("OverlayConfig"); + static const int OVERLAYCONFIG_PATH_ROLE = Qt::UserRole; static const int OVERLAYCONFIG_BUILTIN_ROLE = Qt::UserRole + 1; @@ -416,6 +418,10 @@ QString OverlayConfig::title() const { return tr("Overlay"); } +const QString &OverlayConfig::getName() const { + return OverlayConfig::name; +} + QIcon OverlayConfig::icon() const { return QIcon(QLatin1String("skin:config_osd.png")); } |