Commit c8c9862b authored by Halla Rempt's avatar Halla Rempt

Remove some more QMessageBoxes that are no longer needed

parent acbbde1a
......@@ -21,7 +21,6 @@
#include <QCheckBox>
#include <QSlider>
#include <QMessageBox>
#include <kpluginfactory.h>
#include <QFileInfo>
......
......@@ -21,7 +21,6 @@
#include <qendian.h>
#include <QDataStream>
#include <QApplication>
#include <QMessageBox>
#include <kpluginfactory.h>
......
......@@ -21,7 +21,6 @@
#include <QCheckBox>
#include <QSlider>
#include <QMessageBox>
#include <kpluginfactory.h>
#include <QFileInfo>
......
......@@ -19,7 +19,6 @@
#include <QCheckBox>
#include <QSlider>
#include <QMessageBox>
#include <kpluginfactory.h>
#include <QFileInfo>
......
......@@ -24,7 +24,6 @@
#include <QApplication>
#include <kpluginfactory.h>
#include <QMessageBox>
#include <KoColorSpace.h>
#include <KisImportExportManager.h>
......@@ -80,13 +79,6 @@ KisImportExportFilter::ConversionStatus KisPNGExport::convert(KisDocument *docum
pd = new KisPaintDevice(*image->projection());
KisPaintLayerSP l = new KisPaintLayer(image, "projection", OPACITY_OPAQUE_U8, pd);
if (!KisPNGConverter::isColorSpaceSupported(pd->colorSpace())) {
if (!batchMode()) {
QMessageBox::critical(0, i18nc("@title:window", "Krita PNG Export"), i18n("You can only save grayscale and RGB images to PNG. Convert your image before exporting to PNG."));
}
return KisImportExportFilter::UsageError;
}
bool isThereAlpha = false;
KisSequentialConstIterator it(l->paintDevice(), image->bounds());
const KoColorSpace* cs = l->paintDevice()->colorSpace();
......
......@@ -19,7 +19,6 @@
#include <QCheckBox>
#include <QSlider>
#include <QMessageBox>
#include <QFileInfo>
#include <QApplication>
......@@ -76,27 +75,6 @@ psdExport::~psdExport()
KisImportExportFilter::ConversionStatus psdExport::convert(KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP /*configuration*/)
{
if (document->image()->width() > 30000 || document->image()->height() > 30000) {
if (!batchMode()) {
QMessageBox::critical(0,
i18nc("@title:window", "Photoshop Export Error"),
i18n("Unable to save to the Photoshop format.\n"
"The Photoshop format only supports images that are smaller than 30000x3000 pixels."));
}
return KisImportExportFilter::InvalidFormat;
}
if (!checkHomogenity(document->image()->rootLayer(), document->image()->colorSpace())) {
if (!batchMode()) {
QMessageBox::critical(0,
i18nc("@title:window", "Photoshop Export Error"),
i18n("Unable to save to the Photoshop format.\n"
"The Photoshop format only supports images where all layers have the same colorspace as the image."));
}
return KisImportExportFilter::InvalidFormat;
}
PSDSaver psdSaver(document);
KisImageBuilder_Result res;
......
......@@ -23,7 +23,6 @@
#include <QCheckBox>
#include <QDomDocument>
#include <QFileInfo>
#include <QMessageBox>
#include <QSlider>
#include <QFileInfo>
#include <QDir>
......
......@@ -19,14 +19,10 @@
#include "kis_tiff_writer_visitor.h"
#include <QMessageBox>
#include <klocalizedstring.h>
#include <KoColorProfile.h>
#include <KoColorSpace.h>
#include <KoID.h>
#include <KoConfig.h>
#ifdef HAVE_OPENEXR
#include <half.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment