http://bugs.kde.org/show_bug.cgi?id=177537
--- Comment #1 from Pino Toscano <pino kde org> 2008-12-11 22:57:53 --- There's something I don't understand in your report, that makes me think the problem does not lie in Okular. Let's start from the Okular line: > Generator * generator = factory->create< Okular::Generator >( 0 ); and then the various create() overloads in KPluginFactory: a) T *create(QObject *parent = 0, const QVariantList &args = QVariantList()); b) T *create(const QString &keyword, QObject *parent = 0, const QVariantList &args = QVariantList()); c) T *create(QWidget *parentWidget, QObject *parent, const QString &keyword = QString(), const QVariantList &args = QVariantList()); d) KDE_DEPRECATED T *create(QObject *parent, const QStringList &args) e) KDE_DEPRECATED QObject *create(QObject *parent = 0, const char *classname = "QObject", const QStringList &args = QStringList()) f) virtual QObject *create(const char *iface, QWidget *parentWidget, QObject *parent, const QVariantList &args, const QString &keyword); it seems pretty clear that (when compiling it) the chosen one is (a). Let's go to to the implementation of (a): > inline T *KPluginFactory::create(QObject *parent, const QVariantList &args) > { > QObject *o = create(T::staticMetaObject.className(), parent && > parent->isWidgetType() ? reinterpret_cast<QWidget *>(parent): 0, parent, > args, QString()); Thus, the create() used by Okular in the end calls the virtual create() that is reimplemented by the KRubyPluginFactory. Parent is passed (null), keyword is empty, and there are no arguments. Other ideas? -- Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel