roundprogress::roundprogress(QWidget *parent) : QWidget(parent), task(MyInternalTask(true)), task2(MyInternalTask(false)) { ui.setupUi(this); ui.progressButton->setIcon(QIcon("find.png")); connect(ui.startButton, SIGNAL(clicked()), this, SLOT(start())); connect(ui.startButton2, SIGNAL(clicked()), this, SLOT(start2())); connect(ui.startBothButton, SIGNAL(clicked()), this, SLOT(start3())); ui.startButton->setFocus(); }
//------------------------------------------------------------------------ int notmain ( void ) { unsigned int ra; unsigned int rb; uart_init(); hexstring(0x12345678); PUT32(0x40,0); ra=GET32(0x40); start1(); start2(); start3(); while(1) { rb=GET32(0x40); if(rb!=ra) { ra=rb; hexstring(ra); } } return(0); }