aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorRosemary Witchaven <32779090+in1tiate@users.noreply.github.com>2021-09-22 18:59:59 -0500
committerGitHub <noreply@github.com>2021-09-22 18:59:59 -0500
commitc163aab671b9590910039a7031ed4f02ff989ed8 (patch)
treed2e116e33e6b8ba136665d9f5bb7baffad5c297a /src/text_file_functions.cpp
parentb2a4a41fd707633a03ecdef8a484c0f16f13779e (diff)
Allow user to configure log timestamp format (#590)
* user configurable timestamp format * fix label making the entire settings window move jankily * add a dropdown for sane timestamp formats * streamline adding options to log timestamp format
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index d9b341be..aedf3b8a 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -89,6 +89,12 @@ bool AOApplication::get_log_timestamp()
return result.startsWith("true");
}
+QString AOApplication::get_log_timestamp_format()
+{
+ QString result = configini->value("log_timestamp_format", "h:mm:ss AP").value<QString>();
+ return result;
+}
+
bool AOApplication::get_log_ic_actions()
{
QString result =