aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/value.cpp
diff options
context:
space:
mode:
authorMichal Malý <madcatxster@devoid-pointer.net>2019-10-08 17:23:00 +0200
committerMichal Malý <madcatxster@devoid-pointer.net>2019-10-08 17:58:25 +0200
commit2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0 (patch)
treec1665ae87bc5a1208aa353ad9df2a44185b8e84c /qtmips_gui/coreview/value.cpp
parente2e9df52ea548ca5fe2e2d7a06841eac380c27b1 (diff)
downloadqtmips-2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0.tar.gz
qtmips-2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0.tar.bz2
qtmips-2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0.zip
Force dark grey outline color for individual blocks in CoreView
Diffstat (limited to 'qtmips_gui/coreview/value.cpp')
-rw-r--r--qtmips_gui/coreview/value.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/value.cpp b/qtmips_gui/coreview/value.cpp
index 7dd1e6a..c7f87f7 100644
--- a/qtmips_gui/coreview/value.cpp
+++ b/qtmips_gui/coreview/value.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "value.h"
+#include "coreview_colors.h"
#include "../fontsize.h"
using namespace coreview;
@@ -73,6 +74,8 @@ void Value::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __at
painter->setBackgroundMode(Qt::OpaqueMode);
if (!frame)
painter->setPen(QColor(Qt::white));
+ else
+ painter->setPen(QColor(BLOCK_OUTLINE_COLOR));
painter->drawRect(rect);
painter->setPen(QColor(Qt::black));
painter->setBackgroundMode(Qt::TransparentMode);