small fixes for zboard.net support

This commit is contained in:
Aditya Kulkarni
2018-11-05 10:16:41 -08:00
parent 47a01a0995
commit 226c121fc9
3 changed files with 21 additions and 8 deletions

View File

@@ -442,6 +442,8 @@ void MainWindow::postToZBoard() {
} }
zb.feeAmount->setText(Settings::getInstance()->getZECUSDDisplayFormat(Utils::getZboardAmount() + Utils::getMinerFee())); zb.feeAmount->setText(Settings::getInstance()->getZECUSDDisplayFormat(Utils::getZboardAmount() + Utils::getMinerFee()));
zb.memoTxt->setFocus();
if (d.exec() == QDialog::Accepted) { if (d.exec() == QDialog::Accepted) {
// Create a transaction. // Create a transaction.
Tx tx; Tx tx;
@@ -454,7 +456,7 @@ void MainWindow::postToZBoard() {
auto memo = zb.memoTxt->toPlainText().trimmed(); auto memo = zb.memoTxt->toPlainText().trimmed();
if (!zb.postAs->text().trimmed().isEmpty()) if (!zb.postAs->text().trimmed().isEmpty())
memo = "Name::" + zb.postAs->text().trimmed() + " " + memo; memo = zb.postAs->text().trimmed() + "::" + memo;
tx.toAddrs.push_back(ToFields{ Utils::getZboardAddr(), Utils::getZboardAmount(), memo, memo.toUtf8().toHex() }); tx.toAddrs.push_back(ToFields{ Utils::getZboardAddr(), Utils::getZboardAmount(), memo, memo.toUtf8().toHex() });
tx.fee = Utils::getMinerFee(); tx.fee = Utils::getMinerFee();

View File

@@ -316,8 +316,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>843</width> <width>841</width>
<height>363</height> <height>321</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="sendToLayout"> <layout class="QVBoxLayout" name="sendToLayout">
@@ -718,7 +718,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>889</width> <width>889</width>
<height>21</height> <height>22</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">
@@ -741,7 +741,7 @@
</widget> </widget>
<widget class="QMenu" name="menuApps"> <widget class="QMenu" name="menuApps">
<property name="title"> <property name="title">
<string>Apps</string> <string>&amp;Apps</string>
</property> </property>
<addaction name="actionTurnstile_Migration"/> <addaction name="actionTurnstile_Migration"/>
<addaction name="actionz_board_net"/> <addaction name="actionz_board_net"/>
@@ -783,6 +783,9 @@
<property name="text"> <property name="text">
<string>Sapling &amp;Turnstile</string> <string>Sapling &amp;Turnstile</string>
</property> </property>
<property name="shortcut">
<string>Ctrl+A, Ctrl+T</string>
</property>
</action> </action>
<action name="actionImport_Private_Key"> <action name="actionImport_Private_Key">
<property name="text"> <property name="text">
@@ -796,7 +799,10 @@
</action> </action>
<action name="actionz_board_net"> <action name="actionz_board_net">
<property name="text"> <property name="text">
<string>z-board.net</string> <string>&amp;z-board.net</string>
</property>
<property name="shortcut">
<string>Ctrl+A, Ctrl+Z</string>
</property> </property>
</action> </action>
</widget> </widget>

View File

@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>520</width> <width>588</width>
<height>376</height> <height>431</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -117,6 +117,11 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>fromAddr</tabstop>
<tabstop>postAs</tabstop>
<tabstop>memoTxt</tabstop>
</tabstops>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>