#include <qaccel.h>
#include <qhbox.h>
#include <qobjectlist.h>
+#include <qthread.h>
#define PROCESS_EVENT QEvent::User+100
*/
void InstallWizard::postValidateEvent( InstallWizard* iw, const int val, void* data )
{
- QApplication::postEvent( iw, new ProcessEvent( val, data ) );
+ QThread::postEvent( iw, new ProcessEvent( val, data ) );
}
/*!
parent->y() + (parent->height()-sh.height())/2 );
myDlg->show();
}
+ myDlg->raise();
+ myDlg->setFocus();
}
else {
if ( myDlg ) {
}
QString tmpFolder = QDir::cleanDirPath( tempFolder->text().stripWhiteSpace() ) + TEMPDIRNAME;
QString tgtFolder = QDir::cleanDirPath( targetFolder->text().stripWhiteSpace() );
- qApp->sendPostedEvents();
- qApp->processEvents();
myThread->clearCommands();
for ( unsigned i = 0; i < natives.count(); i++ ) {
item = findItem( natives[ i ] );
}
WarnDialog::showWarnDlg( this, true );
myThread->start();
+ return true; // return in order to avoid default postValidateEvent() action
}
return InstallWizard::acceptData( pageTitle );
}
// ================================================================
void SALOME_InstallWizard::processValidateEvent( const int val, void* data )
{
+ QWidget* aPage = InstallWizard::currentPage();
+ if ( aPage != productsPage ) {
+ InstallWizard::processValidateEvent( val, data );
+ return;
+ }
QCheckListItem* item = (QCheckListItem*)data;
if ( val > 0 ) {
if ( val == 2 ) {