diff options
author | ConfuSomu | 2023-08-16 12:49:23 -0400 |
---|---|---|
committer | ConfuSomu | 2023-08-16 14:38:17 -0400 |
commit | c45f6501f501a65f753604bfd2341035ae12fd30 (patch) | |
tree | 3bb37bb6adae850ddb91baffa01a957576615e41 /src/activitypub/apquestion.cpp | |
parent | 52add29e0a380618a358fdbaddb612703d36eb90 (diff) | |
download | ActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.tar ActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.tar.gz ActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.zip |
Make quick_read_setting() a templated method
This allows terser usage and removes the need for manually invoking
QVariant's .value<T>() method.
Diffstat (limited to 'src/activitypub/apquestion.cpp')
-rw-r--r-- | src/activitypub/apquestion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activitypub/apquestion.cpp b/src/activitypub/apquestion.cpp index 06fde9e..9cdffd0 100644 --- a/src/activitypub/apquestion.cpp +++ b/src/activitypub/apquestion.cpp @@ -20,12 +20,12 @@ QString APQuestion::get_html_render(HtmlRenderDetails render_info) { if (end_time.isValid()) { html.replace("{{end-time}}", render_info.locale->toString( - SettingsInterface::quick_read_setting("ui/timezone").value<AppSettingsTypes::Timezone>() ? end_time.toUTC() : end_time.toLocalTime() + SettingsInterface::quick_read_setting<AppSettingsTypes::Timezone>("ui/timezone") ? end_time.toUTC() : end_time.toLocalTime() )); } if (closed_time.isValid()) { html.replace("{{closed-time}}", render_info.locale->toString( - SettingsInterface::quick_read_setting("ui/timezone").value<AppSettingsTypes::Timezone>() ? closed_time.toUTC() : closed_time.toLocalTime() + SettingsInterface::quick_read_setting<AppSettingsTypes::Timezone>("ui/timezone") ? closed_time.toUTC() : closed_time.toLocalTime() )); } |