forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -283,7 +283,7 @@ int ReadOnlyFilesDialog::exec()
|
||||
result = static_cast<ReadOnlyResult>(buttongroup.group->checkedId());
|
||||
switch (result) {
|
||||
case RO_MakeWritable:
|
||||
if (!Utils::FileUtils::makeWritable(Utils::FileName::fromFileInfo(buttongroup.fileName))) {
|
||||
if (!Utils::FileUtils::makeWritable(Utils::FilePath::fromFileInfo(buttongroup.fileName))) {
|
||||
failedToMakeWritable << buttongroup.fileName;
|
||||
continue;
|
||||
}
|
||||
@@ -403,7 +403,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames)
|
||||
auto item = new QTreeWidgetItem(ui.treeWidget);
|
||||
item->setText(FileName, visibleName);
|
||||
item->setIcon(FileName, FileIconProvider::icon(fileName));
|
||||
item->setText(Folder, Utils::FileName::fromFileInfo(directory).shortNativePath());
|
||||
item->setText(Folder, Utils::FilePath::fromFileInfo(directory).shortNativePath());
|
||||
auto radioButtonGroup = new QButtonGroup;
|
||||
|
||||
// Add a button for opening the file with a version control system
|
||||
|
||||
Reference in New Issue
Block a user