change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
KMessageBox::information(m_presentationWidget,i18n("The document is going to be launched on presentation mode because the file requested it."),QString::null,"autoPresentationWarning");