generic: use non-deprecated methods

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-06-03 22:23:54 +00:00
parent c00439ac44
commit b69b9ff2c0
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ bool CursorThemeModel::handleDefault(const QDir &themeDir)
// If "default" is a symlink
if (info.isSymLink())
{
QFileInfo target(info.symLinkTarget());
QFileInfo target(info.readLink());
if (target.exists() && (target.isDir() || target.isSymLink()))
defaultName = target.fileName();

View file

@ -242,7 +242,7 @@ void ControllerWindow::syncToGraphicsWidget()
PlasmaApp::self()->corona()->screenGeometry(m_containment.data()->screen()) :
PlasmaApp::self()->corona()->screenGeometry(PlasmaApp::self()->corona()->screenId(pos()));
QSize maxSize = KWindowSystem::workArea().intersect(screenRect).size();
QSize maxSize = KWindowSystem::workArea().intersected(screenRect).size();
QSize windowSize;
if (m_location == Plasma::LeftEdge || m_location == Plasma::RightEdge) {