summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Daniel Lundqvist2014-12-31 22:26:11 +0100
committerGravatar Daniel Lundqvist2015-01-01 18:50:56 +0100
commit3f3b890694c7c22f941aa89c40846f215c0b5713 (patch)
tree49812426a369960af47d4c22fcaa1d07369a58e9 /src
parentMerge pull request #265 from Subv/socu (diff)
downloadyuzu-3f3b890694c7c22f941aa89c40846f215c0b5713.tar.gz
yuzu-3f3b890694c7c22f941aa89c40846f215c0b5713.tar.xz
yuzu-3f3b890694c7c22f941aa89c40846f215c0b5713.zip
Change popout mode to "Single Window Mode"
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/main.cpp12
-rw-r--r--src/citra_qt/main.ui6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index b12e6a02b..d9f325b09 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -107,7 +107,7 @@ GMainWindow::GMainWindow()
107 restoreState(settings.value("state").toByteArray()); 107 restoreState(settings.value("state").toByteArray());
108 render_window->restoreGeometry(settings.value("geometryRenderWindow").toByteArray()); 108 render_window->restoreGeometry(settings.value("geometryRenderWindow").toByteArray());
109 109
110 ui.action_Popout_Window_Mode->setChecked(settings.value("popoutWindowMode", true).toBool()); 110 ui.action_Single_Window_Mode->setChecked(settings.value("singleWindowMode", true).toBool());
111 ToggleWindowMode(); 111 ToggleWindowMode();
112 112
113 // Setup connections 113 // Setup connections
@@ -116,7 +116,7 @@ GMainWindow::GMainWindow()
116 connect(ui.action_Start, SIGNAL(triggered()), this, SLOT(OnStartGame())); 116 connect(ui.action_Start, SIGNAL(triggered()), this, SLOT(OnStartGame()));
117 connect(ui.action_Pause, SIGNAL(triggered()), this, SLOT(OnPauseGame())); 117 connect(ui.action_Pause, SIGNAL(triggered()), this, SLOT(OnPauseGame()));
118 connect(ui.action_Stop, SIGNAL(triggered()), this, SLOT(OnStopGame())); 118 connect(ui.action_Stop, SIGNAL(triggered()), this, SLOT(OnStopGame()));
119 connect(ui.action_Popout_Window_Mode, SIGNAL(triggered(bool)), this, SLOT(ToggleWindowMode())); 119 connect(ui.action_Single_Window_Mode, SIGNAL(triggered(bool)), this, SLOT(ToggleWindowMode()));
120 connect(ui.action_Hotkeys, SIGNAL(triggered()), this, SLOT(OnOpenHotkeysDialog())); 120 connect(ui.action_Hotkeys, SIGNAL(triggered()), this, SLOT(OnOpenHotkeysDialog()));
121 121
122 // BlockingQueuedConnection is important here, it makes sure we've finished refreshing our views before the CPU continues 122 // BlockingQueuedConnection is important here, it makes sure we've finished refreshing our views before the CPU continues
@@ -223,8 +223,8 @@ void GMainWindow::OnOpenHotkeysDialog()
223 223
224void GMainWindow::ToggleWindowMode() 224void GMainWindow::ToggleWindowMode()
225{ 225{
226 bool enable = ui.action_Popout_Window_Mode->isChecked(); 226 bool enable = ui.action_Single_Window_Mode->isChecked();
227 if (enable && render_window->parent() != nullptr) 227 if (!enable && render_window->parent() != nullptr)
228 { 228 {
229 ui.horizontalLayout->removeWidget(render_window); 229 ui.horizontalLayout->removeWidget(render_window);
230 render_window->setParent(nullptr); 230 render_window->setParent(nullptr);
@@ -232,7 +232,7 @@ void GMainWindow::ToggleWindowMode()
232 render_window->RestoreGeometry(); 232 render_window->RestoreGeometry();
233 render_window->setFocusPolicy(Qt::NoFocus); 233 render_window->setFocusPolicy(Qt::NoFocus);
234 } 234 }
235 else if (!enable && render_window->parent() == nullptr) 235 else if (enable && render_window->parent() == nullptr)
236 { 236 {
237 render_window->BackupGeometry(); 237 render_window->BackupGeometry();
238 ui.horizontalLayout->addWidget(render_window); 238 ui.horizontalLayout->addWidget(render_window);
@@ -254,7 +254,7 @@ void GMainWindow::closeEvent(QCloseEvent* event)
254 settings.setValue("geometry", saveGeometry()); 254 settings.setValue("geometry", saveGeometry());
255 settings.setValue("state", saveState()); 255 settings.setValue("state", saveState());
256 settings.setValue("geometryRenderWindow", render_window->saveGeometry()); 256 settings.setValue("geometryRenderWindow", render_window->saveGeometry());
257 settings.setValue("popoutWindowMode", ui.action_Popout_Window_Mode->isChecked()); 257 settings.setValue("singleWindowMode", ui.action_Single_Window_Mode->isChecked());
258 settings.setValue("firstStart", false); 258 settings.setValue("firstStart", false);
259 SaveHotkeys(settings); 259 SaveHotkeys(settings);
260 260
diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui
index f3596716f..4c338c664 100644
--- a/src/citra_qt/main.ui
+++ b/src/citra_qt/main.ui
@@ -58,7 +58,7 @@
58 <property name="title"> 58 <property name="title">
59 <string>&amp;View</string> 59 <string>&amp;View</string>
60 </property> 60 </property>
61 <addaction name="action_Popout_Window_Mode"/> 61 <addaction name="action_Single_Window_Mode"/>
62 <addaction name="action_Hotkeys"/> 62 <addaction name="action_Hotkeys"/>
63 </widget> 63 </widget>
64 <widget class="QMenu" name="menu_Help"> 64 <widget class="QMenu" name="menu_Help">
@@ -114,12 +114,12 @@
114 <string>About Citra</string> 114 <string>About Citra</string>
115 </property> 115 </property>
116 </action> 116 </action>
117 <action name="action_Popout_Window_Mode"> 117 <action name="action_Single_Window_Mode">
118 <property name="checkable"> 118 <property name="checkable">
119 <bool>true</bool> 119 <bool>true</bool>
120 </property> 120 </property>
121 <property name="text"> 121 <property name="text">
122 <string>Popout window</string> 122 <string>Single Window Mode</string>
123 </property> 123 </property>
124 </action> 124 </action>
125 <action name="action_Hotkeys"> 125 <action name="action_Hotkeys">