aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinamountfield.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace remaining 0 with nullptr in Qt codeBen Woosley2019-01-131-2/+2
| | | | | | | Also used type-appropriate enum values such as Qt::NoItemFlags in some cases. All cases identified via -Wzero-as-null-pointer-constant
* Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)practicalswift2019-01-131-2/+2
| | | | Qt-only changes.
* qt: Improve BitcoinAmountField classHennadii Stepanov2018-10-301-14/+53
| | | | | | | | | | | | This adds functions for specifing a min/max value for a BitcoinAmountField. These options only affect user input, so it's still possible to use setValue to set values outside of the min/max range. The existing value will not be changed when calling these functions even if it's out of range. The min/max range will be reinforced when the field loses focus. This also adds `SetAllowEmpty` function which specifies if the field is allowed to be left empty by the user. If set to false the field will be set to the minimum allowed value if it's empty when focus is lost.
* qt: Use new Qt5 connect syntaxJoão Barbosa2018-08-211-3/+3
|
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Increased max width of amount field to prevent number overflow bug.Brandon Ruggles2018-05-201-1/+1
|
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* qt: refactor: Changes to make include paths absoluteWladimir J. van der Laan2017-11-161-1/+1
| | | | | | | This makes all include paths in the GUI absolute. Many changes are involved as every single source file in src/qt/ assumes to be able to use relative includes.
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* qt: define QT_NO_KEYWORDSWladimir J. van der Laan2015-07-151-2/+2
| | | | | | | | QT_NO_KEYWORDS prevents Qt from defining the `foreach`, `signals`, `slots` and `emit` macros. Avoid overlap between Qt macros and boost - for example #undef hackiness in #6421.
* [Qt] allow unit changes for read-only BitcoinAmountFieldPhilip Kaufmann2015-01-311-1/+0
| | | | - fixes #5725
* [Qt] group variables below initial if-clauses in AmountSpinBox::stepEnabledPhilip Kaufmann2015-01-131-2/+3
|
* [Qt] don't allow amount changes when AmountSpinBox is read-onlyPhilip Kaufmann2015-01-101-17/+21
| | | | | | | | - before it was possible to use the steps to change e.g. amouns of authenticated or unauthenticated payment requests (AmountSpinBox is already set to read-only here) - this is now fixed - also move the reimplemented stepEnabled() function to the protected section of our class, where it belongs (see Qt doc)
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* [Qt] Add Smartfee to GUICozz Lovan2014-11-191-0/+6
|
* [Qt] Fix height of BitcoinAmountFieldCozz Lovan2014-11-161-0/+1
|
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-14/+14
|
* qt: Use fixed-point arithmetic in amount spinboxWladimir J. van der Laan2014-07-231-106/+166
| | | | | | | | | Fixes various issues and cleans up code - Fixes issue #4500: Amount widget +/- has floating point rounding artifacts - Amount box can now be emptied again, without clearing to 0 Also aligns the amount to the right, as in other places.
* Implement SI-style (thin space) thoudands separatorRoy Badami2014-05-171-2/+47
|
* Merge pull request #3614Wladimir J. van der Laan2014-02-171-7/+9
|\ | | | | | | b920148 [Qt] Improve single step in bitcoinamountfield (Cozz Lovan)
| * [Qt] Improve single step in bitcoinamountfieldCozz Lovan2014-02-021-7/+9
| |
* | Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
|/ | | | | | in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
* qt: Fix tab order in send and receive tabWladimir J. van der Laan2014-01-291-1/+2
|
* [Qt] style-police, add missing license headersPhilip Kaufmann2013-12-171-2/+4
| | | | | - add missing license headers in Mac files - small code formating cleanups
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-3/+2
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* qt: add license header to source filesWladimir J. van der Laan2013-11-041-0/+4
| | | | Closes #839
* make BitcoinAmountField::setReadOnly() usablePhilip Kaufmann2013-10-151-2/+3
| | | | | - use it for secure payment-requests (this change allows a copy&paste of the amount and looks a little nicer than just a disabled GUI element)
* Payment Protocol: X509-validated payment requestsGavin Andresen2013-08-221-0/+5
| | | | | | | | Add support for a Payment Protocol to Bitcoin-Qt. Payment messages are protocol-buffer encoded and communicated over http(s), so this adds a dependency on the Google protocol buffer library, and requires Qt with OpenSSL support.
* Bitcoin-Qt: fix QApplication includes to match our include defaultsPhilip Kaufmann2013-07-231-1/+2
| | | | | - move all QApplication includes to top of included Qt headers - undef our loop macro where it would cause compilation errors otherwise
* Too many bitcoins allowed in amount. (#2401)vhf / victor felder2013-06-021-4/+6
| | | | | Using magic number doesn't seem right. Could we factor this out, together with https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrpc.cpp#L96 ? And what about BitcoinUnits::parse() as well ?
* Bitcoin-Qt: only use qApp for Q(Core)Application::instance()Philip Kaufmann2013-04-021-1/+1
|
* Fix transaction fee in uBTCRoman Mindalev2013-03-231-0/+5
| | | | | | Step for buttons 'up' and 'down' - 0.001. With BTC and mBTC all ok, but 0.001 uBTC is lower than minimal value (satoshi) User should press 10 times on 'up' button to get 0.01 uBTC
* Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann2013-03-171-6/+2
| | | | | | | - try to enforce the same style to all Qt related files - remove unneeded includes from the files - add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE - prepares for a pull-req to include Qt5 compatibility
* Change up/down increment in UI to 0.001 BTC (issue #760)Wladimir J. van der Laan2012-02-051-0/+1
|
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-1/+0
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-0/+1
|
* Improved Mac experience; QDoubleSpinBox for BitcoinAmountFieldp2k2011-10-091-51/+40
| | | | | | | | Now it can't be told if this is was a Windows App before. All Mac design principles are fulfilled and some cosmetics have been applied to suit the native look and feel. The biggest change there is the proper use of the Dock icon which takes the role of the Tray icon on Mac. The QDoubleSpinBox improves entering of Bitcoin amounts, no two separate fields are required anymore. All functionality and validation effects have been retained; pressing the comma key will be internally translated to a period to keep it consistent throughout the application and eases entering in countries which use the comma as decimal separator. Additionally, Notificator now supports Growl, Mac's native notification system. This is provided via Apple Script in order to avoid linking to Growl on compile time. Other changes involve encapsulation of Toolbar and Menubar creation, loading of Qt's own translation and some clean up.
* comments and readme updateWladimir J. van der Laan2011-08-311-0/+1
|
* QtUI code cleanup / comment improvementsWladimir J. van der Laan2011-08-081-2/+1
|
* don't include <QDebug>Wladimir J. van der Laan2011-08-071-1/+0
|
* make amount field the same width as decimals fieldWladimir J. van der Laan2011-08-031-1/+1
|
* Make dot in amount field more apparentWladimir J. van der Laan2011-07-301-1/+1
|
* Full support for other units, add configuration option for default unit ↵Wladimir J. van der Laan2011-07-291-3/+8
| | | | (used when displaying amounts)
* Reset unit to default when clearing the field, to prevent confusionWladimir J. van der Laan2011-07-261-0/+2
|
* allow multiple units in bitcoin amount widget (for example, for sending) ↵Wladimir J. van der Laan2011-07-261-6/+65
| | | | using a combobox
* preparations for multiple unit (uBTC, mBTC, BTC) support, fix amount entry issueWladimir J. van der Laan2011-07-251-2/+10
|
* Merge pull request #9 from celil-kj/masterWladimir J. van der Laan2011-07-241-7/+2
|\ | | | | | | allow decimals such as .05 for amount of bitcoins to send
| * Allow ammount field to be empty so that one can specify .05 instead ofCelil2011-07-221-7/+6
|/ | | | having to type the leading zero as in 0.05