Remove warning on deprecated KFilter::device*

This commit is contained in:
Mario Bensi 2011-09-08 16:35:55 +02:00
parent 3a7a425344
commit 21a64f4a57

View File

@ -56,13 +56,11 @@ SharedSvgRenderer::SharedSvgRenderer(
QObject *parent)
: QSvgRenderer(parent)
{
QIODevice *file = KFilterDev::deviceForFile(filename, "application/x-gzip");
if (!file->open(QIODevice::ReadOnly)) {
delete file;
KCompressionDevice file(filename, KCompressionDevice::GZip);
if (!file.open(QIODevice::ReadOnly)) {
return;
}
load(file->readAll(), styleSheet, interestingElements);
delete file;
load(file.readAll(), styleSheet, interestingElements);
}
SharedSvgRenderer::SharedSvgRenderer(