KUrl cleanUrl(url);
cleanUrl.cleanPath();
- m_filepath = cleanUrl.path();
+ m_filepath = cleanUrl.toLocalFile();
- if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) {
+ if ((m_filepath.length() < 1) || (!QDir::isAbsolutePath(m_filepath))) {
const QString file = destinationDir("global") + FILE_NAME;
m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
return;
return static_cast<Qt::SortOrder>(m_node->sortOrder());
}
+void ViewProperties::setSortFoldersFirst(bool foldersFirst)
+{
+ if (m_node->sortFoldersFirst() != foldersFirst) {
+ m_node->setSortFoldersFirst(foldersFirst);
+ updateTimeStamp();
+ }
+}
+
+bool ViewProperties::sortFoldersFirst() const
+{
+ return m_node->sortFoldersFirst();
+}
+
void ViewProperties::setAdditionalInfo(KFileItemDelegate::InformationList list)
{
int info = NoInfo;