qt4-gui: Add missing #ifdef around variable usage

Fixes #35
qt4-gui: Remove #ifdef around slot declaration

It seems moc doesn't parse the #ifdef and assumes the slot always
exists.

Fixes #36