bitcoin/bitcoin — pull request #1518 by Diapolo (2012-06-24 16:34:05+00:00)
Title: update QRCodeDialog

![updated QRCodeDialog](http://i46.tinypic.com/2mi3xuw.jpg)

- remove unused #include and lblBTC label
- update Bitcoin input field to a BitcoinAmountField to allow Bitcoin unit selection
- use BitcoinUnits::format for the resulting amount parameter in the generated URI (always use BTC as per BIP21)
- move MAX_URI_LENGTH and EXPORT_IMAGE_SIZE to guiconstants.h
- prepare QRCodeDialog for OptionsModel usage (currently unused)
- add updateDisplayUnit() slot to be able to imediately update currently set bitcoin unit
- make all labels in the UI-file plain text
- resize dialog a little to match for an updated layout (fields are now stacked)

Todo:
- get access to the OptionsModel to be able to update the default used unit
- don't allow zero amounts (needs a check added)

Fixes: #1506