QFile::rename fallback: reset permissions and error state on success
QFile::rename fallback: reset permissions and error state on success

Fallback implementation for rename operation should try to copy
permissions from the original file to the destination file. Note that
failures at this point are not treated as errors.

Errors previously set by the native fileEngine are also reset before
returning.

Reviewed-by: Peter Hartmann
Reviewed-by: Thiago

radekp/qt,KDE/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,KDE/qt,radekp/qt,radekp/qt,KDE/qt,RLovelett/qt,igor-sfdc/qt-wk,KDE/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,KDE/qt,radekp/qt,radekp/qt,radekp/qt,RLovelett/qt,KDE/qt,igor-sfdc/qt-wk,radekp/qt,radekp/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,KDE/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,KDE/qt,radekp/qt,RLovelett/qt,igor-sfdc/qt-wk,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,RLovelett/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,RLovelett/qt,igor-sfdc/qt-wk,RLovelett/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk