From 1cf86348dd4cd93f8346d2caad53bd61e81e26e3 Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Fri, 14 Aug 2020 20:49:39 +0300 Subject: [PATCH] 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 86828067d4..6d5462faa2 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 6258268b31..a4251332dc 100644 --- a/src/frontends/qt/ui/LogUi.ui +++ b/src/frontends/qt/ui/LogUi.ui @@ -73,6 +73,9 @@ Next &Error + + false + @@ -83,6 +86,9 @@ Next &Warning + + false + @@ -102,14 +108,17 @@ - Hit Enter to search, or click Go! + Hit Enter or click 'Find Next' to search - &Go! + Find &Next + + + false @@ -120,6 +129,9 @@ &Open Containing Directory + + false + @@ -146,8 +158,8 @@ &Update - - true + + false