Commit 2897570cbe9a8d5a34bf545d9744ab29154eeda6
1 parent
347c468736
Exists in
master
and in
2 other branches
쿨다운 종료 후 눌러놨던 버튼으로 포커스 이동
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
app/gui/oven_control/washwindow.cpp
@@ -140,6 +140,7 @@ void WashWindow::start(int type) | @@ -140,6 +140,7 @@ void WashWindow::start(int type) | ||
140 | if (udp->getData().sensor1 > 60) | 140 | if (udp->getData().sensor1 > 60) |
141 | { | 141 | { |
142 | state = CoolDown; | 142 | state = CoolDown; |
143 | + lastFocus = focusWidget(); | ||
143 | 144 | ||
144 | CooldownPopup *p = new CooldownPopup(this, 60); | 145 | CooldownPopup *p = new CooldownPopup(this, 60); |
145 | p->setWindowModality(Qt::WindowModal); | 146 | p->setWindowModality(Qt::WindowModal); |
@@ -159,6 +160,12 @@ void WashWindow::start(int type) | @@ -159,6 +160,12 @@ void WashWindow::start(int type) | ||
159 | 160 | ||
160 | void WashWindow::resume() | 161 | void WashWindow::resume() |
161 | { | 162 | { |
163 | + if (lastFocus) | ||
164 | + { | ||
165 | + lastFocus->setFocus(); | ||
166 | + lastFocus = NULL; | ||
167 | + } | ||
168 | + | ||
162 | if (udp->getData().door_state) | 169 | if (udp->getData().door_state) |
163 | { | 170 | { |
164 | state = CloseDoor; | 171 | state = CloseDoor; |
app/gui/oven_control/washwindow.h