From d8aeb8dd2af508febafd9f7aa23526b67b97185f Mon Sep 17 00:00:00 2001 From: Wladimir J. van der Laan Date: Fri, 8 Jul 2011 19:00:08 +0200 Subject: [PATCH] Reorganize "send coins" tab --- src/qt/forms/sendcoinsdialog.ui | 191 +++++++++++++++++++++------------------ src/qt/sendcoinsdialog.cpp | 1 + 2 files changed, 106 insertions(+), 86 deletions(-) diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui index 7f843c4..a5c38a5 100644 --- a/src/qt/forms/sendcoinsdialog.ui +++ b/src/qt/forms/sendcoinsdialog.ui @@ -6,8 +6,8 @@ 0 0 - 660 - 193 + 686 + 217 @@ -15,7 +15,85 @@ + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 12 + + + + + + + 12 + + + + + A&mount: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + payAmount + + + + + + + Pay &To: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + payTo + + + + + + + + + + 0 + + + + + true + + + Enter a label for this address to add it to your address book + + + + + + + + + &Label: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + addAsLabel + + + @@ -76,94 +154,13 @@ - - - - A&mount: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - payAmount - - - - - - - Pay &To: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - payTo - - - - - - - - 9 - - - - Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) - - - - - - - - - - 0 - - - - - true - - - Enter a label for this address to add it to your address book - - - - - - - - - &Label: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - addAsLabel - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - + + 12 + @@ -179,6 +176,12 @@ + + + 120 + 0 + + Confirm the send action @@ -208,10 +211,26 @@ QDialogButtonBox::Cancel + + false + + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 2265f88..91397a7 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -20,6 +20,7 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent, const QString &address) : { ui->setupUi(this); #if QT_VERSION >= 0x040700 + ui->payTo->setPlaceholderText(tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)")); ui->addAsLabel->setPlaceholderText(tr("Enter a label for this address to add it to your address book")); #endif GUIUtil::setupAddressWidget(ui->payTo, this); -- 1.7.1