GUI: resolved issue #701 (height of RegistersView not correct)
This commit is contained in:
parent
ee3e030886
commit
c4234d364a
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ public:
|
|||
|
||||
static void* operator new(size_t size);
|
||||
static void operator delete(void* p);
|
||||
int getEstimateHeight();
|
||||
|
||||
public slots:
|
||||
void refreshShortcutsSlot();
|
||||
|
|
|
|||
Loading…
Reference in New Issue