Ignore:
Timestamp:
Mar 10, 2008, 4:41:42 PM (16 years ago)
Author:
garnier
Message:

corrections sur le removeTempFolder et autres

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc

    r750 r751  
    244244  fButtonApply = new QPushButton( tr( "&Apply" ),buttonBox );
    245245  fButtonApply->setAutoDefault( TRUE );
    246   fButtonApply->setEnabled(true);
     246  enabledApplyButton();
    247247  buttonBoxLayout->addWidget(fButtonApply);
    248248
     
    275275
    276276  // connect line edit signals
    277   connect (fEncoderPath,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true)));
    278   connect (fTempFolderPath,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true)));
    279   connect (fSaveFileName,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true)));
     277  connect (fEncoderPath,SIGNAL(textEdited ( const QString&)),this,SLOT(enabledApplyButton()));
     278  connect (fTempFolderPath,SIGNAL(textEdited ( const QString&)),this,SLOT(enabledApplyButton()));
     279  connect (fSaveFileName,SIGNAL(textEdited ( const QString&)),this,SLOT(enabledApplyButton()));
     280
     281  connect (fEncoderPath,SIGNAL(editingFinished ()),this,SLOT(checkAllParameters()));
     282  connect (fTempFolderPath,SIGNAL(editingFinished ()),this,SLOT(checkAllParameters()));
     283  connect (fSaveFileName,SIGNAL(editingFinished ()),this,SLOT(checkAllParameters()));
    280284
    281285  if (fParentViewer->getEncoderPath() == "") {
     
    442446}
    443447
    444 #endif
     448
     449void G4OpenGLQtMovieDialog::enabledApplyButton() {
     450  fButtonApply->setEnabled(true);
     451}
     452
     453#endif
Note: See TracChangeset for help on using the changeset viewer.