diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2018-02-08 18:55:46 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-08 18:55:46 -0600 |
| commit | 34a4519d1e2df8e9b5bbf7b5bb0e670cf99b266f (patch) | |
| tree | e46e0b024ecd64884b3f94ae1347fba9d12a15c4 /text_file_functions.cpp | |
| parent | 28decf8dbf2ae1b9fef71821aa0384bab72d404e (diff) | |
| parent | 0d82ce72fa2747878d32bcb0702b247395716807 (diff) | |
Merge pull request #10 from OmniTroid/master
fixed that performance issue related to big IC logs
Diffstat (limited to 'text_file_functions.cpp')
| -rw-r--r-- | text_file_functions.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 47a9df3..2bc8903 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -8,6 +8,15 @@ #include <QDebug> #include <QColor> +QString AOApplication::read_file(QString p_path) +{ + QFile file(p_path); + if (!file.open(QFile::ReadOnly)) + return ""; + + return file.readAll(); +} + QString AOApplication::read_config(QString searchline) { QString return_value = ""; @@ -42,7 +51,7 @@ QString AOApplication::read_config(QString searchline) return return_value; } -QString AOApplication::read_user_theme() +QString AOApplication::read_theme() { QString result = read_config("theme"); |
