[krita/krita/3.1] libs/ui: Remove the PDF export menu option

Boudewijn Rempt null at kde.org
Sat Jan 21 12:33:23 UTC 2017


Git commit 8e2e0faaac8cfe3eee95f67e5e61d7fc31c9d289 by Boudewijn Rempt.
Committed on 21/01/2017 at 12:33.
Pushed by rempt into branch 'krita/3.1'.

Remove the PDF export menu option

CCBUG:372439
CCMAIL: kimageshop at kde.org

People really should use Scribus (http://scribus.net) to make PDF's,
not Krita, where the the PDF export code depends on QPrinter, which
just isn't powerful enough.

Krita is for creating images; for printing stuff, whether to PDF
or printer, use a dedicated application.

M  +3    -3    libs/ui/KisMainWindow.cpp
M  +1    -0    libs/ui/KisMainWindow.h

https://commits.kde.org/krita/8e2e0faaac8cfe3eee95f67e5e61d7fc31c9d289

diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index 6f864e650c8..f1ac9b9c260 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -203,7 +203,7 @@ public:
     KisAction *saveActionAs {0};
 //    KisAction *printAction;
 //    KisAction *printActionPreview;
-    KisAction *exportPdf {0};
+//    KisAction *exportPdf {0};
     KisAction *importAnimation {0};
     KisAction *closeAll {0};
 //    KisAction *reloadFile;
@@ -2292,8 +2292,8 @@ void KisMainWindow::createActions()
     d->redo = actionManager->createStandardAction(KStandardAction::Redo, this, SLOT(redo()));
     d->redo->setActivationFlags(KisAction::ACTIVE_IMAGE);
 
-    d->exportPdf  = actionManager->createAction("file_export_pdf");
-    connect(d->exportPdf, SIGNAL(triggered()), this, SLOT(exportToPdf()));
+//    d->exportPdf  = actionManager->createAction("file_export_pdf");
+//    connect(d->exportPdf, SIGNAL(triggered()), this, SLOT(exportToPdf()));
 
     d->importAnimation  = actionManager->createAction("file_import_animation");
     d->importAnimation->setActivationFlags(KisAction::IMAGE_HAS_ANIMATION);
diff --git a/libs/ui/KisMainWindow.h b/libs/ui/KisMainWindow.h
index 5920136f895..b8b6a293f7b 100644
--- a/libs/ui/KisMainWindow.h
+++ b/libs/ui/KisMainWindow.h
@@ -216,6 +216,7 @@ public Q_SLOTS:
      */
     void slotFileSave();
 
+    // XXX: disabled
     KisPrintJob* exportToPdf(const QString &pdfFileName = QString());
 
     void slotProgress(int value);


More information about the kimageshop mailing list