| 1004 | } |
| 1005 | |
| 1006 | void Shell::applyOptionsToPart(QObject *part, const QString &serializedOptions) |
| 1007 | { |
| 1008 | KDocumentViewer *const doc = qobject_cast<KDocumentViewer *>(part); |
| 1009 | const QString find = ShellUtils::find(serializedOptions); |
| 1010 | if (ShellUtils::startInPresentation(serializedOptions)) { |
| 1011 | doc->startPresentation(); |
| 1012 | } |
| 1013 | if (ShellUtils::showPrintDialog(serializedOptions)) { |
| 1014 | QMetaObject::invokeMethod(part, "enableStartWithPrint"); |
| 1015 | } |
| 1016 | if (ShellUtils::showPrintDialogAndExit(serializedOptions)) { |
| 1017 | QMetaObject::invokeMethod(part, "enableExitAfterPrint"); |
| 1018 | } |
| 1019 | if (!find.isEmpty()) { |
| 1020 | QMetaObject::invokeMethod(part, "enableStartWithFind", Q_ARG(QString, find)); |
| 1021 | } |
| 1022 | } |
| 1023 | |
| 1024 | void Shell::connectPart(const KParts::ReadWritePart *part) |
| 1025 | { |
nothing calls this directly
no test coverage detected