OSDN Git Service

generic: use non-deprecated methods
authorIvailo Monev <xakepa10@gmail.com>
Fri, 3 Jun 2016 22:23:54 +0000 (22:23 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 3 Jun 2016 22:23:54 +0000 (22:23 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kcontrol/input/xcursor/thememodel.cpp
plasma/shells/plasma-desktop/controllerwindow.cpp

index ee2e341..299629b 100644 (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();
 
index c92d011..487460c 100644 (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) {