Added logic to Qt hex editor to set minimum line width to full line length at construction. Part of #322.
This commit is contained in:
parent
ea97709f85
commit
90d31dadca
|
@ -1085,11 +1085,11 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
|
|||
vbar->setMinimum(0);
|
||||
vbar->setMaximum( 0x10000 / 16 );
|
||||
|
||||
editor->setScrollBars( hbar, vbar );
|
||||
editor->setScrollBars( hbar, vbar );
|
||||
|
||||
//connect( vbar, SIGNAL(sliderMoved(int)), this, SLOT(vbarMoved(int)) );
|
||||
connect( hbar, SIGNAL(valueChanged(int)), this, SLOT(hbarChanged(int)) );
|
||||
connect( vbar, SIGNAL(valueChanged(int)), this, SLOT(vbarChanged(int)) );
|
||||
//connect( vbar, SIGNAL(sliderMoved(int)), this, SLOT(vbarMoved(int)) );
|
||||
connect( hbar, SIGNAL(valueChanged(int)), this, SLOT(hbarChanged(int)) );
|
||||
connect( vbar, SIGNAL(valueChanged(int)), this, SLOT(vbarChanged(int)) );
|
||||
|
||||
findDialog = NULL;
|
||||
|
||||
|
@ -1097,9 +1097,10 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
|
|||
|
||||
periodicTimer = new QTimer( this );
|
||||
|
||||
connect( periodicTimer, &QTimer::timeout, this, &HexEditorDialog_t::updatePeriodic );
|
||||
connect( periodicTimer, &QTimer::timeout, this, &HexEditorDialog_t::updatePeriodic );
|
||||
|
||||
periodicTimer->start( 100 ); // 10hz
|
||||
//periodicTimer->start( 16 ); // 10hz
|
||||
|
||||
// Lock the mutex before adding a new window to the list,
|
||||
// we want to be sure that the emulator is not iterating the list
|
||||
|
@ -1509,6 +1510,8 @@ QHexEdit::QHexEdit(QWidget *parent)
|
|||
|
||||
calcFontData();
|
||||
|
||||
setMinimumWidth( pxLineWidth );
|
||||
|
||||
memAccessFunc = getRAM;
|
||||
viewMode = MODE_NES_RAM;
|
||||
lineOffset = 0;
|
||||
|
|
Loading…
Reference in New Issue