revert some printf's newline order
rename Qt Designer file generating function