Bring dialog boxes in the front when qbt doesn't have focus.

Code inspired by glassez patch.
Correctly resize 'name' column of the content tab. Closes #1360.
Reuse code in AddNewTorrentDialog. #894.
Correctly restore 'name' column width when loading magnet links in the 'Add new torrent dialog'. Closes #1334.