1
0
Fork 0
forked from suyu/suyu

Qt: Fix action name to match conventions

This commit is contained in:
Yuri Kunde Schlesner 2017-02-18 01:11:57 -08:00
parent 23bb870046
commit e823c908ea
2 changed files with 6 additions and 6 deletions

View file

@ -215,8 +215,8 @@ void GMainWindow::RestoreUIState() {
ui.action_Single_Window_Mode->setChecked(UISettings::values.single_window_mode); ui.action_Single_Window_Mode->setChecked(UISettings::values.single_window_mode);
ToggleWindowMode(); ToggleWindowMode();
ui.actionDisplay_widget_title_bars->setChecked(UISettings::values.display_titlebar); ui.action_Display_Dock_Widget_Headers->setChecked(UISettings::values.display_titlebar);
OnDisplayTitleBars(ui.actionDisplay_widget_title_bars->isChecked()); OnDisplayTitleBars(ui.action_Display_Dock_Widget_Headers->isChecked());
} }
void GMainWindow::ConnectWidgetEvents() { void GMainWindow::ConnectWidgetEvents() {
@ -612,7 +612,7 @@ void GMainWindow::closeEvent(QCloseEvent* event) {
UISettings::values.microprofile_visible = microProfileDialog->isVisible(); UISettings::values.microprofile_visible = microProfileDialog->isVisible();
#endif #endif
UISettings::values.single_window_mode = ui.action_Single_Window_Mode->isChecked(); UISettings::values.single_window_mode = ui.action_Single_Window_Mode->isChecked();
UISettings::values.display_titlebar = ui.actionDisplay_widget_title_bars->isChecked(); UISettings::values.display_titlebar = ui.action_Display_Dock_Widget_Headers->isChecked();
UISettings::values.first_start = false; UISettings::values.first_start = false;
game_list->SaveInterfaceLayout(); game_list->SaveInterfaceLayout();

View file

@ -80,7 +80,7 @@
<string>&amp;View</string> <string>&amp;View</string>
</property> </property>
<addaction name="action_Single_Window_Mode"/> <addaction name="action_Single_Window_Mode"/>
<addaction name="actionDisplay_widget_title_bars"/> <addaction name="action_Display_Dock_Widget_Headers"/>
</widget> </widget>
<widget class="QMenu" name="menu_Help"> <widget class="QMenu" name="menu_Help">
<property name="title"> <property name="title">
@ -151,7 +151,7 @@
<string>Configure...</string> <string>Configure...</string>
</property> </property>
</action> </action>
<action name="actionDisplay_widget_title_bars"> <action name="action_Display_Dock_Widget_Headers">
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -187,7 +187,7 @@
</hints> </hints>
</connection> </connection>
<connection> <connection>
<sender>actionDisplay_widget_title_bars</sender> <sender>action_Display_Dock_Widget_Headers</sender>
<signal>triggered(bool)</signal> <signal>triggered(bool)</signal>
<receiver>MainWindow</receiver> <receiver>MainWindow</receiver>
<slot>OnDisplayTitleBars(bool)</slot> <slot>OnDisplayTitleBars(bool)</slot>