Add "view all" button for t addresses
This commit is contained in:
@@ -1295,15 +1295,19 @@ void MainWindow::setupReceiveTab() {
|
|||||||
|
|
||||||
// Connect t-addr radio button
|
// Connect t-addr radio button
|
||||||
QObject::connect(ui->rdioTAddr, &QRadioButton::toggled, [=] (bool checked) {
|
QObject::connect(ui->rdioTAddr, &QRadioButton::toggled, [=] (bool checked) {
|
||||||
// DEPRECATED
|
|
||||||
// Whenever the t-address is selected, we generate a new address, because we don't
|
// Whenever the t-address is selected, we generate a new address, because we don't
|
||||||
// want to reuse t-addrs
|
// want to reuse t-addrs
|
||||||
if (checked && this->rpc->getUTXOs() != nullptr) {
|
if (checked && this->rpc->getUTXOs() != nullptr) {
|
||||||
updateTAddrCombo(checked);
|
updateTAddrCombo(checked);
|
||||||
//addNewTAddr();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle the "View all addresses" button as well
|
||||||
|
ui->btnViewAllAddresses->setVisible(checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// View all addresses goes to "View all private keys"
|
||||||
|
QObject::connect(ui->btnViewAllAddresses, &QPushButton::clicked, this, &MainWindow::exportAllKeys);
|
||||||
|
|
||||||
QObject::connect(ui->rdioZSAddr, &QRadioButton::toggled, addZAddrsToComboList(true));
|
QObject::connect(ui->rdioZSAddr, &QRadioButton::toggled, addZAddrsToComboList(true));
|
||||||
|
|
||||||
// Explicitly get new address button.
|
// Explicitly get new address button.
|
||||||
@@ -1323,6 +1327,7 @@ void MainWindow::setupReceiveTab() {
|
|||||||
if (tab == 2) {
|
if (tab == 2) {
|
||||||
// Switched to receive tab, select the z-addr radio button
|
// Switched to receive tab, select the z-addr radio button
|
||||||
ui->rdioZSAddr->setChecked(true);
|
ui->rdioZSAddr->setChecked(true);
|
||||||
|
ui->btnViewAllAddresses->setVisible(false);
|
||||||
|
|
||||||
// And then select the first one
|
// And then select the first one
|
||||||
ui->listReceiveAddresses->setCurrentIndex(0);
|
ui->listReceiveAddresses->setCurrentIndex(0);
|
||||||
|
|||||||
@@ -360,7 +360,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>920</width>
|
<width>920</width>
|
||||||
<height>324</height>
|
<height>301</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="sendToLayout">
|
<layout class="QVBoxLayout" name="sendToLayout">
|
||||||
@@ -734,6 +734,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="btnViewAllAddresses">
|
||||||
|
<property name="text">
|
||||||
|
<string>View All Addresses</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -1045,7 +1052,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>968</width>
|
<width>968</width>
|
||||||
<height>21</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Private Key</string>
|
<string>Private Keys</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
|||||||
Reference in New Issue
Block a user