Changeset View
Changeset View
Standalone View
Standalone View
shell/shell.cpp
Show First 20 Lines • Show All 678 Lines • ▼ Show 20 Line(s) | |||||
679 | 679 | | |||
680 | void Shell::applyOptionsToPart( QObject* part, const QString &serializedOptions ) | 680 | void Shell::applyOptionsToPart( QObject* part, const QString &serializedOptions ) | ||
681 | { | 681 | { | ||
682 | KDocumentViewer* const doc = qobject_cast<KDocumentViewer*>(part); | 682 | KDocumentViewer* const doc = qobject_cast<KDocumentViewer*>(part); | ||
683 | if ( ShellUtils::startInPresentation(serializedOptions) ) | 683 | if ( ShellUtils::startInPresentation(serializedOptions) ) | ||
684 | doc->startPresentation(); | 684 | doc->startPresentation(); | ||
685 | if ( ShellUtils::showPrintDialog(serializedOptions) ) | 685 | if ( ShellUtils::showPrintDialog(serializedOptions) ) | ||
686 | QMetaObject::invokeMethod( part, "enableStartWithPrint" ); | 686 | QMetaObject::invokeMethod( part, "enableStartWithPrint" ); | ||
687 | if ( ShellUtils::showPrintDialogAndExit(serializedOptions) ) | ||||
688 | QMetaObject::invokeMethod( part, "enableExitAfterPrint" ); | ||||
687 | } | 689 | } | ||
688 | 690 | | |||
689 | void Shell::connectPart( QObject* part ) | 691 | void Shell::connectPart( QObject* part ) | ||
690 | { | 692 | { | ||
691 | connect( this, SIGNAL(moveSplitter(int)), part, SLOT(moveSplitter(int)) ); | 693 | connect( this, SIGNAL(moveSplitter(int)), part, SLOT(moveSplitter(int)) ); | ||
692 | connect( part, SIGNAL(enablePrintAction(bool)), this, SLOT(setPrintEnabled(bool))); | 694 | connect( part, SIGNAL(enablePrintAction(bool)), this, SLOT(setPrintEnabled(bool))); | ||
693 | connect( part, SIGNAL(enableCloseAction(bool)), this, SLOT(setCloseEnabled(bool))); | 695 | connect( part, SIGNAL(enableCloseAction(bool)), this, SLOT(setCloseEnabled(bool))); | ||
694 | connect( part, SIGNAL(mimeTypeChanged(QMimeType)), this, SLOT(setTabIcon(QMimeType))); | 696 | connect( part, SIGNAL(mimeTypeChanged(QMimeType)), this, SLOT(setTabIcon(QMimeType))); | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |