aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-05 15:59:24 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-05 15:59:24 +0200
commit710fc4ffad6ca252ebf29825402d9d70d30bd41f (patch)
treebaed18086f0dda07cbbb5f6e1b28d6587c314f1c
parent537e41c18ae033a379743ef5001843882b05355d (diff)
downloadqtmips-710fc4ffad6ca252ebf29825402d9d70d30bd41f.tar.gz
qtmips-710fc4ffad6ca252ebf29825402d9d70d30bd41f.tar.bz2
qtmips-710fc4ffad6ca252ebf29825402d9d70d30bd41f.zip
Disable text elide for memory and program views.
Set of Monospace font does not ensure that different hexadecimal numbers do not vary in in the text size on MAC OS. QFontDatabase::systemFont(QFontDatabase::FixedFont) works on MAC OS but selected font looks ugly. Disable elide ensures that most of the text is seen. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips_gui/memorytableview.cpp1
-rw-r--r--qtmips_gui/programtableview.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_gui/memorytableview.cpp b/qtmips_gui/memorytableview.cpp
index 0ff6bfb..d97e99a 100644
--- a/qtmips_gui/memorytableview.cpp
+++ b/qtmips_gui/memorytableview.cpp
@@ -52,6 +52,7 @@ MemoryTableView::MemoryTableView(QWidget *parent, QSettings *settings) : Super(p
this->settings = settings;
initial_address = settings->value("DataViewAddr0", 0).toULongLong();
adjust_scroll_pos_in_progress = false;
+ setTextElideMode(Qt::ElideNone);
}
void MemoryTableView::addr0_save_change(std::uint32_t val) {
diff --git a/qtmips_gui/programtableview.cpp b/qtmips_gui/programtableview.cpp
index bd69464..6618796 100644
--- a/qtmips_gui/programtableview.cpp
+++ b/qtmips_gui/programtableview.cpp
@@ -53,6 +53,7 @@ ProgramTableView::ProgramTableView(QWidget *parent, QSettings *settings) : Super
initial_address = settings->value("ProgramViewAddr0", 0).toULongLong();
adjust_scroll_pos_in_progress = false;
need_addr0_save = false;
+ setTextElideMode(Qt::ElideNone);
}
void ProgramTableView::addr0_save_change(std::uint32_t val) {