aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorytableview.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-10 20:41:14 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-10 20:41:14 +0100
commit53605cd996338dafc507d4126a2a49b865b04db1 (patch)
tree82b03aed3c3c022c34416343e0cbef4287d24c34 /qtmips_gui/memorytableview.h
parent2fdc9e0e64c234832e13735a9e6972a699ed9bed (diff)
downloadqtmips-53605cd996338dafc507d4126a2a49b865b04db1.tar.gz
qtmips-53605cd996338dafc507d4126a2a49b865b04db1.tar.bz2
qtmips-53605cd996338dafc507d4126a2a49b865b04db1.zip
Memory QTableView working for part of the memory range.
Unfortunately, QModelIndex supports only integers for rows and columns. Even if only size to maxint is used then Qt engine crashes. Workaround for Qt limitations is material for followup patches. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/memorytableview.h')
-rw-r--r--qtmips_gui/memorytableview.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtmips_gui/memorytableview.h b/qtmips_gui/memorytableview.h
index 2017b78..73b1ea9 100644
--- a/qtmips_gui/memorytableview.h
+++ b/qtmips_gui/memorytableview.h
@@ -51,7 +51,11 @@ public:
void resizeEvent(QResizeEvent *event) override;
+public slots:
+ void adap_to_cell_size();
+
private:
+ void adjustColumnCount();
};