Don't like ads? PRO users don't see any ads ;-)
Guest

ccw

By: a guest on May 23rd, 2012  |  syntax: C++  |  size: 0.74 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     int status=0;
  2.     do{
  3.     myDialog = new Dialog;
  4.     status = myDialog->exec();
  5.     }while( (status<1) );
  6.     if(status!=2){
  7.     //Gui Initialisieren
  8.     setupUi(this);
  9.  
  10.     //Daten Array mit NULL pointer versehen
  11.     for(int n=0; n<LENGTH; n++){
  12.        myd[n] = NULL;
  13.     }
  14.     //DB aus CSV datei Laden
  15.     getDatabase(myd);
  16.  
  17.  
  18.     //Connects der Signale u. Slots
  19.     connect( pushButton , SIGNAL(clicked()),
  20.              this , SLOT(search()) );
  21.     connect( lineEdit, SIGNAL(returnPressed()),
  22.              this , SLOT(search()) );
  23.     connect( pushButton_2 , SIGNAL(clicked()),
  24.              this , SLOT(save()) );
  25.     }
  26.     else{
  27.         QMetaObject::invokeMethod(this, "close", Qt::QueuedConnection);//important line
  28.     }