From 476af4ac713b88597e628ff8415ae2890757d574 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 2 Apr 2019 17:02:20 +0200 Subject: Implement stall cycles counter and view of CPU cycles counter. Signed-off-by: Pavel Pisa --- qtmips_gui/coreview/value.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'qtmips_gui/coreview/value.h') diff --git a/qtmips_gui/coreview/value.h b/qtmips_gui/coreview/value.h index 755a9b2..a8c1e76 100644 --- a/qtmips_gui/coreview/value.h +++ b/qtmips_gui/coreview/value.h @@ -38,14 +38,16 @@ #include #include +#include namespace coreview { class Value : public QGraphicsObject { Q_OBJECT public: - Value(bool vertical = false, unsigned width = 8, - unsigned init_val = 0, unsigned base = 16); // width is for number of character to be shown from number + Value(bool vertical = false, unsigned width = 8, // width is for number of character to be shown from number + unsigned init_val = 0, unsigned base = 16, + QChar fillchr = '0', bool frame = true); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); @@ -60,6 +62,8 @@ private: unsigned wid; unsigned base; bool vertical; + QChar fillchr; + bool frame; }; } -- cgit v1.2.3