mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-16 21:10:26 +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
124 lines
3.1 KiB
XML
124 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SendtoUi</class>
|
|
<widget class="QDialog" name="SendtoUi">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>296</width>
|
|
<height>262</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string/>
|
|
</property>
|
|
<property name="sizeGripEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QGridLayout">
|
|
<property name="leftMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<item row="1" column="0">
|
|
<widget class="QListWidget" name="formatLW"/>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QComboBox" name="commandCO">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::StrongFocus</enum>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Process the converted file with this command ($$FName = file name)</string>
|
|
</property>
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="maxCount">
|
|
<number>666</number>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::NoInsert</enum>
|
|
</property>
|
|
<property name="duplicatesEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<layout class="QHBoxLayout">
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="formatLA">
|
|
<property name="text">
|
|
<string>Export for&mats:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>formatLW</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="commandLA">
|
|
<property name="text">
|
|
<string>Send exported file to &command:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>commandCO</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>formatLW</tabstop>
|
|
<tabstop>commandCO</tabstop>
|
|
</tabstops>
|
|
<includes>
|
|
<include location="local">qt_i18n.h</include>
|
|
</includes>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|