add create directory support

`QInputDialog::getText` requires two parameters here.