Qt GUI updates #539

pull laanwj wants to merge 13 commits into bitcoin:master from laanwj:qt2 changing 15 files +223 −43
  1. laanwj commented at 8:22 PM on September 28, 2011: member

    Some important (and less important) updates for the Qt UI

    Core:

    • use median filter (CMedianFilter) for peer-reported reported number of blocks
      • this fixes problem that one misconfigured or malicious node can mess up progress bar
      • implementation in src/util.h
      • testcase in src/test/util_tests.cpp

    UI:

    • Translation handling
      • Include translations as resource, so that they are included in the executable. This saves a lot of hassle on installation (less files to worry about), and is similar to how other Qt applications do it
      • In resources, use nl_NL format instead of nl, so that the correct translation is chosen based on system locale automatically
    • Improve send coins screen
      • Add balance to remind users how much they can send
      • No longer clear input when switching tabs; this is non-intuitive and can cause loss of work. Instead, add a "clear input" button.

    Build system (qmake):

    • Add BOOST_LIB_SUFFIX option to make it possible for distribution install scripts (such as Gentoo) to pass in alternative boost library version names without resorting to sed hacks
    • Factor out windows/mac specific include, lib paths so that they can be overridden (overall result is still the same)
    • Dependency library locations can be customized with BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH, BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
    • Build translations (.qm) automatically in make, no need to run lrelease separately anymore

    Minor:

    • Add Q_OBJECT everywhere it should be according to Qt rules (removes warnings when lupdate parses sources)
    • Use USE_DBUS define instead of QT_DBUS to switch Linux notification mode, to prevent conflicts in some Qt versions
    • Update OTHER_FILES section in Qt creator so that all documentation is shown, now that both projects have been fully merged
  2. put Q_OBJECT everywhere it should be (removes warnings when running lupdate) 9b490f71b0
  3. show balance in sendcoins screen (issue #24) b8afa21fad
  4. Merge branch 'master' of https://github.com/bitcoin/bitcoin 0961c2fc0d
  5. make qmake build system more configurable (as suggested by lukejr) 99cec89cb3
  6. Change define to determine use of DBUS to USE_DBUS, to prevent overlap with Qt-defined QT_DBUS 010c4fc0b5
  7. Send Coins page not cleared when changing tabs. Clear all button for clearing the entries 609acbf43d
  8. Removing the if statement entirely - not needed. a1ef0d19b1
  9. Merge pull request #25 from Matoking/master
    Send Coins page changes
    d28ed9c98e
  10. translation handling improvements
    - automatically build binary translation files in qmake/make
    - roll translations into resource file and executable, to simply installation
    5902040874
  11. use median filter for peer-reported reported number of blocks
    - fixes problem that one misconfigured or malicious node can mess up progress bar
    - implementation in src/util.h
    - testcase in src/test/util_tests.cpp
    a8b95ce6ed
  12. Merge branch 'master' of https://github.com/bitcoin/bitcoin
    Conflicts:
    	.gitignore (used upstream version)
    	bitcoin-qt.pro
    002a4dcad0
  13. Update "other files" in Qt Creator with all documentation now that the projects merged f33a43efdf
  14. Add assertion size>0 to MedianFilter 20091df725
  15. in src/util.h:None in f33a43efdf outdated
     596 | +        std::sort(vSorted.begin(), vSorted.end());
     597 | +    }
     598 | +
     599 | +    T median() const
     600 | +    {
     601 | +        int size = vSorted.size();
    


    gavinandresen commented at 2:55 PM on September 29, 2011:

    Maybe assert(size > 0) here


    laanwj commented at 2:59 PM on September 29, 2011:

    Yes -- it might be a safe precaution to add an assertion.

  16. gavinandresen referenced this in commit 9a7e5ed3b0 on Sep 29, 2011
  17. gavinandresen merged this on Sep 29, 2011
  18. gavinandresen closed this on Sep 29, 2011

  19. coblee referenced this in commit 3149021657 on Jul 17, 2012
  20. sipa referenced this in commit cc05fa919a on Mar 30, 2019
  21. sipa referenced this in commit 1e32413e52 on Mar 30, 2019
  22. sipa referenced this in commit 54245985fb on Mar 31, 2019
  23. sipa referenced this in commit 3fe71bbd95 on Apr 2, 2019
  24. LongShao007 referenced this in commit 3d9a3d2063 on Jul 15, 2019
  25. LongShao007 referenced this in commit 8af66f3427 on Jul 15, 2019
  26. LongShao007 referenced this in commit 807f206f73 on Jul 15, 2019
  27. fjahr referenced this in commit ba698f883b on Jul 24, 2019
  28. kallewoof referenced this in commit dd1623af0a on Oct 4, 2019
  29. kallewoof referenced this in commit c866f52e2a on Oct 4, 2019
  30. Losangelosgenetics referenced this in commit 0bbc6415c5 on Mar 12, 2020
  31. KolbyML referenced this in commit bc86927231 on Sep 4, 2020
  32. rajarshimaitra referenced this in commit 4f91a1ea98 on Aug 5, 2021
  33. 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 18:16 UTC

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