diff options
author | bd <bdunahu@operationnull.com> | 2025-04-21 15:56:38 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-21 15:56:38 -0400 |
commit | 40dfec9ae067d3f8e3868d259bfc4251aeca8724 (patch) | |
tree | 28316cbc00a8e89ead3225d80b9199381a996d86 /gui/digitlabel.h | |
parent | 89763e6f696a96ad310f031c66960bcaaba3ffdb (diff) |
Add functionality to toggle button.
Diffstat (limited to 'gui/digitlabel.h')
-rw-r--r-- | gui/digitlabel.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/digitlabel.h b/gui/digitlabel.h index 2916426..68b01cb 100644 --- a/gui/digitlabel.h +++ b/gui/digitlabel.h @@ -29,7 +29,7 @@ class DigitLabel : public QLabel * Constructor. * @return a newly allocated DigitLabel. */ - explicit DigitLabel(QWidget *parent = nullptr); + explicit DigitLabel(QWidget *parent); /** * Sets the empty flag. @@ -44,7 +44,7 @@ class DigitLabel : public QLabel /** * Toggles the base this label displays in, by setting `this->is_hex'. */ - void toggle_mode(); + void on_hex_toggle(bool is_hex); private: /** @@ -55,13 +55,13 @@ class DigitLabel : public QLabel /** * The decimal value associated with this label. */ - int v = 0; + int v; /** - * To display in hexidecimal or not. + * If this digit should display in hexidecinmal. */ - bool is_hex = true; + int is_hex; /** - * To display in hexidecimal or not. + * If this digit should not display. */ bool is_cleared = true; }; |