qt: show all units in send confirmation #3273

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2013_11_confirmation_allunits changing 1 files +11 −4
  1. laanwj commented at 1:47 PM on November 17, 2013: member

    Make users accustomed to the other subdivision units (mBTC, muBTC) by showing the total amount in all units in the confirmation dialog.

    This was recently raised on the mailing list and could be a preparation for switching over the default unit eventually.

    allunits

  2. qt: show all units in send confirmation
    Make users accustomed to the other subdivision units (mBTC, muBTC)
    by showing the total amount in all units in the confirmation dialog.
    
    This was recently raised on the mailing list and could be a preparation
    for switching over the default unit eventually.
    fb0507fe4b
  3. BitcoinPullTester commented at 2:20 PM on November 17, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/fb0507fe4b3ff733386c8e3580032cfc965eec17 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  4. in src/qt/sendcoinsdialog.cpp:None in fb0507fe4b
     230 | -        questionString.append(tr("Total Amount %1").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), currentTransaction.getTotalTransactionAmount()+txFee)));
     231 | +        if(u != model->getOptionsModel()->getDisplayUnit())
     232 | +            alternativeUnits.append(BitcoinUnits::formatWithUnit(u, totalAmount));
     233 |      }
     234 | +    questionString.append(tr("Total Amount %1 (= %2)")
     235 | +            .arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount))
    


    Diapolo commented at 7:24 AM on November 18, 2013:

    Nit: Can you use 4 space indentation for these?


    laanwj commented at 7:42 AM on November 18, 2013:

    Let's not argue about the amount of indentation...

  5. in src/qt/sendcoinsdialog.cpp:None in fb0507fe4b
     216 | @@ -217,12 +217,19 @@ void SendCoinsDialog::on_sendButton_clicked()
     217 |          questionString.append("</span> ");
     218 |          questionString.append(tr("added as transaction fee"));
     219 |      }
     220 | -    if(txFee > 0 || recipients.count() > 1)
    


    Diapolo commented at 7:25 AM on November 18, 2013:

    Why remove this check? AFAIK we just display a total, if there was a fee.


    laanwj commented at 7:40 AM on November 18, 2013:

    Because I want to always show the total in all units, even if there is no fee


    Diapolo commented at 1:23 PM on November 21, 2013:

    Agreed

  6. Diapolo commented at 1:23 PM on November 21, 2013: none

    ACK to the idea, didn't test the code... but looks sane :).

  7. laanwj referenced this in commit be5d37c597 on Nov 22, 2013
  8. laanwj merged this on Nov 22, 2013
  9. laanwj closed this on Nov 22, 2013

  10. laanwj deleted the branch on Apr 9, 2014
  11. Bushstar referenced this in commit 88da298082 on Apr 8, 2020
  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me