xbase: make Ctrl+q quit the application

Signed-off-by: David Aguilar <davvid@gmail.com>
xbase: fix drag and drop on Linux

Qt4 on Linux is throwing away items during internal drag+drop moves.
This breaks the editor on Linux so handle the move operation ourselves.