mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
80dc8c225d
commit
9313c6c39a
@ -61,8 +61,10 @@ void QDialogView::show()
|
||||
if (form()->isVisible()) {
|
||||
form()->raise();
|
||||
form()->activateWindow();
|
||||
form()->setFocus();
|
||||
} else {
|
||||
form()->show();
|
||||
form()->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user