Fix bug 3225 and maybe others as well.

http://bugzilla.lyx.org/show_bug.cgi?id=3225

* QIndexDialog:
  - QIndexDialog(): setFocusProxy() to the QLineEdit
  - show(): deleted.

* QDialogView::show(): also setFocus() when raising or showing a window.
  
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17166 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-02-13 18:20:07 +00:00
parent 80dc8c225d
commit 9313c6c39a
3 changed files with 4 additions and 8 deletions

View File

@ -61,8 +61,10 @@ void QDialogView::show()
if (form()->isVisible()) {
form()->raise();
form()->activateWindow();
form()->setFocus();
} else {
form()->show();
form()->setFocus();
}
}

View File

@ -35,6 +35,8 @@ QIndexDialog::QIndexDialog(QIndex * form)
connect( keywordED, SIGNAL( textChanged(const QString&) ),
this, SLOT( change_adaptor() ) );
setFocusProxy(keywordED);
keywordED->setWhatsThis( qt_(
"The format of the entry in the index.\n"
"\n"
@ -53,13 +55,6 @@ QIndexDialog::QIndexDialog(QIndex * form)
}
void QIndexDialog::show()
{
QDialog::show();
keywordED->setFocus();
}
void QIndexDialog::change_adaptor()
{
form_->changed();

View File

@ -27,7 +27,6 @@ class QIndexDialog : public QDialog, public Ui::QIndexUi {
public:
QIndexDialog(QIndex * form);
virtual void show();
protected Q_SLOTS:
virtual void change_adaptor();
virtual void reject();