use dialog to obtain the text in lineEdit and replace mainWindow's title into that text