removimg Q_EMIT, Q_SIGNAL keywords. Fixed g_main_loop for linux version