dash/src/qt
PastaPastaPasta 951398e8b3
Merge pull request #4792 from vijaydasmp/bp2007
Merge #16949,#15084,#17138,#16689,#15098, #15932
2022-06-18 22:12:07 -07:00
..
android
forms refactor(qt): Reuse QRImageWidget in QRDialog (#4853) 2022-06-11 12:18:01 +03:00
locale Translations 202202 (#4691) 2022-04-26 11:21:57 +03:00
res Merge #20223: build: Drop the leading 0 from the version number 2022-04-28 13:47:53 +03:00
test chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
addressbookpage.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
addressbookpage.h
addresstablemodel.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
addresstablemodel.h
appearancewidget.cpp fix: resolve numerous compilation warnings under -Wall (#4599) 2021-12-01 22:59:34 +03:00
appearancewidget.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
askpassphrasedialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
askpassphrasedialog.h merge bitcoin#15450: Create wallet menu option 2022-04-06 13:49:58 +05:30
bantablemodel.cpp Merge #17297: refactor: Remove addrdb.h dependency from node.h 2022-03-07 09:36:17 -06:00
bantablemodel.h
bitcoinaddressvalidator.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
bitcoinaddressvalidator.h
bitcoinamountfield.cpp Merge #14608: qt: Remove the "Pay only required fee..." checkbox 2022-05-30 01:11:05 -04:00
bitcoinamountfield.h Merge #14608: qt: Remove the "Pay only required fee..." checkbox 2022-05-30 01:11:05 -04:00
bitcoingui.cpp Merge #15084: gui: don't disable the sync overlay when wallet is disabled 2022-06-18 17:19:47 +05:30
bitcoingui.h Merge #13248: [gui] Make proxy icon from statusbar clickable 2022-05-30 01:10:43 -04:00
bitcoinunits.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
bitcoinunits.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
clientmodel.cpp Merge #17750: util: change GetWarnings parameter to bool 2022-06-14 16:48:15 +07:00
clientmodel.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
coincontroldialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
coincontroldialog.h
coincontroltreewidget.cpp
coincontroltreewidget.h
createwalletdialog.cpp Merge #16822: gui: Create wallet menu option follow-ups 2022-04-11 09:40:27 -07:00
createwalletdialog.h Merge #16822: gui: Create wallet menu option follow-ups 2022-04-11 09:40:27 -07:00
csvmodelwriter.cpp
csvmodelwriter.h
dash_locale.qrc
dash.cpp Merge #17826: qt: Log Qt related info 2022-06-17 04:06:49 +07:00
dash.h merge bitcoin#19011: Reduce cs_main lock accumulation during GUI startup 2022-05-13 18:06:06 +05:30
dash.qrc
dashstrings.cpp Translations 202202 (#4691) 2022-04-26 11:21:57 +03:00
editaddressdialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
editaddressdialog.h
governancelist.cpp qt: adds more setPlaceholderText by form .ui instead code aproach 2022-05-30 19:09:39 +07:00
governancelist.h refactor: resolve cppcheck warnings (#4799) 2022-04-25 12:34:05 +03:00
guiconstants.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
guiutil.cpp Merge #17826: qt: Log Qt related info 2022-06-17 04:06:49 +07:00
guiutil.h Merge #17826: qt: Log Qt related info 2022-06-17 04:06:49 +07:00
intro.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
intro.h Merge #15874: Resolve the qt/guiutil <-> qt/optionsmodel CD 2021-11-13 11:04:56 -05:00
macdockiconhandler.h
macdockiconhandler.mm
macnotificationhandler.h
macnotificationhandler.mm
macos_appnap.h
macos_appnap.mm
main.cpp merge bitcoin#16362: Add bilingual_str type 2022-04-06 00:08:01 +05:30
masternodelist.cpp qt: adds more setPlaceholderText by form .ui instead code aproach 2022-05-30 19:09:39 +07:00
masternodelist.h fix: resolve numerous compilation warnings under -Wall (#4599) 2021-12-01 22:59:34 +03:00
modaloverlay.cpp Merge #15084: gui: don't disable the sync overlay when wallet is disabled 2022-06-18 17:19:47 +05:30
modaloverlay.h Merge #15084: gui: don't disable the sync overlay when wallet is disabled 2022-06-18 17:19:47 +05:30
networkstyle.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
networkstyle.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
notificator.cpp
notificator.h
openuridialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
openuridialog.h merge #17165: Remove BIP70 support (#4023) 2022-04-25 12:01:47 +03:00
optionsdialog.cpp feat(qt): Add an option to keep custom change address (#4860) 2022-06-03 22:00:58 +03:00
optionsdialog.h Merge #13248: [gui] Make proxy icon from statusbar clickable 2022-05-30 01:10:43 -04:00
optionsmodel.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
optionsmodel.h feat(qt): Add an option to keep custom change address (#4860) 2022-06-03 22:00:58 +03:00
overviewpage.cpp Merge #13966: gui: When private key is disabled, only show watch-only balance 2022-05-23 02:15:51 -04:00
overviewpage.h
paymentserver.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
paymentserver.h merge #17165: Remove BIP70 support (#4023) 2022-04-25 12:01:47 +03:00
peertablemodel.cpp Merge #16659: refactoring: Remove unused includes 2021-12-12 16:44:54 -05:00
peertablemodel.h
qrdialog.cpp refactor(qt): Reuse QRImageWidget in QRDialog (#4853) 2022-06-11 12:18:01 +03:00
qrdialog.h refactor(qt): Reuse QRImageWidget in QRDialog (#4853) 2022-06-11 12:18:01 +03:00
qrimagewidget.cpp merge bitcoin#15928: Move QRImageWidget to its own file-pair 2021-12-12 20:32:49 +05:30
qrimagewidget.h merge bitcoin#15928: Move QRImageWidget to its own file-pair 2021-12-12 20:32:49 +05:30
qvalidatedlineedit.cpp 16659 continuation 2021-12-17 12:02:16 -05:00
qvalidatedlineedit.h
qvaluecombobox.cpp
qvaluecombobox.h
README.md merge #17165: Remove BIP70 support (#4023) 2022-04-25 12:01:47 +03:00
receivecoinsdialog.cpp qt: adds more setPlaceholderText by form .ui instead code aproach 2022-05-30 19:09:39 +07:00
receivecoinsdialog.h Merge bitcoin-core/gui#213: qt: Add Copy Address Action to Payment Requests 2021-09-18 21:41:47 -04:00
receiverequestdialog.cpp merge bitcoin#15928: Move QRImageWidget to its own file-pair 2021-12-12 20:32:49 +05:30
receiverequestdialog.h merge bitcoin#15928: Move QRImageWidget to its own file-pair 2021-12-12 20:32:49 +05:30
recentrequeststablemodel.cpp
recentrequeststablemodel.h merge bitcoin#16707: Remove obsolete QModelIndex::child() 2021-11-11 18:34:28 +05:30
rpcconsole.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
rpcconsole.h chore(qt): 19671 follow-up: drop zapwallettxes from gui (#4841) 2022-05-18 23:28:49 +03:00
sendcoinsdialog.cpp Merge #15886: qt, wallet: Revamp SendConfirmationDialog 2022-06-17 04:06:49 +07:00
sendcoinsdialog.h Merge #15886: qt, wallet: Revamp SendConfirmationDialog 2022-06-17 04:06:49 +07:00
sendcoinsentry.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
sendcoinsentry.h
signverifymessagedialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
signverifymessagedialog.h
splashscreen.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
splashscreen.h Merge #14854: qt: Cleanup SplashScreen class 2021-09-10 20:44:52 -04:00
trafficgraphdata.cpp
trafficgraphdata.h
trafficgraphwidget.cpp merge bitcoin#16153: Add antialiasing to traffic graph widget 2021-11-11 18:36:09 +05:30
trafficgraphwidget.h
transactiondesc.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
transactiondesc.h
transactiondescdialog.cpp
transactiondescdialog.h
transactionfilterproxy.cpp
transactionfilterproxy.h
transactionrecord.cpp Merge #15098: qt: Show addresses for "SendToSelf" transactions 2022-06-18 17:19:46 +05:30
transactionrecord.h Merge #14556: qt: fix confirmed transaction labeled "open" (#13299) 2021-10-13 23:44:02 -05:00
transactiontablemodel.cpp Merge #15098: qt: Show addresses for "SendToSelf" transactions 2022-06-18 17:19:46 +05:30
transactiontablemodel.h
transactionview.cpp feat(qt): Let users resend stuck txes one by one via context menu (#4861) 2022-06-08 00:07:27 +03:00
transactionview.h feat(qt): Let users resend stuck txes one by one via context menu (#4861) 2022-06-08 00:07:27 +03:00
utilitydialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
utilitydialog.h
walletcontroller.cpp merge bitcoin#18338: Fix wallet unload race condition 2022-06-03 18:25:34 +05:30
walletcontroller.h merge bitcoin#16923: Handle duplicate fileid exception 2022-05-13 18:04:31 +05:30
walletframe.cpp merge bitcoin#16963: Fix unique_ptr usage in boost::signals2 2022-05-13 18:06:06 +05:30
walletframe.h merge bitcoin#16963: Fix unique_ptr usage in boost::signals2 2022-05-13 18:06:06 +05:30
walletmodel.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
walletmodel.h Merge #17285: doc: Bip70 removal follow-up 2022-04-27 21:08:36 +03:00
walletmodeltransaction.cpp Merge #13558: Drop unused GetType() from CSizeComputer 2022-05-30 01:11:03 -04:00
walletmodeltransaction.h Merge pull request #4619 from PastaPastaPasta/remove-includes 2021-12-17 20:21:12 +03:00
walletview.cpp fix(qt): fix crash when first enabling governance tab due to null-ptr deref (#4795) 2022-04-22 01:01:29 +03:00
walletview.h Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
winshutdownmonitor.cpp Merge #16263: qt: Use qInfo() if no error occurs 2021-11-18 15:30:54 -05:00
winshutdownmonitor.h

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 (macOS, 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 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/mm): macOS dock icon handler
  • macnotificationhandler.(h/mm): display notifications in macOS

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 macOS:

  1. Make sure you installed everything through Homebrew mentioned in the macOS 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)