Rename emit to emit_level as emit conflicts with Qt's emit

Change-Id: Iafe09980726c08a399e01ab69cbfd8732cc892f8