Made date dialog work from qt