MCPcopy Create free account
hub / github.com/KDE/okular / applyOptionsToPart

Method applyOptionsToPart

shell/shell.cpp:1006–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006void 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
1024void Shell::connectPart(const KParts::ReadWritePart *part)
1025{

Callers

nothing calls this directly

Calls 6

findFunction · 0.85
startInPresentationFunction · 0.85
showPrintDialogFunction · 0.85
showPrintDialogAndExitFunction · 0.85
startPresentationMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected