1
0
Fork 0

GUI: resolved issue #701 (height of RegistersView not correct)

This commit is contained in:
mrexodia 2016-06-03 15:03:39 +02:00
parent ee3e030886
commit c4234d364a
No known key found for this signature in database
GPG Key ID: D72F9A4FAA0073B4
3 changed files with 7 additions and 1 deletions

View File

@ -39,7 +39,7 @@ CPUWidget::CPUWidget(QWidget* parent) : QWidget(parent), ui(new Ui::CPUWidget)
mGeneralRegs = new RegistersView(0);
mGeneralRegs->setFixedWidth(1000);
mGeneralRegs->setFixedHeight(1400);
mGeneralRegs->setFixedHeight(mGeneralRegs->getEstimateHeight());
mGeneralRegs->ShowFPU(true);
QScrollArea* upperScrollArea = new QScrollArea(this);

View File

@ -8,6 +8,11 @@
#include "EditFloatRegister.h"
#include "SelectFields.h"
int RegistersView::getEstimateHeight()
{
return mRowsNeeded * mRowHeight;
}
void RegistersView::SetChangeButton(QPushButton* push_button)
{
mChangeViewButton = push_button;

View File

@ -96,6 +96,7 @@ public:
static void* operator new(size_t size);
static void operator delete(void* p);
int getEstimateHeight();
public slots:
void refreshShortcutsSlot();