74 #endif |
74 #endif |
75 } |
75 } |
76 |
76 |
77 bool ExtProgramToolset::getWineSetting (ExtProgramType program) |
77 bool ExtProgramToolset::getWineSetting (ExtProgramType program) |
78 { |
78 { |
79 return m_window->getConfigValue (externalProgramName (program) + "UsesWine").toBool(); |
79 return config::value(externalProgramName (program) + "UsesWine").toBool(); |
80 } |
80 } |
81 |
81 |
82 QString ExtProgramToolset::getPathSetting (ExtProgramType program) |
82 QString ExtProgramToolset::getPathSetting (ExtProgramType program) |
83 { |
83 { |
84 return m_window->getConfigValue (externalProgramName (program) + "Path").toString(); |
84 return config::value(externalProgramName (program) + "Path").toString(); |
85 } |
85 } |
86 |
86 |
87 void ExtProgramToolset::setPathSetting (ExtProgramType program, QString value) |
87 void ExtProgramToolset::setPathSetting (ExtProgramType program, QString value) |
88 { |
88 { |
89 m_window->getSettings()->setValue (externalProgramName (program) + "Path", QVariant::fromValue (value)); |
89 settingsObject().setValue(externalProgramName (program) + "Path", QVariant::fromValue(value)); |
90 } |
90 } |
91 |
91 |
92 void ExtProgramToolset::setWineSetting (ExtProgramType program, bool value) |
92 void ExtProgramToolset::setWineSetting (ExtProgramType program, bool value) |
93 { |
93 { |
94 m_window->getSettings()->setValue (externalProgramName (program) + "UsesWine", QVariant::fromValue (value)); |
94 settingsObject().setValue(externalProgramName (program) + "UsesWine", QVariant::fromValue(value)); |
95 } |
95 } |
96 |
96 |
97 QString ExtProgramToolset::externalProgramName (ExtProgramType program) |
97 QString ExtProgramToolset::externalProgramName (ExtProgramType program) |
98 { |
98 { |
99 return extProgramInfo[program].name; |
99 return extProgramInfo[program].name; |