UI: alignment fix for Overview-page

This commit is contained in:
crowning- 2015-07-31 08:40:06 +02:00
parent d57d6f0466
commit a5170420db
3 changed files with 25 additions and 19 deletions

View File

@ -426,7 +426,7 @@
<enum>QFormLayout::AllNonFixedFieldsGrow</enum> <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property> </property>
<property name="horizontalSpacing"> <property name="horizontalSpacing">
<number>30</number> <number>11</number>
</property> </property>
<property name="verticalSpacing"> <property name="verticalSpacing">
<number>12</number> <number>12</number>
@ -438,13 +438,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<widget class="QLabel" name="darksendEnabled">
<property name="text">
<string>Enabled/Disabled</string>
</property>
</widget>
</item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
@ -516,6 +509,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<widget class="QLabel" name="darksendEnabled">
<property name="text">
<string>Enabled/Disabled</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QPushButton" name="runAutoDenom"> <widget class="QPushButton" name="runAutoDenom">
@ -1059,7 +1059,7 @@
<string>Reset</string> <string>Reset</string>
</property> </property>
</widget> </widget>
<widget class="QWidget" name=""> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>

View File

@ -226,8 +226,15 @@ void OverviewPage::updateWatchOnlyLabels(bool showWatchOnly)
ui->labelWatchPending->setVisible(showWatchOnly); // show watch-only pending balance ui->labelWatchPending->setVisible(showWatchOnly); // show watch-only pending balance
ui->labelWatchTotal->setVisible(showWatchOnly); // show watch-only total balance ui->labelWatchTotal->setVisible(showWatchOnly); // show watch-only total balance
if (!showWatchOnly) if (!showWatchOnly){
ui->labelWatchImmature->hide(); ui->labelWatchImmature->hide();
}
else{
ui->labelBalance->setIndent(20);
ui->labelUnconfirmed->setIndent(20);
ui->labelImmature->setIndent(20);
ui->labelTotal->setIndent(20);
}
} }
void OverviewPage::setClientModel(ClientModel *model) void OverviewPage::setClientModel(ClientModel *model)

View File

@ -748,13 +748,13 @@ padding-right:5px;
QWidget .QFrame#frame .QLabel#labelWalletStatus { /* Wallet Sync Status */ QWidget .QFrame#frame .QLabel#labelWalletStatus { /* Wallet Sync Status */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
margin-left:20px; margin-left:3px;
} }
QWidget .QFrame#frame .QLabel#labelSpendable { /* Spendable Header */ QWidget .QFrame#frame .QLabel#labelSpendable { /* Spendable Header */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
font-size:12px; font-size:12px;
margin-left:32px; margin-left:18px;
} }
QWidget .QFrame#frame .QLabel#labelWatchonly { /* Watch-only Header */ QWidget .QFrame#frame .QLabel#labelWatchonly { /* Watch-only Header */
@ -780,7 +780,7 @@ qproperty-alignment: 'AlignVCenter | AlignLeft';
font-size:12px; font-size:12px;
font-weight:bold; font-weight:bold;
color:#56ABD8; color:#56ABD8;
margin-left:32px; margin-left:0px;
} }
QWidget .QFrame#frame .QLabel#labelWatchAvailable { /* Watch-only Balance */ QWidget .QFrame#frame .QLabel#labelWatchAvailable { /* Watch-only Balance */
@ -801,7 +801,7 @@ padding-right:5px;
QWidget .QFrame#frame .QLabel#labelUnconfirmed { /* Pending Balance */ QWidget .QFrame#frame .QLabel#labelUnconfirmed { /* Pending Balance */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
font-size:12px; font-size:12px;
margin-left:32px; margin-left:0px;
} }
QWidget .QFrame#frame .QLabel#labelWatchPending { /* Watch-only Pending Balance */ QWidget .QFrame#frame .QLabel#labelWatchPending { /* Watch-only Pending Balance */
@ -822,7 +822,7 @@ padding-right:5px;
QWidget .QFrame#frame .QLabel#labelImmature { /* Immature Balance */ QWidget .QFrame#frame .QLabel#labelImmature { /* Immature Balance */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
font-size:12px; font-size:12px;
margin-left:32px; margin-left:0px;
} }
QWidget .QFrame#frame .QLabel#labelWatchImmature { /* Watch-only Immature Balance */ QWidget .QFrame#frame .QLabel#labelWatchImmature { /* Watch-only Immature Balance */
@ -843,7 +843,7 @@ padding-right:5px;
QWidget .QFrame#frame .QLabel#labelTotal { /* Total Balance */ QWidget .QFrame#frame .QLabel#labelTotal { /* Total Balance */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
font-size:12px; font-size:12px;
margin-left:32px; margin-left:0px;
} }
QWidget .QFrame#frame .QLabel#labelWatchTotal { /* Watch-only Total Balance */ QWidget .QFrame#frame .QLabel#labelWatchTotal { /* Watch-only Total Balance */
@ -877,7 +877,7 @@ min-height:35px;
/******************************************************************/ /******************************************************************/
QWidget .QFrame#frameDarksend .QLabel#labelDarksendSyncStatus { /* Darksend Sync Status */ QWidget .QFrame#frameDarksend .QLabel#labelDarksendSyncStatus { /* Darksend Sync Status */
qproperty-alignment: 'AlignVCenter | AlignLeft'; qproperty-alignment: 'AlignVCenter | AlignLeft';
margin-left:20px; margin-left:2px;
} }
QWidget .QFrame#frameDarksend #formLayoutWidget { QWidget .QFrame#frameDarksend #formLayoutWidget {
@ -890,12 +890,11 @@ font-weight:normal;
min-height:25px; min-height:25px;
} }
QWidget .QFrame#frameDarksend #formLayoutWidget .QLabel#label_6 { /* Darksend Status Label */ QWidget .QFrame#frameDarksend #formLayoutWidget .QLabel#label_6 { /* Darksend Status Label */
qproperty-alignment: 'AlignVCenter | AlignRight'; qproperty-alignment: 'AlignVCenter | AlignRight';
min-width:160px; min-width:160px;
background-color:#F8F6F6; background-color:#F8F6F6;
margin-right:5px; margin-right:0px;
padding-right:5px; padding-right:5px;
} }