forked from qt-creator/qt-creator
CMakeProjectManager: Do not convert PATHS to user output
CMake works natively with / for paths, if we convert them to \ on Windows, and then give back to CMake, we end up having bad paths. Change-Id: I44da27ba4927ec5b83c8e381a8c65ca3fca3505b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -106,7 +106,7 @@ void ConfigModelItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *
|
||||
if (data.type == ConfigModel::DataItem::FILE || data.type == ConfigModel::DataItem::DIRECTORY) {
|
||||
auto edit = static_cast<Utils::PathChooser *>(editor);
|
||||
if (edit->rawPath() != data.value)
|
||||
model->setData(index, edit->fileName().toUserOutput(), Qt::EditRole);
|
||||
model->setData(index, edit->fileName().toString(), Qt::EditRole);
|
||||
return;
|
||||
} else if (!data.values.isEmpty()) {
|
||||
auto edit = static_cast<QComboBox *>(editor);
|
||||
|
Reference in New Issue
Block a user