diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-14 15:06:14 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-14 15:06:14 +0100 |
commit | e09239f9c4917271efd8dba7e57ac529eacaa98a (patch) | |
tree | 40d7f8e4c4ea990bc41d99f566b4cfe9a4c9a18d | |
parent | 968b25db265ce339c34b2d50327c9cbd43600020 (diff) | |
download | qtmips-e09239f9c4917271efd8dba7e57ac529eacaa98a.tar.gz qtmips-e09239f9c4917271efd8dba7e57ac529eacaa98a.tar.bz2 qtmips-e09239f9c4917271efd8dba7e57ac529eacaa98a.zip |
Position hit and miss counters to left to fit in the diagram box a little longer.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r-- | qtmips_gui/coreview/memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |