Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d120f2b6 authored by Laurent Montel's avatar Laurent Montel 😁

Remove more deprecated method

parent 549c32e4
......@@ -380,7 +380,7 @@ QString dvifile::convertPDFtoPS(const QString &PDFFilename, QString *converrorms
// Use pdf2ps to do the conversion
QProcess pdf2ps;
pdf2ps.setReadChannelMode(QProcess::MergedChannels);
pdf2ps.setProcessChannelMode(QProcess::MergedChannels);
pdf2ps.start(QStringLiteral("pdf2ps"),
QStringList() << PDFFilename << convertedFileName,
QIODevice::ReadOnly|QIODevice::Text);
......
......@@ -30,7 +30,7 @@ fontEncoding::fontEncoding(const QString &encName)
_isValid = false;
// Use kpsewhich to find the encoding file.
QProcess kpsewhich;
kpsewhich.setReadChannelMode(QProcess::MergedChannels);
kpsewhich.setProcessChannelMode(QProcess::MergedChannels);
kpsewhich.start(QStringLiteral("kpsewhich"),
QStringList() << encName,
......
......@@ -1336,7 +1336,7 @@ void Part::setFileToWatch( const QString &filePath )
if ( fi.isSymLink() )
{
m_watchedFileSymlinkTarget = fi.readLink();
m_watchedFileSymlinkTarget = fi.symLinkTarget();
m_watcher->addFile( m_watchedFileSymlinkTarget );
}
else
......@@ -1981,9 +1981,9 @@ void Part::slotFileDirty( const QString& path )
m_dirtyHandler->start( 750 );
}
}
else if ( fi.isSymLink() && fi.readLink() == path )
else if ( fi.isSymLink() && fi.symLinkTarget() == path )
{
if ( QFile::exists( fi.readLink() ))
if ( QFile::exists( fi.symLinkTarget() ))
m_dirtyHandler->start( 750 );
else
m_fileWasRemoved = true;
......
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