Changeset 7548 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 6, 2006, 10:06:53 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui.cc
r7547 r7548 44 44 this->state |= Gui::Quitting; 45 45 } 46 47 void Gui::startEvent() 48 { 49 this->state |= Gui::Starting; 50 } 46 51 } -
branches/qt_gui/src/lib/gui/gui.h
r7547 r7548 20 20 Null = 0, 21 21 Quitting = 1, 22 Starti g= 2,22 Starting = 2, 23 23 Saving = 4, 24 24 } State; … … 42 42 protected: 43 43 void quitEvent(); 44 void startEvent(); 44 45 45 46 private: -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7542 r7548 47 47 48 48 49 QPushButton* start = new QPushButton("start"); 50 connect(start, SIGNAL(released()), this, SLOT(startApp())); 51 mainLayout->addWidget(start, 2,2); 52 49 53 QPushButton* quit = new QPushButton("quit"); 50 connect(quit, SIGNAL(released()), this, SLOT(quit())); 54 connect(quit, SIGNAL(released()), this, SLOT(quitApp())); 55 mainLayout->addWidget(quit, 2,3); 51 56 52 mainLayout->addWidget(quit, 2,3);53 57 } 54 58 … … 81 85 } 82 86 87 88 void QtGui::quitApp() 89 { 90 Gui::quitEvent(); 91 this->quit(); 92 } 93 void QtGui::startApp() 94 { 95 Gui::startEvent(); 96 this->quit(); 97 } 98 83 99 } -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7543 r7548 30 30 virtual void update(); 31 31 32 public slots: 33 void quitApp(); 34 void startApp(); 32 35 33 36 private:
Note: See TracChangeset
for help on using the changeset viewer.