mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 15:25:17 +03:00
Almost all global settings wrapped in protective object to guarantee type safety and protect against tag spelling errors (I have found and corrected a lot of those!).
Joystick settings and burner configuration is not yet within the global object.
This commit is contained in:
parent
2633b61433
commit
c23a096a73
18 changed files with 204 additions and 1156 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <QtGui>
|
||||
#include "appdata.h"
|
||||
#include "helpers.h"
|
||||
|
||||
QString getPhaseName(int val, char * phasename)
|
||||
|
@ -913,8 +914,7 @@ QString getCenterBeep(ModelData * g_model)
|
|||
|
||||
QString getTheme()
|
||||
{
|
||||
QSettings settings;
|
||||
int theme_set = settings.value("theme", 1).toInt();
|
||||
int theme_set = glob.theme();
|
||||
QString Theme;
|
||||
switch(theme_set) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue