globals--, fmt string fix, foreeach++, better names++, close fds, tray icon activates/closes

This commit is contained in:
Mathias Panzenböck
2014-02-16 04:37:11 +01:00
parent f2a566cc06
commit cfa17f8947
24 changed files with 208 additions and 206 deletions

View File

@ -130,15 +130,10 @@ void LayoutEdit::updateJoypadWidgets() {
}
}
void LayoutEdit::closeEvent(QCloseEvent *event) {
lm->leWindowClosed();
event->accept();
}
void LayoutEdit::appFocusChanged(QWidget *old, QWidget *now) {
if(now!=NULL && old==NULL) {
if (now != NULL && old == NULL) {
emit focusStateChanged(false);
} else if(old!=NULL && now==NULL) {
} else if(old != NULL && now == NULL) {
emit focusStateChanged(true);
foreach (JoyPad *joypad, lm->available) {
debug_mesg("iterating and releasing\n");