Fixes some status bar update issues and focus problems
This commit is contained in:
parent
7dd7455b23
commit
8ffa221e5f
|
@ -477,6 +477,7 @@ void FButtonGroup::onFocusIn (FFocusEvent* in_ev)
|
||||||
in_ev->ignore();
|
in_ev->ignore();
|
||||||
FWidget* prev_element = getFocusWidget();
|
FWidget* prev_element = getFocusWidget();
|
||||||
(*iter)->setFocus();
|
(*iter)->setFocus();
|
||||||
|
if ( prev_element )
|
||||||
prev_element->redraw();
|
prev_element->redraw();
|
||||||
(*iter)->redraw();
|
(*iter)->redraw();
|
||||||
}
|
}
|
||||||
|
@ -492,6 +493,7 @@ void FButtonGroup::onFocusIn (FFocusEvent* in_ev)
|
||||||
in_ev->ignore();
|
in_ev->ignore();
|
||||||
FWidget* prev_element = getFocusWidget();
|
FWidget* prev_element = getFocusWidget();
|
||||||
focusFirstChild();
|
focusFirstChild();
|
||||||
|
if ( prev_element )
|
||||||
prev_element->redraw();
|
prev_element->redraw();
|
||||||
getFocusWidget()->redraw();
|
getFocusWidget()->redraw();
|
||||||
}
|
}
|
||||||
|
@ -500,6 +502,7 @@ void FButtonGroup::onFocusIn (FFocusEvent* in_ev)
|
||||||
in_ev->ignore();
|
in_ev->ignore();
|
||||||
FWidget* prev_element = getFocusWidget();
|
FWidget* prev_element = getFocusWidget();
|
||||||
focusLastChild();
|
focusLastChild();
|
||||||
|
if ( prev_element )
|
||||||
prev_element->redraw();
|
prev_element->redraw();
|
||||||
getFocusWidget()->redraw();
|
getFocusWidget()->redraw();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1483,10 +1483,6 @@ bool FWidget::setFocus(bool on)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// unset widget focus
|
|
||||||
if ( ! on && focus )
|
|
||||||
FWidget::setFocusWidget(0);
|
|
||||||
|
|
||||||
window = FWindow::getWindowWidget(this);
|
window = FWindow::getWindowWidget(this);
|
||||||
|
|
||||||
// set window focus
|
// set window focus
|
||||||
|
|
|
@ -130,6 +130,10 @@ void ProgressDialog::onTimer (FTimerEvent*)
|
||||||
more->setEnable();
|
more->setEnable();
|
||||||
quit->setEnable();
|
quit->setEnable();
|
||||||
redraw();
|
redraw();
|
||||||
|
if ( statusBar() )
|
||||||
|
statusBar()->drawMessage();
|
||||||
|
updateTerminal();
|
||||||
|
flush_out();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue