aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/adder.cpp
diff options
context:
space:
mode:
authorFanda Vacek <vacek@elektroline.cz>2019-02-18 20:07:20 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-19 11:26:28 +0100
commitb6355b1d65edfa51c9f80ac4c8c088bf9f19b788 (patch)
treebe83041544feb5811498cb8424413a8a48dd5697 /qtmips_gui/coreview/adder.cpp
parent49c367d1d46cbe65de367ccb763f072399c6c05b (diff)
downloadqtmips-b6355b1d65edfa51c9f80ac4c8c088bf9f19b788.tar.gz
qtmips-b6355b1d65edfa51c9f80ac4c8c088bf9f19b788.tar.bz2
qtmips-b6355b1d65edfa51c9f80ac4c8c088bf9f19b788.zip
variable font size
Diffstat (limited to 'qtmips_gui/coreview/adder.cpp')
-rw-r--r--qtmips_gui/coreview/adder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/adder.cpp b/qtmips_gui/coreview/adder.cpp
index 0da3814..d24b603 100644
--- a/qtmips_gui/coreview/adder.cpp
+++ b/qtmips_gui/coreview/adder.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "adder.h"
+#include "fontsize.h"
#include <cmath>
using namespace coreview;
@@ -47,7 +48,7 @@ using namespace coreview;
Adder::Adder() : QGraphicsItem(nullptr), plus("+", this) {
QFont font;
- font.setPointSize(7);
+ font.setPointSize(FontSize::SIZE7);
plus.setFont(font);
QRectF plus_box = plus.boundingRect();
plus.setPos(DENT + (WIDTH-DENT)/2 - plus_box.width()/2, HEIGHT/2 - plus_box.height()/2);