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)
|
||||
: 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(
|
||||
|
Loading…
Reference in New Issue
Block a user