[LyX/master] Enable search in "LaTeX Log" dialog by pressing Enter

Juergen Spitzmueller spitz at lyx.org
Sat Aug 15 05:29:01 UTC 2020


commit 1cf86348dd4cd93f8346d2caad53bd61e81e26e3
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Fri Aug 14 20:49:39 2020 +0300

    Enable search in "LaTeX Log" dialog by pressing Enter
---
 src/frontends/qt/GuiLog.cpp  |    4 +++-
 src/frontends/qt/ui/LogUi.ui |   20 ++++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/frontends/qt/GuiLog.cpp b/src/frontends/qt/GuiLog.cpp
index 8682806..6d5462f 100644
--- a/src/frontends/qt/GuiLog.cpp
+++ b/src/frontends/qt/GuiLog.cpp
@@ -122,7 +122,6 @@ GuiLog::GuiLog(GuiView & lv)
 		this, SLOT(slotButtonBox(QAbstractButton *)));
 	connect(updatePB, SIGNAL(clicked()), this, SLOT(updateContents()));
 	connect(findPB, SIGNAL(clicked()), this, SLOT(find()));
-	// FIXME: find via returnPressed() does not work!
 	connect(findLE, SIGNAL(returnPressed()), this, SLOT(find()));
 	connect(logTypeCO, SIGNAL(activated(int)),
 		this, SLOT(typeChanged(int)));
@@ -134,6 +133,9 @@ GuiLog::GuiLog(GuiView & lv)
 
 	logTB->setReadOnly(true);
 	logTB->setFont(guiApp->typewriterSystemFont());
+
+	QPushButton * closePB = buttonBox->button(QDialogButtonBox::Close);
+	closePB->setAutoDefault(false);
 }
 
 
diff --git a/src/frontends/qt/ui/LogUi.ui b/src/frontends/qt/ui/LogUi.ui
index 6258268..a425133 100644
--- a/src/frontends/qt/ui/LogUi.ui
+++ b/src/frontends/qt/ui/LogUi.ui
@@ -73,6 +73,9 @@
        <property name="text">
         <string>Next &Error</string>
        </property>
+       <property name="autoDefault">
+        <bool>false</bool>
+       </property>
       </widget>
      </item>
      <item>
@@ -83,6 +86,9 @@
        <property name="text">
         <string>Next &Warning</string>
        </property>
+       <property name="autoDefault">
+        <bool>false</bool>
+       </property>
       </widget>
      </item>
     </layout>
@@ -102,14 +108,17 @@
      <item>
       <widget class="QLineEdit" name="findLE">
        <property name="toolTip">
-        <string>Hit Enter to search, or click Go!</string>
+        <string>Hit Enter or click 'Find Next' to search</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="findPB">
        <property name="text">
-        <string>&Go!</string>
+        <string>Find &Next</string>
+       </property>
+       <property name="autoDefault">
+        <bool>false</bool>
        </property>
       </widget>
      </item>
@@ -120,6 +129,9 @@
      <property name="text">
       <string>&Open Containing Directory</string>
      </property>
+     <property name="autoDefault">
+      <bool>false</bool>
+     </property>
     </widget>
    </item>
    <item row="4" column="1">
@@ -146,8 +158,8 @@
      <property name="text">
       <string>&Update</string>
      </property>
-     <property name="default">
-      <bool>true</bool>
+     <property name="autoDefault">
+      <bool>false</bool>
      </property>
     </widget>
    </item>


More information about the lyx-cvs mailing list