mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
Fix focus problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16392 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
caaaf6f20b
commit
246e06c331
@ -75,7 +75,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
QCommandBuffer::QCommandBuffer(GuiView * view, ControlCommandBuffer & control)
|
QCommandBuffer::QCommandBuffer(GuiView * view, ControlCommandBuffer & control)
|
||||||
: QWidget(view), view_(view), controller_(control)
|
: view_(view), controller_(control)
|
||||||
{
|
{
|
||||||
QPixmap qpup(toqstr(libFileSearch("images", "up", "xpm").absFilename()));
|
QPixmap qpup(toqstr(libFileSearch("images", "up", "xpm").absFilename()));
|
||||||
QPixmap qpdown(toqstr(libFileSearch("images", "down", "xpm").absFilename()));
|
QPixmap qpdown(toqstr(libFileSearch("images", "down", "xpm").absFilename()));
|
||||||
@ -118,7 +118,7 @@ void QCommandBuffer::focus_command()
|
|||||||
|
|
||||||
void QCommandBuffer::cancel()
|
void QCommandBuffer::cancel()
|
||||||
{
|
{
|
||||||
view_->centralWidget()->setFocus();
|
view_->setFocus();
|
||||||
edit_->setText(QString());
|
edit_->setText(QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ void QLayoutBox::selected(const QString & str)
|
|||||||
{
|
{
|
||||||
string const sel = fromqstr(str);
|
string const sel = fromqstr(str);
|
||||||
|
|
||||||
owner_.centralWidget()->setFocus();
|
owner_.setFocus();
|
||||||
|
|
||||||
layoutSelected(owner_, sel);
|
layoutSelected(owner_, sel);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user