]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/folders/folderspanel.cpp
KFileItemModel: interface cleanups
[dolphin.git] / src / panels / folders / folderspanel.cpp
index 2f9e1d323c9dac57279275735f155ada3cc63a24..5f1b4a7e0d0c2120b9caeb4b694b06ca0733ff68 100644 (file)
@@ -148,11 +148,11 @@ void FoldersPanel::showEvent(QShowEvent* event)
         view->setOpacity(0);
 
         KFileItemModel* model = new KFileItemModel(this);
-        model->setShowFoldersOnly(true);
+        model->setShowDirectoriesOnly(true);
         model->setShowHiddenFiles(FoldersPanelSettings::hiddenFilesShown());
         // Use a QueuedConnection to give the view the possibility to react first on the
         // finished loading.
-        connect(model, SIGNAL(dirLoadingCompleted()), this, SLOT(slotLoadingCompleted()), Qt::QueuedConnection);
+        connect(model, SIGNAL(directoryLoadingCompleted()), this, SLOT(slotLoadingCompleted()), Qt::QueuedConnection);
 
         KItemListContainer* container = new KItemListContainer(this);
         m_controller = container->controller();
@@ -309,9 +309,9 @@ void FoldersPanel::loadTree(const KUrl& url)
     }
 
     KFileItemModel* model = fileItemModel();
-    if (model->dir() != baseUrl) {
+    if (model->directory() != baseUrl) {
         m_updateCurrentItem = true;
-        model->refreshDir(baseUrl);
+        model->refreshDirectory(baseUrl);
     }
 
     const int index = model->index(url);
@@ -319,7 +319,7 @@ void FoldersPanel::loadTree(const KUrl& url)
         updateCurrentItem(index);
     } else {
         m_updateCurrentItem = true;
-        model->expandParentItems(url);
+        model->expandParentDirectories(url);
         // slotLoadingCompleted() will be invoked after the model has
         // expanded the url
     }