mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Send had a large empty region under the form doing nothing, and Receive had nothing at all. Both get the scene back — but as real layout items, not as the overlay that painted over the forms last time. Send: the form only ever needed the top of the tab, so the QFormLayout is now wrapped in a vbox and the scene takes the rest. The widget's vertical size policy was Maximum, which made it hug the form; it owns the whole tab now. The form itself is untouched, and nothing is drawn on top of the address or amount fields. Receive: a short banner under the address table. Built and smoke-tested from the AppImage lane.
329 lines
8.5 KiB
XML
329 lines
8.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SendWidget</class>
|
|
<widget class="QWidget" name="SendWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>686</width>
|
|
<height>254</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayoutOuter">
|
|
<property name="spacing">
|
|
<number>0</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>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SizeConstraint::SetMinimumSize</enum>
|
|
</property>
|
|
<property name="fieldGrowthPolicy">
|
|
<enum>QFormLayout::FieldGrowthPolicy::ExpandingFieldsGrow</enum>
|
|
</property>
|
|
<property name="rowWrapPolicy">
|
|
<enum>QFormLayout::RowWrapPolicy::DontWrapRows</enum>
|
|
</property>
|
|
<property name="verticalSpacing">
|
|
<number>9</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 row="0" column="0">
|
|
<widget class="HelpLabel" name="label_PayTo">
|
|
<property name="text">
|
|
<string>Pay to</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
<property name="spacing">
|
|
<number>10</number>
|
|
</property>
|
|
<item>
|
|
<widget class="PayToEdit" name="lineAddress">
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="tabChangesFocus">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="lineWrapMode">
|
|
<enum>QPlainTextEdit::LineWrapMode::NoWrap</enum>
|
|
</property>
|
|
<property name="placeholderText">
|
|
<string>Paste address, payment URI, OpenAlias, or QR code</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Policy::Preferred</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnScan">
|
|
<property name="text">
|
|
<string>Scan</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="HelpLabel" name="label_Description">
|
|
<property name="text">
|
|
<string>Description</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLineEdit" name="lineDescription"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="HelpLabel" name="label_Amount">
|
|
<property name="text">
|
|
<string>Amount</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="spacing">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SizeConstraint::SetDefaultConstraint</enum>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineAmount">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>200</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="comboCurrencySelection"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnMax">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_conversionAmount">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>conversionAmount</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="check_subtractFeeFromAmount">
|
|
<property name="text">
|
|
<string>Subtract fee from amount</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>100</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_feeTarget">
|
|
<property name="text">
|
|
<string>Fee</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<spacer name="horizontalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btn_openAlias">
|
|
<property name="text">
|
|
<string>Resolve OpenAlias</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnClear">
|
|
<property name="text">
|
|
<string>Clear</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnSend">
|
|
<property name="text">
|
|
<string>Send</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QComboBox" name="combo_feePriority">
|
|
<item>
|
|
<property name="text">
|
|
<string>Automatic</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Low</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Normal</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>High</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Highest</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>HelpLabel</class>
|
|
<extends>QLabel</extends>
|
|
<header>components.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>PayToEdit</class>
|
|
<extends>QPlainTextEdit</extends>
|
|
<header>widgets/PayToEdit.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>lineAddress</tabstop>
|
|
<tabstop>lineDescription</tabstop>
|
|
<tabstop>lineAmount</tabstop>
|
|
<tabstop>comboCurrencySelection</tabstop>
|
|
<tabstop>btnMax</tabstop>
|
|
<tabstop>btn_openAlias</tabstop>
|
|
<tabstop>btnClear</tabstop>
|
|
<tabstop>btnSend</tabstop>
|
|
<tabstop>btnScan</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
<slots>
|
|
<slot>sendClicked()</slot>
|
|
<slot>maxClicked()</slot>
|
|
<slot>clearClicked()</slot>
|
|
</slots>
|
|
</ui>
|