Include icon

This commit is contained in:
Aditya Kulkarni
2019-03-25 15:57:50 -07:00
parent 56737f50dd
commit 5afd6eddea
2 changed files with 51 additions and 21 deletions

View File

@@ -38,6 +38,9 @@ void RequestDialog::setupDialog(MainWindow* main, QDialog* d, Ui_RequestDialog*
} }
} }
req->cmbMyAddress->setCurrentText(main->getRPC()->getDefaultSaplingAddress()); req->cmbMyAddress->setCurrentText(main->getRPC()->getDefaultSaplingAddress());
QIcon icon(":/icons/res/paymentreq.gif");
req->label_5->setPixmap(icon.pixmap(48, 48));
} }
// Static method that shows an incoming payment request and prompts the user to pay it // Static method that shows an incoming payment request and prompts the user to pay it

View File

@@ -14,10 +14,10 @@
<string>Payment Request</string> <string>Payment Request</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="15" column="1" colspan="3"> <item row="18" column="1" colspan="3">
<widget class="AddressCombo" name="cmbMyAddress"/> <widget class="AddressCombo" name="cmbMyAddress"/>
</item> </item>
<item row="0" column="3"> <item row="2" column="3">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
@@ -41,28 +41,28 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="18" column="0" colspan="4"> <item row="21" column="0" colspan="4">
<widget class="Line" name="line"> <widget class="Line" name="line">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="2" column="1">
<widget class="QLabel" name="lblAddress"> <widget class="QLabel" name="lblAddress">
<property name="text"> <property name="text">
<string>Request From</string> <string>Request From</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="13" column="1"> <item row="15" column="1">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>My Address</string> <string>My Address</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="3"> <item row="5" column="1" colspan="3">
<widget class="QLabel" name="lblSaplingWarning"> <widget class="QLabel" name="lblSaplingWarning">
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">color: red;</string> <string notr="true">color: red;</string>
@@ -72,21 +72,21 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="6" column="1">
<widget class="QLabel" name="lblAmount"> <widget class="QLabel" name="lblAmount">
<property name="text"> <property name="text">
<string>Amount in </string> <string>Amount in </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="10" column="1">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="19" column="2" colspan="2"> <item row="24" column="2" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@@ -96,7 +96,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1" colspan="3"> <item row="14" column="1">
<widget class="QLabel" name="label_4">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="1" colspan="3">
<widget class="QLineEdit" name="txtFrom"> <widget class="QLineEdit" name="txtFrom">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
@@ -112,7 +119,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="10" column="1" colspan="3"> <item row="1" column="1" colspan="3">
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="12" column="1" colspan="3">
<widget class="MemoEdit" name="txtMemo"> <widget class="MemoEdit" name="txtMemo">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
@@ -122,7 +136,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" colspan="3"> <item row="7" column="1" colspan="3">
<widget class="QLineEdit" name="txtAmount"> <widget class="QLineEdit" name="txtAmount">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
@@ -132,14 +146,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="11" column="1" colspan="3"> <item row="13" column="1" colspan="3">
<widget class="Line" name="line_2"> <widget class="Line" name="line_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="13" column="3"> <item row="15" column="3">
<widget class="QLabel" name="lblAddressInfo"> <widget class="QLabel" name="lblAddressInfo">
<property name="text"> <property name="text">
<string>The recipient will see this address in the &quot;to&quot; field when they pay your request.</string> <string>The recipient will see this address in the &quot;to&quot; field when they pay your request.</string>
@@ -149,7 +163,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="3"> <item row="11" column="3">
<widget class="QLabel" name="lblMemoLen"> <widget class="QLabel" name="lblMemoLen">
<property name="text"> <property name="text">
<string notr="true">0 / 512</string> <string notr="true">0 / 512</string>
@@ -159,7 +173,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="9" column="1">
<widget class="QLabel" name="txtAmountUSD"> <widget class="QLabel" name="txtAmountUSD">
<property name="text"> <property name="text">
<string>Amount USD</string> <string>Amount USD</string>
@@ -169,7 +183,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="17" column="1"> <item row="20" column="1">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@@ -182,17 +196,30 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="9" column="1"> <item row="11" column="1">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Memo</string> <string>Memo</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="12" column="1"> <item row="0" column="1">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_5">
<property name="text"> <property name="text">
<string/> <string>TextLabel</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="2" colspan="2">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Request payment from a Sapling address. You'll send a ZEC 0.0001 transaction to the address with a zcash payment URI. The memo will be included in the transaction when the address pays you.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>