Ported KGenerateSqlDlg to KF5
Also fixed a memory leak, make this dialog work at all, fixed a bug
which caused incorrectly enabled text fileds.
Tested by creating a sqlite database (did not succeed for another
reason) and saving the SQL to a text file.