Enable search in "LaTeX Log" dialog by pressing Enter

This commit is contained in:
Yuriy Skalko 2020-08-14 20:49:39 +03:00 committed by Juergen Spitzmueller
parent 04ba887e2c
commit 1cf86348dd
2 changed files with 19 additions and 5 deletions

View File

@ -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);
}

View File

@ -73,6 +73,9 @@
<property name="text">
<string>Next &amp;Error</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item>
@ -83,6 +86,9 @@
<property name="text">
<string>Next &amp;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>&amp;Go!</string>
<string>Find &amp;Next</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
@ -120,6 +129,9 @@
<property name="text">
<string>&amp;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>&amp;Update</string>
</property>
<property name="default">
<bool>true</bool>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>