Changeset 516 for trunk/geant4/interfaces/basic/src/G4UIQt.cc
- Timestamp:
- Jun 20, 2007, 12:24:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r515 r516 46 46 #include "G4UIcommandStatus.hh" 47 47 48 #include "G4UIQtLineEdit.hh" 49 48 50 #include "G4Qt.hh" 49 51 … … 111 113 fCommandLabel = new QLabel(); 112 114 113 fCommandArea = new QLineEdit();115 fCommandArea = new G4UIQtLineEdit(this); // must surcharge the keyPressEvent function 114 116 fCommandArea->activateWindow(); 115 117 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(commandEnteredCallback())); … … 119 121 fCommandHistoryArea->setReadOnly(true); 120 122 121 123 // virtual void keyPressEvent(QKeyEvent *e) { 124 // if (e->key == Qt::Key_F9) { 125 // Do something 126 //} 127 //} 122 128 123 129 // Set layouts
Note: See TracChangeset
for help on using the changeset viewer.