Changeset 290 in pacpusframework for trunk/src/DBITEPlayerLib/DbtPlyUserInterface.cpp
- Timestamp:
- Mar 27, 2014, 12:53:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DBITEPlayerLib/DbtPlyUserInterface.cpp
r288 r290 167 167 QGridLayout * mainLayout = new QGridLayout(this); 168 168 169 butGroup = new QButtonGroup (this);169 butGroup = new QButtonGroup(this); 170 170 playBut = new QPushButton ("|>", this); 171 171 playBut->resize(kButtonWidthInPixels, kButtonHeightInPixels); … … 314 314 { 315 315 // FIXME: use Qt5 connect style 316 connect(playBut, SIGNAL(clicked()),316 QObject::connect(playBut, SIGNAL(clicked()), 317 317 mEngine.get(), SLOT(playEvent())); 318 connect(pauseBut, SIGNAL(clicked()),318 QObject::connect(pauseBut, SIGNAL(clicked()), 319 319 mEngine.get(), SLOT(pauseEvent())); 320 connect(stopBut, SIGNAL(clicked()),320 QObject::connect(stopBut, SIGNAL(clicked()), 321 321 mEngine.get(), SLOT(stopEvent())); 322 connect(speedUpBut, SIGNAL(clicked()),322 QObject::connect(speedUpBut, SIGNAL(clicked()), 323 323 mEngine.get(), SLOT(speedUpEvent())); 324 connect(speedDownBut, SIGNAL(clicked()),324 QObject::connect(speedDownBut, SIGNAL(clicked()), 325 325 mEngine.get(), SLOT(speedDownEvent())); 326 326 } … … 328 328 void DbtPlyUserInterface::connectDisplay() 329 329 { 330 connect(mEngine.get(), SIGNAL(displayStateSig(DbtPlyEngineState *, float)),330 QObject::connect(mEngine.get(), SIGNAL(displayStateSig(DbtPlyEngineState *, float)), 331 331 this, SLOT(displayStateSlot(DbtPlyEngineState *, float))); 332 333 connect (mEngine.get(), SIGNAL(timeMinMax(road_time_t, road_time_t)), 332 QObject::connect(mEngine.get(), SIGNAL(timeMinMax(road_time_t, road_time_t)), 334 333 this, SLOT(displayMinMaxTime(road_time_t , road_time_t))); 335 connect(mEngine.get(), SIGNAL(curReplayTime(road_time_t)),334 QObject::connect(mEngine.get(), SIGNAL(curReplayTime(road_time_t)), 336 335 this, SLOT(displayTime(road_time_t))); 337 connect(rev, SIGNAL(toggled(bool)),336 QObject::connect(rev, SIGNAL(toggled(bool)), 338 337 mEngine.get(), SLOT(changeDirection(bool))); 339 338 } … … 341 340 void DbtPlyUserInterface::connectSlider() 342 341 { 343 connect(timeSlider, SIGNAL(sliderPressed()),342 QObject::connect(timeSlider, SIGNAL(sliderPressed()), 344 343 mEngine.get(), SLOT(pauseEvent())); 345 connect(timeSlider, SIGNAL(sliderReleased()),344 QObject::connect(timeSlider, SIGNAL(sliderReleased()), 346 345 mEngine.get(), SLOT(playEvent())); 347 346 }
Note:
See TracChangeset
for help on using the changeset viewer.