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:
Abdelrazak Younes 2006-12-24 18:16:25 +00:00
parent caaaf6f20b
commit 246e06c331
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ protected:
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 qpdown(toqstr(libFileSearch("images", "down", "xpm").absFilename()));
@ -118,7 +118,7 @@ void QCommandBuffer::focus_command()
void QCommandBuffer::cancel()
{
view_->centralWidget()->setFocus();
view_->setFocus();
edit_->setText(QString());
}

View File

@ -140,7 +140,7 @@ void QLayoutBox::selected(const QString & str)
{
string const sel = fromqstr(str);
owner_.centralWidget()->setFocus();
owner_.setFocus();
layoutSelected(owner_, sel);
}