Andrew Poelstra
c3b6bbba4a
Merge 0865a8881d into merged_master (Bitcoin PR bitcoin-core/gui#3 )
2020-11-26 01:09:08 +00:00
Andrew Poelstra
7c5fd66303
Merge eb2ffbb7c1 into merged_master (Bitcoin PR #18914 )
2020-11-26 01:08:41 +00:00
Andrew Poelstra
009bc2fdfb
Merge 99813a9745 into merged_master (Bitcoin PR #17829 )
2020-11-14 16:52:02 +00:00
Andrew Poelstra
2655d0f951
Merge a75cb122ed into merged_master (Bitcoin PR #17195 )
2020-11-09 21:20:42 +00:00
Andrew Poelstra
9f37eba7d1
Merge d20d171f26 into merged_master (Bitcoin PR #16701 )
2020-11-09 21:20:19 +00:00
Hennadii Stepanov
25f3554351
scripted-diff: Make SeparatorStyle a scoped enum
...
-BEGIN VERIFY SCRIPT-
# General rename helper: $1 -> $2
rename_global() { sed -i "s/\<$1\>/$2/g" $(git grep -l "$1"); }
# Helper to rename SeparatorStyle enumerators
rename_value() {
sed -i "s/ $1/ $2/g" src/qt/bitcoinunits.h;
rename_global $1 "SeparatorStyle::$2";
}
rename_global 'enum SeparatorStyle' 'enum class SeparatorStyle'
rename_value 'separatorNever' 'NEVER'
rename_value 'separatorStandard' 'STANDARD'
rename_value 'separatorAlways' 'ALWAYS'
-END VERIFY SCRIPT-
2020-06-18 15:30:15 +03:00
Hennadii Stepanov
1551cea2d5
refactor: Use override for non-final overriders
2020-05-08 10:36:58 +03:00
MarcoFalke
aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2019-12-30 10:42:20 +13:00
JeremyCrookshank
57e2edea0b
Send amount shows minimum amount placeholder
2019-10-19 13:46:59 +01:00
Hennadii Stepanov
1260ecd812
qt: Add TextWidth() wrapper
...
In Qt 5.12 and before the QFontMetrics::width() is used and it is
deprecated since Qt 13.0.
In Qt 5.11 the QFontMetrics::horizontalAdvance() was introduced.
2019-08-23 21:27:50 +03:00
Steven Roose
f4889a5253
UPSTREAM MERGE BROKEN: Merge upstream commit ' 519b0bc5dc' into master
2019-05-17 16:17:09 +01:00
Steven Roose
9f4f2e7519
MERGE-FIX: Fix compilation errors
2019-05-03 17:46:12 +01:00
Steven Roose
7f894ae00b
UPSTREAM MERGE BROKEN: Merge commit ' f617e05c38' into master
2019-05-01 19:18:18 +01:00
Gregory Sanders
8adf591590
QT include linting
2019-04-10 12:59:03 -04:00
Luke Dashjr
1f0b6886b7
GUI: Emit BitcoinAmountField::valueChanged when unit changes even if the current value is invalid
2019-04-10 10:07:43 -04:00
Luke Dashjr
af726c7c36
GUI: BitcoinAmountField: Limit issued assets to 21M
...
MoneyRange at least seems to enforce 21M on assets, so do it here too
2019-04-09 11:52:01 -04:00
Luke Dashjr
7f00087b53
GUI: BitcoinAmountField: Allow changing allowed assets after construction
2019-04-09 11:44:53 -04:00
Luke Dashjr
3e669cd31d
GUI: BitcoinAmountField: Allow code to set assets not in allowed_assets
2019-04-09 11:43:41 -04:00
Luke Dashjr
2c75c44417
GUI: BitcoinAmountField: Support for non-bitcoin assets
2019-04-09 11:37:24 -04:00
Luke Dashjr
d81c9f7b3e
AmountSpinBox: Resolve singleStep default when making steps
2019-04-09 11:12:50 -04:00
Ben Woosley
3a0e76fc12
Replace remaining 0 with nullptr in Qt code
...
Also used type-appropriate enum values such as Qt::NoItemFlags in
some cases.
All cases identified via -Wzero-as-null-pointer-constant
2019-01-13 03:25:14 -08:00
practicalswift
9096276e0b
Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)
...
Qt-only changes.
2019-01-13 03:25:14 -08:00
Hennadii Stepanov
8711cc0c78
qt: Improve BitcoinAmountField class
...
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.
2018-10-30 14:58:25 +02:00
João Barbosa
f78558f1e3
qt: Use new Qt5 connect syntax
2018-08-21 09:43:54 +01:00
DrahtBot
eb7daf4d60
Update copyright headers to 2018
2018-07-27 07:15:02 -04:00
Brandon Ruggles
5f3cbde9de
Increased max width of amount field to prevent number overflow bug.
2018-05-20 01:09:16 -04:00
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
2018-01-03 02:26:56 +09:00
Wladimir J. van der Laan
e7b31631c7
qt: refactor: Changes to make include paths absolute
...
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.
2017-11-16 08:23:02 +13:00
MeshCollider
1a445343f6
scripted-diff: Replace #include "" with #include <> (ryanofsky)
...
-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-
2017-11-16 08:23:01 +13:00
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
2015-12-13 18:08:39 +01:00
Wladimir J. van der Laan
d29ec6c230
qt: define QT_NO_KEYWORDS
...
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 .
2015-07-15 07:30:23 +02:00
Philip Kaufmann
fdf80ea7b1
[Qt] allow unit changes for read-only BitcoinAmountField
...
- fixes #5725
2015-01-31 17:39:22 +01:00
Philip Kaufmann
80dd50ccba
[Qt] group variables below initial if-clauses in AmountSpinBox::stepEnabled
2015-01-13 11:51:45 +01:00
Philip Kaufmann
0fd9e2bf43
[Qt] don't allow amount changes when AmountSpinBox is read-only
...
- 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)
2015-01-10 15:02:12 +01:00
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-19 19:55:32 +01:00
Michael Ford
78253fcbad
Remove references to X11 licence
2014-12-16 15:56:50 +08:00
Cozz Lovan
c1c9d5b415
[Qt] Add Smartfee to GUI
2014-11-19 16:04:53 +01:00
Cozz Lovan
7335ca1a05
[Qt] Fix height of BitcoinAmountField
2014-11-16 01:07:09 +01:00
Mark Friedenbach
a372168e77
Use a typedef for monetary values
2014-09-26 15:42:04 -07:00
Wladimir J. van der Laan
91cce1732b
qt: Use fixed-point arithmetic in amount spinbox
...
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.
2014-07-23 17:58:46 +02:00
Roy Badami
7007402956
Implement SI-style (thin space) thoudands separator
2014-05-17 14:49:02 +01:00
Wladimir J. van der Laan
7abcd1a1c9
Merge pull request #3614
...
b920148 [Qt] Improve single step in bitcoinamountfield (Cozz Lovan)
2014-02-17 12:30:30 +01:00
gubatron
57702541a2
Copyright header updates s/2013/2014 on files whose last git commit was done 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.
2014-02-09 21:06:06 -05:00
Cozz Lovan
b920148258
[Qt] Improve single step in bitcoinamountfield
2014-02-02 07:57:50 +01:00
Wladimir J. van der Laan
69d03bc6e2
qt: Fix tab order in send and receive tab
2014-01-29 14:41:41 +01:00
Philip Kaufmann
6c1bf199ca
[Qt] style-police, add missing license headers
...
- add missing license headers in Mac files
- small code formating cleanups
2013-12-17 07:56:40 +01:00
Brandon Dahler
51ed9ec971
Cleanup code using forward declarations.
...
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.
2013-11-10 09:36:28 -06:00
Wladimir J. van der Laan
e592d43f51
qt: add license header to source files
...
Closes #839
2013-11-04 16:27:09 +01:00
Philip Kaufmann
75fa27eaca
make BitcoinAmountField::setReadOnly() usable
...
- 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)
2013-10-15 15:26:22 +02:00
Gavin Andresen
a41d5fe019
Payment Protocol: X509-validated payment requests
...
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.
2013-08-22 16:18:25 +10:00