QObject* KPrFactory::create( const char* /*iface*/, QWidget* /*parentWidget*/, QObject *parent, const QVariantList& args, const QString& keyword ) { Q_UNUSED( args ); Q_UNUSED( keyword ); KPrPart *part = new KPrPart(parent); KPrDocument *doc = new KPrDocument(part); part->setDocument(doc); return part; }
QObject* KPrFactory::create( const char* /*iface*/, QWidget* /*parentWidget*/, QObject *parent, const QVariantList& args, const QString& keyword ) { Q_UNUSED( args ); Q_UNUSED( keyword ); KPrPart *part = new KPrPart(parent); KPrDocument *doc = new KPrDocument(part); doc->setDefaultStylesResourcePath(QLatin1String("stage/styles/")); part->setDocument(doc); return part; }