aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/multitext.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-19 12:25:53 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-19 12:25:53 +0100
commit5e10cbc7f2e62bf417ca46ec5e1e75adeb72aaeb (patch)
tree2c811a8b27cca0344d9c5f9320d1ca6b493c416c /qtmips_gui/coreview/multitext.cpp
parent8f3476d465cf3167cd710465019878231732a736 (diff)
downloadqtmips-5e10cbc7f2e62bf417ca46ec5e1e75adeb72aaeb.tar.gz
qtmips-5e10cbc7f2e62bf417ca46ec5e1e75adeb72aaeb.tar.bz2
qtmips-5e10cbc7f2e62bf417ca46ec5e1e75adeb72aaeb.zip
Update MultiText to use setPointSize too.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/coreview/multitext.cpp')
-rw-r--r--qtmips_gui/coreview/multitext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/multitext.cpp b/qtmips_gui/coreview/multitext.cpp
index 1658b55..f7ed58a 100644
--- a/qtmips_gui/coreview/multitext.cpp
+++ b/qtmips_gui/coreview/multitext.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "multitext.h"
+#include "fontsize.h"
#include <QPainter>
#include <QFont>
@@ -50,7 +51,7 @@ using namespace coreview;
MultiText::MultiText(QMap<std::uint32_t, QString> value_map, bool nonzero_red) :
QGraphicsObject(nullptr), text(this) {
QFont f;
- f.setPointSize(6);
+ f.setPointSize(FontSize::SIZE6);
text.setFont(f);
this->value_map = value_map;