Ticket #5559: mythmainwindow.diff
File mythmainwindow.diff, 1.6 KB (added by , 17 years ago) |
---|
-
mythmainwindow.cpp
105 105 class MythMainWindowPrivate 106 106 { 107 107 public: 108 MythMainWindowPrivate(); 109 ~MythMainWindowPrivate(); 108 110 int TranslateKeyNum(QKeyEvent *e); 109 111 110 112 float wmult, hmult; … … 170 172 QWidget *paintwin; 171 173 }; 172 174 175 MythMainWindowPrivate::MythMainWindowPrivate() 176 177 #ifdef USING_APPLEREMOTE 178 :appleRemote(AppleRemote::instance()) 179 #endif 180 { 181 } 182 183 MythMainWindowPrivate::~MythMainWindowPrivate() 184 { 185 } 186 173 187 // Make keynum in QKeyEvent be equivalent to what's in QKeySequence 174 188 int MythMainWindowPrivate::TranslateKeyNum(QKeyEvent* e) 175 189 { … … 343 357 #ifdef USING_APPLEREMOTE 344 358 d->appleRemoteListener = NULL; 345 359 d->appleRemoteListener = new AppleRemoteListener(this); 346 d->appleRemote = AppleRemote(AppleRemote::instance());347 360 348 361 d->appleRemote.setListener(d->appleRemoteListener); 349 362 d->appleRemote.startListening(); … … 436 449 #endif 437 450 438 451 #ifdef USING_APPLEREMOTE 439 if (d-> AppleRemote.isRunning())452 if (d->appleRemote.isRunning()) 440 453 { 441 d-> AppleRemote.stopListening();454 d->appleRemote.stopListening(); 442 455 //d->AppleRemote.terminate(); 443 456 //d->AppleRemote.wait(); 444 457 } … … 1333 1346 { 1334 1347 QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e); 1335 1348 1349 // Work around weird GCC run-time bug. Only manifest on Mac OS X 1350 if (!ke) 1351 ke = (QKeyEvent *)e; 1352 1336 1353 if (currentWidget()) 1337 1354 { 1338 1355 ke->accept();