Skip to content

Instantly share code, notes, and snippets.

@haraki
Last active May 17, 2018 02:22
Show Gist options
  • Save haraki/86b1789c54089b735a399abfbb1a056d to your computer and use it in GitHub Desktop.
Save haraki/86b1789c54089b735a399abfbb1a056d to your computer and use it in GitHub Desktop.
QString FolderModel::filePath(const QModelIndex &index) const
{
return fsModel_->filePath(mapToSource(index));
}
QModelIndex FolderModel::setRootPath(const QString &path)
{
return mapFromSource(fsModel_->setRootPath(path));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment