diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-10 20:41:14 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-10 20:41:14 +0100 |
commit | 53605cd996338dafc507d4126a2a49b865b04db1 (patch) | |
tree | 82b03aed3c3c022c34416343e0cbef4287d24c34 /qtmips_gui/memorytableview.h | |
parent | 2fdc9e0e64c234832e13735a9e6972a699ed9bed (diff) | |
download | qtmips-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.h | 4 |
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(); }; |