Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7548 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc


Ignore:
Timestamp:
May 6, 2006, 10:06:53 AM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: start-stop-events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7542 r7548  
    4747
    4848
     49      QPushButton* start = new QPushButton("start");
     50      connect(start, SIGNAL(released()), this, SLOT(startApp()));
     51      mainLayout->addWidget(start, 2,2);
     52
    4953      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);
    5156
    52       mainLayout->addWidget(quit, 2,3);
    5357    }
    5458
     
    8185  }
    8286
     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
    8399}
Note: See TracChangeset for help on using the changeset viewer.