Changeset 7861 in orxonox.OLD for trunk/src/lib
- Timestamp:
- May 25, 2006, 4:47:24 PM (19 years ago)
- Location:
- trunk/src/lib/gui/qt_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/qt_gui/gui_control.cc
r7661 r7861 77 77 : QPushButton(QString().fromStdString(name)), Saveable(name, group, defaultValue) 78 78 { 79 this->bListening = false; 80 81 //connect(this, SIGNAL(released()), this, SLOT(listen())); 82 79 83 } 80 84 … … 91 95 92 96 97 bool GuiControlInput::event ( QEvent * e ) 98 { 99 100 if (!this->bListening) 101 return false; 102 103 104 105 this->bListening = true; 106 return true; 107 } 108 109 void GuiControlInput::listen() 110 { 111 this->bListening = true; 112 this->grabKeyboard(); 113 } 114 93 115 } -
trunk/src/lib/gui/qt_gui/gui_control.h
r7661 r7861 34 34 virtual void save(); 35 35 36 37 virtual bool event(QEvent* e); 36 38 public slots: 37 ///TODO: MAKE IT CONFIGUREABLE.39 void listen(); 38 40 signals: 39 41 // void optionChanged(); 42 43 private: 44 bool bListening; 40 45 }; 46 47 41 48 42 49 }
Note: See TracChangeset
for help on using the changeset viewer.