Degobindarification

This commit is contained in:
Chris Esposito 2020-07-05 15:12:19 +10:00
parent 90b966ede7
commit 3e651316d2
1 changed files with 6 additions and 5 deletions

View File

@ -25,6 +25,8 @@ private:
GobindarDialog::GobindarDialog()
: QWidget()
{
setWindowFlags(Qt::Window);
QPalette palette;
palette.setColor(QPalette::Background, Qt::white);
setPalette(palette);
@ -45,7 +47,7 @@ GobindarDialog::GobindarDialog()
QPixmap pixmap(":/bitmap/diagram.png");
m_image.setPixmap(pixmap);
m_image.setAlignment(Qt::AlignHCenter | Qt::AlignTop);
m_image.setAlignment(Qt::AlignTop);
m_layout.addWidget(&m_largeText);
m_layout.addWidget(&m_smallText);
@ -409,10 +411,9 @@ void genericUsbDriver::deGobindarise()
{
GobindarDialog gobindarDialog;
gobindarDialog.show();
while(1)
{
QApplication::processEvents();
}
flashFirmware();
gobindarDialog.close();
}
void genericUsbDriver::saveState(int *_out_deviceMode, double *_out_scopeGain, double *_out_currentPsuVoltage, int *_out_digitalPinState){