dash/src/qt
dustinface b22aa1813c
qt: Finetune OverviewPage (#3715)
* qt: Adjust "Recent Transactions" in Overview tab

Make sure they follow the same format as the transactions in
TransactionsView.

- Removed the transaction type representing arrows
- Apply the same coloring like like in the transaction tab for
the different transaction types (orange = internal, red = outgoing,
green = incoming)

* qt: Cleanup layout of OverviewPage in css

* qt: Add three spacer (left, middle, right) and adjust layout stretch.

This allows to have the elements on the screen aligned symetrically
around the center independent from the window size/resizing.

* qt: Inrease date/amount size for "Recent Transactions" in Overview tab

* qt: Inrease number of "Recent Transactions" displayed in Overview tab

Just to fill the empty space

* qt: Make sure PS elements show as expected and adjust number of recent transactions based on PS

* qt: Adjust transaction entry generation

Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com>

* qt: Adjust warning message box

Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com>

* Move tx list style to css

* Fix tx list style for the traditional theme

* Drop (no longer needed?) min height offset in SetupTransactionList

Can't reproduce the tx list scrolling issue anymore

* Avoid recreating transaction filter from scratch every time SetupTransactionList is called

We call SetupTransactionList every second now (from privateSendStatus()) and this makes GUI unresponsive for huge wallets (I have ~400k txes in my testnet wallet) because of filter recreation/sorting. There is no need to go through all setup steps really, simply updating the limit works just fine and fixes the issue.

* qt: Fix an `if` statement

* qt: Just some refactoring

* fix code style

* bail out if `filter->rowCount() == nNumItems`

* qt: Make sure number of transactions is always correct

* Drop spacer to let recent tx list occupy max height available

* TransactionFilterProxy::setLimit should emit signals to let coresponding layouts update themselves

https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutAboutToBeChanged
https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutChanged

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
2020-09-25 19:04:53 +03:00
..
forms qt: Finetune OverviewPage (#3715) 2020-09-25 19:04:53 +03:00
locale Update translations 2020-02-03 (#3322) 2020-02-03 21:18:23 +03:00
res qt: Finetune OverviewPage (#3715) 2020-09-25 19:04:53 +03:00
test qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
addressbookpage.cpp qt: Disable missing macOS focus rects in AddressBookPage (#3711) 2020-09-18 13:15:26 +03:00
addressbookpage.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
addresstablemodel.cpp scripted-diff: Avoid temporary copies when looping over std::map (Merge #13241) 2020-07-07 11:46:21 -05:00
addresstablemodel.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
appearancewidget.cpp qt: Make sure stylesheet updates of -debug-ui are activated (#3623) 2020-07-27 10:32:48 +03:00
appearancewidget.h qt: Fix appearancewidget.h to make lint-include-guards.sh happy (#3627) 2020-07-27 10:31:17 +03:00
askpassphrasedialog.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
askpassphrasedialog.h Merge #11480: [ui] Add toggle for unblinding password fields 2020-01-16 09:22:46 -06:00
bantablemodel.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
bantablemodel.h Bugfix: Include <memory> for std::unique_ptr 2020-04-08 11:46:27 -05:00
bitcoinaddressvalidator.cpp qt: Allow and process URIs pasted to the payTo field of SendCoinsEntry (#3475) 2020-05-12 02:33:21 +03:00
bitcoinaddressvalidator.h qt: Allow and process URIs pasted to the payTo field of SendCoinsEntry (#3475) 2020-05-12 02:33:21 +03:00
bitcoinamountfield.cpp qt: Tweak few strings (#3706) 2020-09-16 12:13:42 +03:00
bitcoinamountfield.h qt: Redesign BitcoinAmountField (#3569) 2020-07-19 19:32:20 +03:00
bitcoingui.cpp qt: Hide remaining PrivateSend UI if PrivateSend is not enabled (#3716) 2020-09-18 13:15:55 +03:00
bitcoingui.h qt: Hide remaining PrivateSend UI if PrivateSend is not enabled (#3716) 2020-09-18 13:15:55 +03:00
bitcoinunits.cpp qt: Redesign BitcoinAmountField (#3569) 2020-07-19 19:32:20 +03:00
bitcoinunits.h qt: Redesign BitcoinAmountField (#3569) 2020-07-19 19:32:20 +03:00
callback.h Merge #10969: Declare single-argument (non-converting) constructors "explicit" 2020-01-10 10:33:57 -06:00
clientmodel.cpp qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
clientmodel.h qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
coincontroldialog.cpp qt: Finetune CoinControlDialog + bitcoin#14828 (#3701) 2020-09-23 10:31:50 +03:00
coincontroldialog.h qt: Finetune CoinControlDialog + bitcoin#14828 (#3701) 2020-09-23 10:31:50 +03:00
coincontroltreewidget.cpp Merge #10498: Use static_cast instead of C-style casts for non-fundamental types 2020-06-10 18:32:43 -05:00
coincontroltreewidget.h
csvmodelwriter.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
csvmodelwriter.h
dash_locale.qrc Translations 2020-01 (#3192) 2020-01-17 16:00:53 +01:00
dash.cpp Fix -resetguisettings (#3624) 2020-07-27 10:33:00 +03:00
dash.qrc qt: Remove unused assets (#3721) 2020-09-21 14:22:26 +03:00
dashstrings.cpp Translations 2020-01 (#3192) 2020-01-17 16:00:53 +01:00
editaddressdialog.cpp Merge #13791: gui: Reject dialogs if key escape is pressed 2020-07-28 21:35:31 -05:00
editaddressdialog.h Merge #12721: Qt: remove "new" button during receive-mode in addressbook 2020-06-13 14:50:11 -05:00
guiconstants.h qt: Make sure the statusbar reflects internal states correct (#3698) 2020-09-13 01:48:10 +03:00
guiutil.cpp qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
guiutil.h qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
intro.cpp qt: General qt/c++ related fixes and updates (#3562) 2020-07-20 18:01:11 +03:00
intro.h
macdockiconhandler.h Backport bitcoin#14123 and bitcoin#16720 (#3463) 2020-04-30 13:28:44 +03:00
macdockiconhandler.mm Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
macnotificationhandler.h Merge #11268: [macOS] remove Growl support, remove unused code 2020-01-10 10:33:55 -06:00
macnotificationhandler.mm scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
macos_appnap.h Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
macos_appnap.mm Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
masternodelist.cpp qt: Tweak few strings (#3706) 2020-09-16 12:13:42 +03:00
masternodelist.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
modaloverlay.cpp qt: Finetune ModalOverlay (#3699) 2020-09-13 01:48:23 +03:00
modaloverlay.h Merge #9964: Add const to methods that do not modify the object for which it is called 2020-01-02 16:16:55 -06:00
networkstyle.cpp qt: Splashscreen redesign (#3613) 2020-07-28 23:49:17 +03:00
networkstyle.h qt: Splashscreen redesign (#3613) 2020-07-28 23:49:17 +03:00
notificator.cpp Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included 2020-04-01 12:43:18 -05:00
notificator.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
openuridialog.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
openuridialog.h
optionsdialog.cpp qt: Hide remaining PrivateSend UI if PrivateSend is not enabled (#3716) 2020-09-18 13:15:55 +03:00
optionsdialog.h qt: Hide remaining PrivateSend UI if PrivateSend is not enabled (#3716) 2020-09-18 13:15:55 +03:00
optionsmodel.cpp scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
optionsmodel.h Fix -resetguisettings (#3624) 2020-07-27 10:33:00 +03:00
overviewpage.cpp qt: Finetune OverviewPage (#3715) 2020-09-25 19:04:53 +03:00
overviewpage.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
paymentrequest.proto
paymentrequestplus.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
paymentrequestplus.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
paymentserver.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
paymentserver.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
peertablemodel.cpp Merge pull request #3477 from 10xcryptodev/pr_remove_qt_todo 2020-06-13 21:13:58 +03:00
peertablemodel.h Bugfix: Include <memory> for std::unique_ptr 2020-04-08 11:46:27 -05:00
qrdialog.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
qrdialog.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvalidatedlineedit.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvalidatedlineedit.h scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
qvaluecombobox.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvaluecombobox.h
README.md Merge #13141: [doc] qt: fixes broken link on readme 2020-07-21 11:54:50 -05:00
receivecoinsdialog.cpp qt: Add missing placeholders (#3575) 2020-07-27 10:32:21 +03:00
receivecoinsdialog.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
receiverequestdialog.cpp Merge #12610: Multiwallet for the GUI 2020-07-20 10:09:19 -05:00
receiverequestdialog.h Merge #12610: Multiwallet for the GUI 2020-07-20 10:09:19 -05:00
recentrequeststablemodel.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
recentrequeststablemodel.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
rpcconsole.cpp qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
rpcconsole.h qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
sendcoinsdialog.cpp bitcoin#9680: Unify CWalletTx construction (#3680) 2020-09-21 13:43:33 +03:00
sendcoinsdialog.h qt: Give PrivateSend separate instances of SendCoinsDialog + CCoinControl (#3625) 2020-08-04 14:34:51 +03:00
sendcoinsentry.cpp qt: Update assets and colorize them theme related (#3574) 2020-09-10 19:28:05 +03:00
sendcoinsentry.h qt: Update assets and colorize them theme related (#3574) 2020-09-10 19:28:05 +03:00
signverifymessagedialog.cpp qt: Update assets and colorize them theme related (#3574) 2020-09-10 19:28:05 +03:00
signverifymessagedialog.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
splashscreen.cpp qt: Splashscreen redesign (#3613) 2020-07-28 23:49:17 +03:00
splashscreen.h Some Dashification (#3513) 2020-06-11 11:39:04 +03:00
trafficgraphdata.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
trafficgraphdata.h qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
trafficgraphwidget.cpp qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
trafficgraphwidget.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
transactiondesc.cpp qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactiondesc.h
transactiondescdialog.cpp qt: Make sure font size in TransactionDescDialog is adjusted properly (#3707) 2020-09-16 12:14:09 +03:00
transactiondescdialog.h
transactionfilterproxy.cpp qt: Finetune OverviewPage (#3715) 2020-09-25 19:04:53 +03:00
transactionfilterproxy.h qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactionrecord.cpp Merge #13622: Remove mapRequest tracking that just effects Qt display. (#3694) 2020-09-12 17:33:54 +03:00
transactionrecord.h Merge #13622: Remove mapRequest tracking that just effects Qt display. (#3694) 2020-09-12 17:33:54 +03:00
transactiontablemodel.cpp qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactiontablemodel.h qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactionview.cpp qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactionview.h qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
utilitydialog.cpp docs: Properly alphabetize output of CLI --help option (backport 12331) (#3681) 2020-09-24 13:58:29 +03:00
utilitydialog.h Merge #10969: Declare single-argument (non-converting) constructors "explicit" 2020-01-10 10:33:57 -06:00
walletframe.cpp qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
walletframe.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
walletmodel.cpp bitcoin#9680: Unify CWalletTx construction (#3680) 2020-09-21 13:43:33 +03:00
walletmodel.h bitcoin#9680: Unify CWalletTx construction (#3680) 2020-09-21 13:43:33 +03:00
walletmodeltransaction.cpp bitcoin#9680: Unify CWalletTx construction (#3680) 2020-09-21 13:43:33 +03:00
walletmodeltransaction.h bitcoin#9680: Unify CWalletTx construction (#3680) 2020-09-21 13:43:33 +03:00
walletview.cpp qt: Give PrivateSend separate instances of SendCoinsDialog + CCoinControl (#3625) 2020-08-04 14:34:51 +03:00
walletview.h qt: Give PrivateSend separate instances of SendCoinsDialog + CCoinControl (#3625) 2020-08-04 14:34:51 +03:00
winshutdownmonitor.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
winshutdownmonitor.h Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00

This directory contains the DashQT graphical user interface (GUI). It uses the cross-platform framework Qt.

The current precise version for Qt 5 is specified in qt.mk. Qt 4 is not supported.

Compile and run

See build instructions (OSX, Windows, Unix, etc).

To run:

./src/qt/dash-qt

Files and directories

forms

Contains Designer UI files. They are created with Qt Creator, but can be edited using any text editor.

locale

Contains translations. They are periodically updated. The process is described here.

res

Resources such as the icon.

test

Tests.

bitcoingui.(h/cpp)

Represents the main window of the Dash UI.

*model.(h/cpp)

The model. When it has a corresponding controller, it generally inherits from QAbstractTableModel. Models that are used by controllers as helpers inherit from other Qt classes like QValidator.

ClientModel is used by the main application bitcoingui and several models like peertablemodel.

*page.(h/cpp)

A controller. :NAMEpage.cpp generally includes :NAMEmodel.h and forms/:NAME.page.ui with a similar :NAME.

*dialog.(h/cpp)

Various dialogs, e.g. to open a URL. Inherit from QDialog.

paymentserver.(h/cpp)

Used to process BIP21 and BIP70 (see https://github.com/bitcoin/bitcoin/pull/11622) payment URI / requests. Also handles URI based application switching (e.g. when following a dash:... link from a browser).

walletview.(h/cpp)

Represents the view to a single wallet.

Other .h/cpp files

  • UI elements like BitcoinAmountField, which inherit from QWidget.
  • bitcoinstrings.cpp: automatically generated
  • bitcoinunits.(h/cpp): BTC / mBTC / etc handling
  • callback.h
  • guiconstants.h: UI colors, app name, etc
  • guiutil.h: several helper functions
  • macdockiconhandler.(h/cpp)
  • macdockiconhandler.(h/cpp): display notifications in OSX

Contribute

See CONTRIBUTING.md for general guidelines. Specifically for Qt:

Using Qt Creator as IDE

You can use Qt Creator as an IDE. This is especially useful if you want to change the UI layout.

Download and install the community edition of Qt Creator. Uncheck everything except Qt Creator during the installation process.

Instructions for OSX:

  1. Make sure you installed everything through Homebrew mentioned in the OSX build instructions
  2. Use ./configure with the --enable-debug flag
  3. In Qt Creator do "New Project" -> Import Project -> Import Existing Project
  4. Enter "dash-qt" as project name, enter src/qt as location
  5. Leave the file selection as it is
  6. Confirm the "summary page"
  7. In the "Projects" tab select "Manage Kits..."
  8. Select the default "Desktop" kit and select "Clang (x86 64bit in /usr/bin)" as compiler
  9. Select LLDB as debugger (you might need to set the path to your installation)
  10. Start debugging with Qt Creator (you might need to the executable to "dash-qt" under "Run", which is where you can also add command line arguments)