Skip to content

Essayer aussi #2

@followyaya

Description

@followyaya

Esaye d'utiliser path instead au lieu de Qstring sa devrai marcher

QString NavigationPanel::getPathForItem(const QString &itemText) {
QString path;

if (itemText == "Racine") {

#if defined(Q_OS_WIN)
path = "C:/";
#else
path = "/";
#endif
} else if (itemText == "Home") {
path = QDir::homePath();
} else if (itemText == "Desktop") {
path = QDir::homePath() + "/Desktop";
} else if (itemText == "Documents") {
path = QDir::homePath() + "/Documents";
}

return path;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions