]> git.lyx.org Git - features.git/commitdiff
Fix a bunch of focus proxy.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 28 Mar 2007 21:17:47 +0000 (21:17 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 28 Mar 2007 21:17:47 +0000 (21:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17622 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QExternalDialog.C
src/frontends/qt4/QGraphicsDialog.C
src/frontends/qt4/QIncludeDialog.C
src/frontends/qt4/QRefDialog.C
src/frontends/qt4/QSearchDialog.C

index f197066d5c4741b848171607e66f5529d3302dc1..faa0b0152a1b756bf261bf77294e6a273e75847f 100644 (file)
@@ -95,13 +95,13 @@ QExternalDialog::QExternalDialog(QExternal * form)
        heightED->setValidator(unsignedLengthValidator(heightED));
 
        fileED->setValidator(new PathValidator(true, fileED));
+       setFocusProxy(fileED);
 }
 
 
 void QExternalDialog::show()
 {
        QDialog::show();
-       fileED->setFocus();
 }
 
 
index c33a3ac54cf3bc9e3ed782569f1ee905e7dcfd4b..f59f85253e3d8ebb235dd555b53ea7be4f51a7be 100644 (file)
@@ -124,14 +124,13 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form)
        Width->setValidator(unsignedLengthValidator(Width));
 
        filename->setValidator(new PathValidator(true, filename));
+       setFocusProxy(filename);
 }
 
 
 void QGraphicsDialog::show()
 {
        QDialog::show();
-       if (form_->controller().params().filename.empty())
-               filename->setFocus();
 }
 
 
index 13ccb5834fd65cb5e609c03daa8e933bf6214823..ead23ac6b4fdce2fd869e2c5364d5df33cce3d2d 100644 (file)
@@ -42,13 +42,13 @@ QIncludeDialog::QIncludeDialog(QInclude * form)
     connect( previewCB, SIGNAL( clicked() ), this, SLOT( change_adaptor() ) );
 
        filenameED->setValidator(new PathValidator(true, filenameED));
+       setFocusProxy(filenameED);
 }
 
 
 void QIncludeDialog::show()
 {
        QDialog::show();
-       filenameED->setFocus();
 }
 
 
index f0188244e19492ddf81413856864fc0623aca425..0d3870031ecd603cfa7c8cc7d2e445627cea4566 100644 (file)
@@ -55,12 +55,12 @@ QRefDialog::QRefDialog(QRef * form)
        connect( bufferCO, SIGNAL( activated(int) ), 
                this, SLOT( updateClicked() ) );
 
+       setFocusProxy(refsLW);
 }
 
 void QRefDialog::show()
 {
        QDialog::show();
-       refsLW->setFocus();
 }
 
 
index df8e20fd051621aab59095ffa494cad361b072d0..819d82585b16a80b9a638ebecad2365b0d7af462 100644 (file)
@@ -61,7 +61,6 @@ QSearchDialog::QSearchDialog(QSearch * form)
 void QSearchDialog::show()
 {
        QDialog::show();
-       findCO->setFocus();
        findCO->lineEdit()->setSelection(0, findCO->lineEdit()->text().length());
 }