refocus input if a single instance window is resurfaced
Signed-off-by: Albert S <mail@quitesimple.org>
这个提交包含在:
父节点
18e046d028
当前提交
ea697d62ba
2
main.cpp
2
main.cpp
@ -86,9 +86,11 @@ int main(int argc, char *argv[])
|
||||
w->showMaximized();
|
||||
w->activateWindow();
|
||||
w->raise();
|
||||
w->focusInput();
|
||||
}
|
||||
});
|
||||
w->showMaximized();
|
||||
w->focusInput();
|
||||
|
||||
}
|
||||
|
||||
|
@ -423,3 +423,7 @@ bool Window::eventFilter(QObject *obj, QEvent *event)
|
||||
|
||||
}
|
||||
|
||||
void Window::focusInput()
|
||||
{
|
||||
this->lineEdit->setFocus();
|
||||
}
|
正在加载...
在新工单中引用
屏蔽一个用户