From e09239f9c4917271efd8dba7e57ac529eacaa98a Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 14 Feb 2019 15:06:14 +0100 Subject: Position hit and miss counters to left to fit in the diagram box a little longer. Signed-off-by: Pavel Pisa --- qtmips_gui/coreview/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_gui') diff --git a/qtmips_gui/coreview/memory.cpp b/qtmips_gui/coreview/memory.cpp index 7993101..7d30da8 100644 --- a/qtmips_gui/coreview/memory.cpp +++ b/qtmips_gui/coreview/memory.cpp @@ -61,8 +61,8 @@ Memory::Memory(bool cache_used, const machine::Cache *cch) : QGraphicsObject(nul const QRectF &cache_t_b = cache_t.boundingRect(); cache_t.setPos(WIDTH/2 - cache_t_b.width()/2, 1); const QRectF &cache_hit_b = cache_hit_t.boundingRect(); - cache_hit_t.setPos(WIDTH/2 - cache_hit_b.width()/2, cache_t_b.height() + 2); - cache_miss_t.setPos(WIDTH/2 - cache_miss_t.boundingRect().width()/2, cache_t_b.height() + cache_hit_b.height() + 3); + cache_hit_t.setPos(WIDTH/20, cache_t_b.height() + 2); + cache_miss_t.setPos(WIDTH/20, cache_t_b.height() + cache_hit_b.height() + 3); } cache_t.setVisible(cache); -- cgit v1.2.3