Commit 9fedecf5 authored by Stefan Brüns's avatar Stefan Brüns

Remove flags() overrides matching the default

The baseclass implementation ThumbCreator::flags() already returns
`None`, no reason to override it.
parent 3440a169
......@@ -59,8 +59,3 @@ bool AppImageCreator::create(const QString &path, int width, int height, QImage
return image.loadFromData(reinterpret_cast<uchar*>(buf), size);
}
ThumbCreator::Flags AppImageCreator::flags() const
{
return None;
}
......@@ -29,5 +29,4 @@ public:
~AppImageCreator() override;
bool create(const QString &path, int width, int height, QImage &image) override;
Flags flags() const override;
};
......@@ -310,8 +310,3 @@ int ComicCreator::startProcess(const QString& processPath, const QStringList& ar
return ret;
}
ThumbCreator::Flags ComicCreator::flags() const
{
return None;
}
......@@ -52,7 +52,6 @@ class ComicCreator : public QObject, public ThumbCreator
public:
ComicCreator();
bool create(const QString& path, int width, int height, QImage& img) override;
Flags flags() const override;
private:
enum Type {
......
......@@ -123,11 +123,3 @@ bool DjVuCreator::create(const QString &path, int width, int height, QImage &img
int l = img.loadFromData( data );
return ok && l;
}
ThumbCreator::Flags DjVuCreator::flags() const
{
return static_cast<Flags>(None);
}
......@@ -28,8 +28,6 @@ class DjVuCreator : public ThumbCreator
public:
DjVuCreator() {}
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
};
#endif
......@@ -77,8 +77,3 @@ bool EXRCreator::create(const QString &path, int, int, QImage &img)
}
}
}
ThumbCreator::Flags EXRCreator::flags() const
{
return None;
}
......@@ -27,7 +27,6 @@ class EXRCreator : public ThumbCreator
public:
EXRCreator() {};
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
};
#endif
......@@ -42,8 +42,3 @@ bool ImageCreator::create(const QString &path, int, int, QImage &img)
img = img.convertToFormat(img.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32);
return true;
}
ThumbCreator::Flags ImageCreator::flags() const
{
return None;
}
......@@ -29,7 +29,6 @@ class ImageCreator : public ThumbCreator
public:
ImageCreator() {}
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
};
#endif
......@@ -56,11 +56,6 @@ bool JpegCreator::create(const QString &path, int width, int height, QImage &ima
return imageReader.read(&image);
}
ThumbCreator::Flags JpegCreator::flags() const
{
return None;
}
QWidget *JpegCreator::createConfigurationWidget()
{
QCheckBox *rotateCheckBox = new QCheckBox(i18nc("@option:check", "Rotate the image automatically"));
......
......@@ -29,7 +29,6 @@ class JpegCreator : public ThumbCreator
public:
JpegCreator();
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
QWidget *createConfigurationWidget() override;
void writeConfiguration(const QWidget *configurationWidget) override;
};
......
......@@ -101,8 +101,3 @@ bool KritaCreator::create(const QString &path, int width, int height, QImage &im
return false;
}
ThumbCreator::Flags KritaCreator::flags() const
{
return None;
}
......@@ -35,7 +35,6 @@ public:
~KritaCreator() override;
bool create(const QString &path, int width, int height, QImage &image) override;
Flags flags() const override;
};
#endif
......@@ -52,8 +52,3 @@ bool SvgCreator::create(const QString &path, int w, int h, QImage &img)
img = i;
return true;
}
ThumbCreator::Flags SvgCreator::flags() const
{
return None;
}
......@@ -27,7 +27,6 @@ class SvgCreator : public ThumbCreator
public:
SvgCreator() {}
bool create(const QString &path, int w, int h, QImage &img) override;
Flags flags() const override;
};
#endif
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