sleep() function in Qt

Set sleep() when second card is opened.