Qt: Clear all override settings when closing a game
Jeffrey Pfau jeffrey@endrift.com
Thu, 12 Mar 2015 23:35:33 -0700
2 files changed,
2 insertions(+),
11 deletions(-)
M
src/platform/qt/OverrideView.cpp
→
src/platform/qt/OverrideView.cpp
@@ -143,6 +143,7 @@ m_ui.hwLight->setEnabled(!m_ui.hwAutodetect->isChecked());
m_ui.hwTilt->setEnabled(!m_ui.hwAutodetect->isChecked()); m_ui.hwRumble->setEnabled(!m_ui.hwAutodetect->isChecked()); + m_ui.hwAutodetect->setChecked(true); m_ui.hwRTC->setChecked(false); m_ui.hwGyro->setChecked(false); m_ui.hwLight->setChecked(false);@@ -150,7 +151,7 @@ m_ui.hwTilt->setChecked(false);
m_ui.hwRumble->setChecked(false); m_ui.idleLoop->setEnabled(true); + m_ui.idleLoop->clear(); - m_ui.clear->setEnabled(false); m_ui.save->setEnabled(false); }
M
src/platform/qt/OverrideView.ui
→
src/platform/qt/OverrideView.ui
@@ -36,16 +36,6 @@ </property>
</spacer> </item> <item> - <widget class="QPushButton" name="clear"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="text"> - <string>Clear</string> - </property> - </widget> - </item> - <item> <widget class="QPushButton" name="save"> <property name="enabled"> <bool>false</bool>