From e6c3d5bdc7a4763bd6816d52b0d1b42a7e4b08f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 6 Mar 2018 22:08:53 +0100 Subject: WIP: simplify memory view This removes problematic buffer zone of memory view. Instead we will use no buffer zone and load needed elements as soon as possible. --- qtmips_gui/memoryview.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qtmips_gui/memoryview.h') diff --git a/qtmips_gui/memoryview.h b/qtmips_gui/memoryview.h index ec909f0..0428a84 100644 --- a/qtmips_gui/memoryview.h +++ b/qtmips_gui/memoryview.h @@ -35,6 +35,7 @@ protected: void reload_content(); // reload displayed data void update_content(int count, int shift); // update content to match given count and shift + void resize_content(int row_count); private slots: void go_edit_finish(); @@ -50,13 +51,9 @@ private: Frame(MemoryView *parent); StaticTable *widg; - void focus(unsigned i); // Focus on given item in widget - unsigned focussed(); // What item is in focus - void check_update(); // Update widget size and content if needed protected: MemoryView *mv; - int content_y; bool viewportEvent(QEvent*); void resizeEvent(QResizeEvent*); -- cgit v1.2.3