![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <bitcoingui.h>
Public Member Functions | |
| UnitDisplayStatusBarControl (const PlatformStyle *platformStyle) | |
| void | setOptionsModel (OptionsModel *optionsModel) |
| Lets the control know about the Options Model (and its signals) | |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| So that it responds to left-button clicks. | |
| void | changeEvent (QEvent *e) override |
Private Slots | |
| void | updateDisplayUnit (BitcoinUnit newUnits) |
| When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar. | |
| void | onMenuSelection (QAction *action) |
| Tells underlying optionsModel to update its current display unit. | |
Private Member Functions | |
| void | onDisplayUnitsClicked (const QPoint &point) |
| Shows context menu with Display Unit options by the mouse coordinates. | |
| void | createContextMenu () |
| Creates context menu, its actions, and wires up all the relevant signals for mouse events. | |
Private Attributes | |
| OptionsModel * | optionsModel {nullptr} |
| QMenu * | menu {nullptr} |
| const PlatformStyle * | m_platform_style |
Definition at line 325 of file bitcoingui.h.
|
explicit |
|
private |
Creates context menu, its actions, and wires up all the relevant signals for mouse events.
Definition at line 1679 of file bitcoingui.cpp.
|
overrideprotected |
So that it responds to left-button clicks.
So that it responds to button clicks.
Definition at line 1661 of file bitcoingui.cpp.
Shows context menu with Display Unit options by the mouse coordinates.
Definition at line 1710 of file bitcoingui.cpp.
Tells underlying optionsModel to update its current display unit.
Definition at line 1717 of file bitcoingui.cpp.
| void UnitDisplayStatusBarControl::setOptionsModel | ( | OptionsModel * | optionsModel | ) |
Lets the control know about the Options Model (and its signals)
Definition at line 1689 of file bitcoingui.cpp.
|
privateslot |
When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar.
Definition at line 1704 of file bitcoingui.cpp.
|
private |
Definition at line 342 of file bitcoingui.h.
Definition at line 341 of file bitcoingui.h.
|
private |
Definition at line 340 of file bitcoingui.h.