Debugger: Set sensible default size for memory view

By default the view is too small when it opens, and it must be resized
every time in order to see its content...

In addition, do not move the view next to the cursor. It is typically on
the right side-bar, causing the window to be clipped on the main window
edge.

Change-Id: Ib6c6f4a478fe5d571fc50d21d239cee591d0d3bf
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-06-21 23:17:21 +03:00
committed by Orgad Shaneh
parent 4df0421b12
commit e51322c314
2 changed files with 1 additions and 1 deletions

View File

@@ -157,7 +157,6 @@ bool MemoryAgent::doCreateBinEditor(const MemoryViewSetupData &data)
topLevel->setWindowTitle(title);
}
m_views << topLevel;
topLevel->move(data.pos);
topLevel->show();
return true;
}

View File

@@ -56,6 +56,7 @@ MemoryView::MemoryView(QWidget *binEditor, QWidget *parent) :
layout->addWidget(binEditor);
layout->setContentsMargins(0, 0, 0, 0);
setMinimumWidth(400);
resize(800, 200);
}
void MemoryView::setBinEditorRange(QWidget *w, quint64 address, qint64 range, int blockSize)