Skip to content

Commit d8cc65b

Browse files
authored
feat(qt): UI fixes for window "Wallet Repair" (dashpay#4846)
* Qt: fix layout of components on "Wallet Repair" window * Qt: refactor ui xml config It orders components accordingly their positions on windows and fixes space indentation
1 parent 22a24ab commit d8cc65b

File tree

1 file changed

+124
-178
lines changed

1 file changed

+124
-178
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 124 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,185 +1390,131 @@
13901390
</layout>
13911391
</widget>
13921392
<widget class="QWidget" name="pageRepair">
1393-
<widget class="QPushButton" name="btn_rescan1">
1394-
<property name="geometry">
1395-
<rect>
1396-
<x>10</x>
1397-
<y>100</y>
1398-
<width>301</width>
1399-
<height>23</height>
1400-
</rect>
1401-
</property>
1402-
<property name="minimumSize">
1403-
<size>
1404-
<width>180</width>
1405-
<height>23</height>
1406-
</size>
1407-
</property>
1408-
<property name="text">
1409-
<string>Rescan blockchain files 1</string>
1410-
</property>
1411-
</widget>
1412-
<widget class="QPushButton" name="btn_rescan2">
1413-
<property name="geometry">
1414-
<rect>
1415-
<x>10</x>
1416-
<y>150</y>
1417-
<width>301</width>
1418-
<height>23</height>
1419-
</rect>
1420-
</property>
1421-
<property name="minimumSize">
1422-
<size>
1423-
<width>180</width>
1424-
<height>23</height>
1425-
</size>
1426-
</property>
1427-
<property name="text">
1428-
<string>Rescan blockchain files 2</string>
1429-
</property>
1430-
</widget>
1431-
<widget class="QPushButton" name="btn_upgradewallet">
1432-
<property name="geometry">
1433-
<rect>
1434-
<x>10</x>
1435-
<y>200</y>
1436-
<width>301</width>
1437-
<height>23</height>
1438-
</rect>
1439-
</property>
1440-
<property name="minimumSize">
1441-
<size>
1442-
<width>180</width>
1443-
<height>23</height>
1444-
</size>
1445-
</property>
1446-
<property name="text">
1447-
<string>Upgrade wallet format</string>
1448-
</property>
1449-
</widget>
1450-
<widget class="QLabel" name="label_repair_helptext">
1451-
<property name="geometry">
1452-
<rect>
1453-
<x>10</x>
1454-
<y>30</y>
1455-
<width>711</width>
1456-
<height>41</height>
1457-
</rect>
1458-
</property>
1459-
<property name="text">
1460-
<string>The buttons below will restart the wallet with command-line options to repair the wallet, fix issues with corrupt blockchain files or missing/obsolete transactions.</string>
1461-
</property>
1462-
<property name="wordWrap">
1463-
<bool>true</bool>
1464-
</property>
1465-
</widget>
1466-
<widget class="QLabel" name="label_repair_rescan1">
1467-
<property name="geometry">
1468-
<rect>
1469-
<x>330</x>
1470-
<y>90</y>
1471-
<width>411</width>
1472-
<height>41</height>
1473-
</rect>
1474-
</property>
1475-
<property name="text">
1476-
<string>-rescan=1: Rescan the block chain for missing wallet transactions starting from wallet creation time.</string>
1477-
</property>
1478-
<property name="wordWrap">
1479-
<bool>true</bool>
1480-
</property>
1481-
</widget>
1482-
<widget class="QLabel" name="label_repair_rescan2">
1483-
<property name="geometry">
1484-
<rect>
1485-
<x>330</x>
1486-
<y>140</y>
1487-
<width>411</width>
1488-
<height>41</height>
1489-
</rect>
1490-
</property>
1491-
<property name="text">
1492-
<string>-rescan=2: Rescan the block chain for missing wallet transactions starting from genesis block.</string>
1493-
</property>
1494-
<property name="wordWrap">
1495-
<bool>true</bool>
1496-
</property>
1497-
</widget>
1498-
<widget class="QLabel" name="label_repair_upgrade">
1499-
<property name="geometry">
1500-
<rect>
1501-
<x>330</x>
1502-
<y>190</y>
1503-
<width>411</width>
1504-
<height>41</height>
1505-
</rect>
1506-
</property>
1507-
<property name="text">
1508-
<string>-upgradewallet: Upgrade wallet to latest format on startup. (Note: this is NOT an update of the wallet itself!)</string>
1509-
</property>
1510-
<property name="wordWrap">
1511-
<bool>true</bool>
1512-
</property>
1513-
</widget>
1514-
<widget class="QLabel" name="label_repair_header">
1515-
<property name="geometry">
1516-
<rect>
1517-
<x>10</x>
1518-
<y>10</y>
1519-
<width>711</width>
1520-
<height>16</height>
1521-
</rect>
1522-
</property>
1523-
<property name="text">
1524-
<string>Wallet repair options.</string>
1525-
</property>
1526-
<property name="wordWrap">
1527-
<bool>true</bool>
1528-
</property>
1529-
</widget>
1530-
<widget class="QPushButton" name="btn_reindex">
1531-
<property name="geometry">
1532-
<rect>
1533-
<x>10</x>
1534-
<y>250</y>
1535-
<width>301</width>
1536-
<height>23</height>
1537-
</rect>
1538-
</property>
1539-
<property name="text">
1540-
<string>Rebuild index</string>
1541-
</property>
1542-
</widget>
1543-
<widget class="QLabel" name="label_repair_reindex">
1544-
<property name="geometry">
1545-
<rect>
1546-
<x>330</x>
1547-
<y>240</y>
1548-
<width>411</width>
1549-
<height>41</height>
1550-
</rect>
1551-
</property>
1552-
<property name="text">
1553-
<string>-reindex: Rebuild block chain index from current blk000??.dat files.</string>
1554-
</property>
1555-
<property name="wordWrap">
1556-
<bool>true</bool>
1557-
</property>
1558-
</widget>
1559-
<widget class="QLabel" name="wallet_path">
1560-
<property name="geometry">
1561-
<rect>
1562-
<x>10</x>
1563-
<y>70</y>
1564-
<width>731</width>
1565-
<height>21</height>
1566-
</rect>
1567-
</property>
1568-
<property name="text">
1569-
<string>Wallet Path</string>
1393+
<layout class="QGridLayout" name="repairLayout" columnstretch="0,1">
1394+
<property name="horizontalSpacing">
1395+
<number>12</number>
15701396
</property>
1571-
</widget>
1397+
<item row="0" column="0" colspan="2">
1398+
<widget class="QLabel" name="label_repair_header">
1399+
<property name="text">
1400+
<string>Wallet repair options.</string>
1401+
</property>
1402+
<property name="wordWrap">
1403+
<bool>true</bool>
1404+
</property>
1405+
</widget>
1406+
</item>
1407+
<item row="1" column="0" colspan="2">
1408+
<widget class="QLabel" name="label_repair_helptext">
1409+
<property name="text">
1410+
<string>The buttons below will restart the wallet with command-line options to repair the wallet, fix issues with corrupt blockchain files or missing/obsolete transactions.</string>
1411+
</property>
1412+
<property name="wordWrap">
1413+
<bool>true</bool>
1414+
</property>
1415+
</widget>
1416+
</item>
1417+
<item row="2" column="0" colspan="2">
1418+
<widget class="QLabel" name="wallet_path">
1419+
<property name="text">
1420+
<string>Wallet Path</string>
1421+
</property>
1422+
</widget>
1423+
</item>
1424+
<item row="3" column="0">
1425+
<widget class="QPushButton" name="btn_rescan1">
1426+
<property name="minimumSize">
1427+
<size>
1428+
<width>180</width>
1429+
<height>23</height>
1430+
</size>
1431+
</property>
1432+
<property name="text">
1433+
<string>Rescan blockchain files 1</string>
1434+
</property>
1435+
</widget>
1436+
</item>
1437+
<item row="3" column="1">
1438+
<widget class="QLabel" name="label_repair_rescan1">
1439+
<property name="text">
1440+
<string>-rescan=1: Rescan the block chain for missing wallet transactions starting from wallet creation time.</string>
1441+
</property>
1442+
<property name="wordWrap">
1443+
<bool>true</bool>
1444+
</property>
1445+
</widget>
1446+
</item>
1447+
<item row="4" column="0">
1448+
<widget class="QPushButton" name="btn_rescan2">
1449+
<property name="minimumSize">
1450+
<size>
1451+
<width>180</width>
1452+
<height>23</height>
1453+
</size>
1454+
</property>
1455+
<property name="text">
1456+
<string>Rescan blockchain files 2</string>
1457+
</property>
1458+
</widget>
1459+
</item>
1460+
<item row="4" column="1">
1461+
<widget class="QLabel" name="label_repair_rescan2">
1462+
<property name="text">
1463+
<string>-rescan=2: Rescan the block chain for missing wallet transactions starting from genesis block.</string>
1464+
</property>
1465+
<property name="wordWrap">
1466+
<bool>true</bool>
1467+
</property>
1468+
</widget>
1469+
</item>
1470+
<item row="5" column="0">
1471+
<widget class="QPushButton" name="btn_upgradewallet">
1472+
<property name="minimumSize">
1473+
<size>
1474+
<width>180</width>
1475+
<height>23</height>
1476+
</size>
1477+
</property>
1478+
<property name="text">
1479+
<string>Upgrade wallet format</string>
1480+
</property>
1481+
</widget>
1482+
</item>
1483+
<item row="5" column="1">
1484+
<widget class="QLabel" name="label_repair_upgrade">
1485+
<property name="text">
1486+
<string>-upgradewallet: Upgrade wallet to latest format on startup. (Note: this is NOT an update of the wallet itself!)</string>
1487+
</property>
1488+
<property name="wordWrap">
1489+
<bool>true</bool>
1490+
</property>
1491+
</widget>
1492+
</item>
1493+
<item row="6" column="0">
1494+
<widget class="QPushButton" name="btn_reindex">
1495+
<property name="text">
1496+
<string>Rebuild index</string>
1497+
</property>
1498+
</widget>
1499+
</item>
1500+
<item row="6" column="1">
1501+
<widget class="QLabel" name="label_repair_reindex">
1502+
<property name="text">
1503+
<string>-reindex: Rebuild block chain index from current blk000??.dat files.</string>
1504+
</property>
1505+
<property name="wordWrap">
1506+
<bool>true</bool>
1507+
</property>
1508+
</widget>
1509+
</item>
1510+
<item row="7" column="1">
1511+
<spacer name="verticalSpacerRepair">
1512+
<property name="orientation">
1513+
<enum>Qt::Vertical</enum>
1514+
</property>
1515+
</spacer>
1516+
</item>
1517+
</layout>
15721518
</widget>
15731519
</widget>
15741520
</item>

0 commit comments

Comments
 (0)