Remove warning on deprecated KFilter::device*
This commit is contained in:
parent
3a7a425344
commit
21a64f4a57
8
svg.cpp
8
svg.cpp
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user