summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-17 08:56:16 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:33:37 -0400
commitbca6283311cf1dea4c96f8ee5bf192bdb1640cb3 (patch)
tree7a6b0445974a974bf4b03d08d4ac9371de0ea663 /src/settings.h
parentd1b4dec8ad1635738ada3dfbde5907e7f0df3448 (diff)
use log::Levels instead of ints
create log level combobox in code, set selected index based on value instead added log level to context menu in log list
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h
index bccd1e81..c66eb94c 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -21,6 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#define SETTINGS_H
#include "loadmechanism.h"
+#include <log.h>
#include <QList>
#include <QMap>
@@ -232,7 +233,12 @@ public:
/**
* @return the configured log level
*/
- int logLevel() const;
+ MOBase::log::Levels logLevel() const;
+
+ /**
+ * sets the log level setting
+ */
+ void setLogLevel(MOBase::log::Levels level);
/**
* @return the configured crash dumps type
@@ -481,6 +487,8 @@ private:
QComboBox *m_dumpsTypeBox;
QSpinBox *m_dumpsMaxEdit;
QLabel *m_diagnosticsExplainedLabel;
+
+ void setLevelsBox();
};
/** Display/store the configuration in the 'nexus' tab of the settings dialogue */