Send: add help labels

This commit is contained in:
tobtoht 2020-12-16 16:28:13 +01:00
parent 8c197f26ea
commit e805dd04cb
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 21 additions and 4 deletions

View file

@ -30,6 +30,16 @@ SendWidget::SendWidget(QWidget *parent) :
ui->label_conversionAmount->hide(); ui->label_conversionAmount->hide();
ui->btn_openAlias->hide(); ui->btn_openAlias->hide();
ui->label_PayTo->setHelpText("Recipient of the funds.\n\n"
"You may enter a Monero address, or an alias (email-like address that forwards to a Monero address)");
ui->label_Description->setHelpText("Description of the transaction (optional).\n\n"
"The description is not sent to the recipient of the funds. It is stored in your wallet cache, "
"and displayed in the 'History' tab.");
ui->label_Amount->setHelpText("Amount to be sent.\n\nThis is the exact amount the recipient will receive. "
"In addition to this amount a transaction fee will be subtracted from your balance. "
"You will be able to review the transaction fee before the transaction is broadcast.\n\n"
"To send all your balance, click the Max button to the right.");
this->setupComboBox(); this->setupComboBox();
} }

View file

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>603</width> <width>647</width>
<height>175</height> <height>175</height>
</rect> </rect>
</property> </property>
@ -39,7 +39,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_2"> <widget class="HelpLabel" name="label_PayTo">
<property name="text"> <property name="text">
<string>Pay to</string> <string>Pay to</string>
</property> </property>
@ -53,7 +53,7 @@
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label"> <widget class="HelpLabel" name="label_Description">
<property name="text"> <property name="text">
<string>Description</string> <string>Description</string>
</property> </property>
@ -63,7 +63,7 @@
<widget class="QLineEdit" name="lineDescription"/> <widget class="QLineEdit" name="lineDescription"/>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_3"> <widget class="HelpLabel" name="label_Amount">
<property name="text"> <property name="text">
<string>Amount</string> <string>Amount</string>
</property> </property>
@ -184,6 +184,13 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<customwidgets>
<customwidget>
<class>HelpLabel</class>
<extends>QLabel</extends>
<header>components.h</header>
</customwidget>
</customwidgets>
<resources/> <resources/>
<connections/> <connections/>
<slots> <slots>