Update document_i.cpp based on Qt 4.8