mirror of https://github.com/EspoTek/Labrador.git
Degobindarification
This commit is contained in:
parent
90b966ede7
commit
3e651316d2
|
@ -25,6 +25,8 @@ private:
|
||||||
GobindarDialog::GobindarDialog()
|
GobindarDialog::GobindarDialog()
|
||||||
: QWidget()
|
: QWidget()
|
||||||
{
|
{
|
||||||
|
setWindowFlags(Qt::Window);
|
||||||
|
|
||||||
QPalette palette;
|
QPalette palette;
|
||||||
palette.setColor(QPalette::Background, Qt::white);
|
palette.setColor(QPalette::Background, Qt::white);
|
||||||
setPalette(palette);
|
setPalette(palette);
|
||||||
|
@ -45,7 +47,7 @@ GobindarDialog::GobindarDialog()
|
||||||
|
|
||||||
QPixmap pixmap(":/bitmap/diagram.png");
|
QPixmap pixmap(":/bitmap/diagram.png");
|
||||||
m_image.setPixmap(pixmap);
|
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_largeText);
|
||||||
m_layout.addWidget(&m_smallText);
|
m_layout.addWidget(&m_smallText);
|
||||||
|
@ -409,10 +411,9 @@ void genericUsbDriver::deGobindarise()
|
||||||
{
|
{
|
||||||
GobindarDialog gobindarDialog;
|
GobindarDialog gobindarDialog;
|
||||||
gobindarDialog.show();
|
gobindarDialog.show();
|
||||||
while(1)
|
QApplication::processEvents();
|
||||||
{
|
flashFirmware();
|
||||||
QApplication::processEvents();
|
gobindarDialog.close();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void genericUsbDriver::saveState(int *_out_deviceMode, double *_out_scopeGain, double *_out_currentPsuVoltage, int *_out_digitalPinState){
|
void genericUsbDriver::saveState(int *_out_deviceMode, double *_out_scopeGain, double *_out_currentPsuVoltage, int *_out_digitalPinState){
|
||||||
|
|
Loading…
Reference in New Issue