mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-17 21:36:00 +00:00
27ba830b8e
This commit fixes a few warnings from Qt 5.14 like the following one: error: ‘void QComboBox::setAutoCompletion(bool)’ is deprecated: Use setCompleter() instead. [-Werror=deprecated-declarations] We only generated setAutoCompletion() from setting the property in the .ui files. There does not seem to be a .ui file property that generates setCompleter(). However, the default in both Qt5 [1] and Qt4 [2] is to enable case-insensitive autocompletion, which seems to be the same type of autocompletion as when we were relying on setAutoCompletion(true). Thus, we can remove the properties that set autocomplete to true. There is only one file, SearchUi.ui, where we were turning off the autocompletion; we now do so using setCompleter(0) in GuiSearch::GuiSearch(). [1] https://doc.qt.io/qt-5/qcombobox.html#setCompleter [2] https://doc.qt.io/archives/qt-4.8/qcombobox.html#setCompleter
203 lines
5.4 KiB
XML
203 lines
5.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SpellcheckerUi</class>
|
|
<widget class="QWidget" name="SpellcheckerUi">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>300</width>
|
|
<height>380</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>260</width>
|
|
<height>320</height>
|
|
</size>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Spell Checker</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="1,0">
|
|
<item row="5" column="0">
|
|
<widget class="QComboBox" name="replaceCO">
|
|
<property name="focusPolicy">
|
|
<enum>Qt::StrongFocus</enum>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Replace with selected word</string>
|
|
</property>
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::InsertAtTop</enum>
|
|
</property>
|
|
<property name="duplicatesEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QPushButton" name="replacePB">
|
|
<property name="toolTip">
|
|
<string>Replace word with current choice</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Replace</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="1">
|
|
<widget class="QPushButton" name="ignorePB">
|
|
<property name="toolTip">
|
|
<string>Ignore this word</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Ignore</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" colspan="2">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="languageLA">
|
|
<property name="text">
|
|
<string>&Language:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>languageCO</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="languageCO">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
|
<horstretch>100</horstretch>
|
|
<verstretch>32</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>The checked language. Switching this alters the language of the checked word.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPushButton" name="findNextPB">
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Find Next</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="TextLabel3">
|
|
<property name="text">
|
|
<string>Unknown word:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>wordED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLineEdit" name="wordED">
|
|
<property name="toolTip">
|
|
<string>Current word</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="TextLabel1">
|
|
<property name="text">
|
|
<string>Re&placement:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>replaceCO</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="TextLabel2">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>S&uggestions:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>suggestionsLW</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QPushButton" name="replaceAllPB">
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string>Replace &All</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="1">
|
|
<widget class="QPushButton" name="ignoreAllPB">
|
|
<property name="toolTip">
|
|
<string>Ignore this word throughout this session</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>I&gnore All</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="2">
|
|
<widget class="Line" name="line">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="0" rowspan="4">
|
|
<widget class="QListWidget" name="suggestionsLW"/>
|
|
</item>
|
|
<item row="9" column="1">
|
|
<widget class="QPushButton" name="addPB">
|
|
<property name="toolTip">
|
|
<string>Add the word to your personal dictionary</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>A&dd</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="1">
|
|
<spacer>
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>74</width>
|
|
<height>98</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|