
ccw
By: a guest on
May 23rd, 2012 | syntax:
C++ | size: 0.74 KB | hits: 18 | expires: Never
int status=0;
do{
myDialog = new Dialog;
status = myDialog->exec();
}while( (status<1) );
if(status!=2){
//Gui Initialisieren
setupUi(this);
//Daten Array mit NULL pointer versehen
for(int n=0; n<LENGTH; n++){
myd[n] = NULL;
}
//DB aus CSV datei Laden
getDatabase(myd);
//Connects der Signale u. Slots
connect( pushButton , SIGNAL(clicked()),
this , SLOT(search()) );
connect( lineEdit, SIGNAL(returnPressed()),
this , SLOT(search()) );
connect( pushButton_2 , SIGNAL(clicked()),
this , SLOT(save()) );
}
else{
QMetaObject::invokeMethod(this, "close", Qt::QueuedConnection);//important line
}