Ignore:
Timestamp:
Jun 20, 2007, 12:24:47 PM (17 years ago)
Author:
garnier
Message:

r635@mac-90108: laurentgarnier | 2007-06-19 15:51:12 +0200
en test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r515 r516  
    4646#include "G4UIcommandStatus.hh"
    4747
     48#include "G4UIQtLineEdit.hh"
     49
    4850#include "G4Qt.hh"
    4951
     
    111113  fCommandLabel = new QLabel();
    112114
    113   fCommandArea = new QLineEdit();
     115  fCommandArea = new G4UIQtLineEdit(this); // must surcharge the keyPressEvent function
    114116  fCommandArea->activateWindow();
    115117  connect(fCommandArea, SIGNAL(returnPressed()), SLOT(commandEnteredCallback()));
     
    119121  fCommandHistoryArea->setReadOnly(true);
    120122
    121  
     123  //  virtual void keyPressEvent(QKeyEvent *e) {
     124  //    if (e->key == Qt::Key_F9) {
     125  // Do something
     126  //}
     127  //}
    122128
    123129  // Set layouts
Note: See TracChangeset for help on using the changeset viewer.