The two line edit widgets above the spreadsheet, one for exiting the cell contents and one for editing the alias, were set to use the same editing widget as the individual spreadsheet cells. Once that widget was refactored to handle tab/enter behavior it was no longer the correct widget for those elements. This commit changes them to Gui::ExpressionLineEdit widgets instead, so that the Enter key works correctly for them again.
84 lines
2.2 KiB
XML
84 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Sheet</class>
|
|
<widget class="QWidget" name="Sheet">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>727</width>
|
|
<height>596</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="0,3,0,1">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>&Content:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>cellContent</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::ExpressionLineEdit" name="cellContent">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QLabel" name="alias_label">
|
|
<property name="text">
|
|
<string>&Alias:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>cellAlias</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="Gui::ExpressionLineEdit" name="cellAlias">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Refer to cell by alias, for example
|
|
Spreadsheet.my_alias_name instead of Spreadsheet.B1</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="SpreadsheetGui::SheetTableView" name="cells"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>SpreadsheetGui::SheetTableView</class>
|
|
<extends>QTableView</extends>
|
|
<header>SheetTableView.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>Gui::ExpressionLineEdit</class>
|
|
<extends>QLineEdit</extends>
|
|
<header location="global">Gui/ExpressionCompleter.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>cells</tabstop>
|
|
<tabstop>cellContent</tabstop>
|
|
<tabstop>cellAlias</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|