mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
fix: Lose the fouce when hide the pannel by hot key
This commit is contained in:
parent
4fc8adf5ad
commit
1fc5df21ed
@ -459,6 +459,9 @@ namespace pv
|
||||
void MainWindow::on_protocol(bool visible)
|
||||
{
|
||||
_protocol_dock->setVisible(visible);
|
||||
|
||||
if (!visible)
|
||||
_view->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_trigger(bool visible)
|
||||
@ -475,17 +478,26 @@ namespace pv
|
||||
_trigger_dock->setVisible(false);
|
||||
_dso_trigger_dock->setVisible(visible);
|
||||
}
|
||||
|
||||
if (!visible)
|
||||
_view->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_measure(bool visible)
|
||||
{
|
||||
_measure_dock->setVisible(visible);
|
||||
|
||||
if (!visible)
|
||||
_view->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_search(bool visible)
|
||||
{
|
||||
_search_dock->setVisible(visible);
|
||||
_view->show_search_cursor(visible);
|
||||
|
||||
if (!visible)
|
||||
_view->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_screenShot()
|
||||
|
Loading…
x
Reference in New Issue
Block a user