diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-19 12:25:53 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-19 12:25:53 +0100 |
commit | 5e10cbc7f2e62bf417ca46ec5e1e75adeb72aaeb (patch) | |
tree | 2c811a8b27cca0344d9c5f9320d1ca6b493c416c /qtmips_gui/coreview | |
parent | 8f3476d465cf3167cd710465019878231732a736 (diff) | |
download | qtmips-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')
-rw-r--r-- | qtmips_gui/coreview/instructionview.cpp | 2 | ||||
-rw-r--r-- | qtmips_gui/coreview/multitext.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qtmips_gui/coreview/instructionview.cpp b/qtmips_gui/coreview/instructionview.cpp index 9794ae5..f169869 100644 --- a/qtmips_gui/coreview/instructionview.cpp +++ b/qtmips_gui/coreview/instructionview.cpp @@ -34,7 +34,7 @@ ******************************************************************************/ #include "instructionview.h" -#include "../fontsize.h" +#include "fontsize.h" #include <QPainter> #include <QFont> 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; |