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) QObject *parent)
: QSvgRenderer(parent) : QSvgRenderer(parent)
{ {
QIODevice *file = KFilterDev::deviceForFile(filename, "application/x-gzip"); KCompressionDevice file(filename, KCompressionDevice::GZip);
if (!file->open(QIODevice::ReadOnly)) { if (!file.open(QIODevice::ReadOnly)) {
delete file;
return; return;
} }
load(file->readAll(), styleSheet, interestingElements); load(file.readAll(), styleSheet, interestingElements);
delete file;
} }
SharedSvgRenderer::SharedSvgRenderer( SharedSvgRenderer::SharedSvgRenderer(