summaryrefslogtreecommitdiff
path: root/gui/digitlabel.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-26 15:11:19 -0400
committerbd <bdunahu@operationnull.com>2025-04-26 15:11:19 -0400
commit6382d595cf947eb54249ff5fea20d8eb073ef3c1 (patch)
treeece23d61bf25869fe2058a1b2323dac417f25617 /gui/digitlabel.cc
parent118427baa510419041c3f8e9c7a4616b93f01672 (diff)
Move digit formatter to util.h
Diffstat (limited to 'gui/digitlabel.cc')
-rw-r--r--gui/digitlabel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/digitlabel.cc b/gui/digitlabel.cc
index a24a1e1..f77c1fa 100644
--- a/gui/digitlabel.cc
+++ b/gui/digitlabel.cc
@@ -16,7 +16,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "digitlabel.h"
-#include "digitlabelhelper.h"
+#include "util.h"
#include "gui.h"
DigitLabel::DigitLabel(QWidget *parent) : QLabel(parent) { setText(QString()); }
@@ -43,6 +43,6 @@ void DigitLabel::on_hex_toggle(bool is_hex)
void DigitLabel::update_display()
{
QString t;
- t = DigitLabelHelper::format_value(this->v, this->is_hex, this->is_cleared);
+ t = format_toggled_value(this->v, this->is_hex, this->is_cleared);
setText(t);
}