- Timestamp:
- Jun 20, 2007, 12:24:47 PM (17 years ago)
- Location:
- trunk/geant4/interfaces/basic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r514 r516 95 95 G4int ReceiveG4cout(G4String); 96 96 G4int ReceiveG4cerr(G4String); 97 // G4String GetCommand(Widget); 97 // G4String GetCommand(Widget); 98 99 // Some useful getters 100 inline const QTextEdit * GetCommandHistoryArea() const 101 { return fCommandHistoryArea; }; 102 98 103 private: 99 104 void SecondaryLoop(G4String); // a VIRER -
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 -
trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc
r514 r516 2 2 ** Meta object code from reading C++ file 'G4UIQt.hh' 3 3 ** 4 ** Created: Fri Jun 15 15:07:5520074 ** Created: Tue Jun 19 15:07:52 2007 5 5 ** by: The Qt Meta Object Compiler version 59 (Qt 4.2.2) 6 6 **
Note: See TracChangeset
for help on using the changeset viewer.