qt: convert prefs dialog to be `.ui` based
This is a chunk of foundational work upon which I'm building a prefs interface redesign.
The primary thing achieved here is converting the prefs dialog construction to use of a .ui
file, which makes the code a lot cleaner and easier to understand, and allows viewing/editing the dialog UI in Qt Creator/Designer.