diff options
author | hjk <hjk@qt.io> | 2021-09-13 13:23:19 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-09-14 07:22:08 +0000 |
commit | 64324db6627227ea4e1b37aa960d71c2078fc850 (patch) | |
tree | 14a27d1dac94b73397aaca265efee0ee0094d7ef /src/plugins/resourceeditor/qrceditor/resourcefile.cpp | |
parent | 7acb8e90f360e3928c58c431861eccaefe56e42a (diff) |
Utils: Remove FilePath::isChildOf(QDir) overload
After replacing its use in the two remaining places.
Change-Id: I6900ccdaf4ba4cf035e59b1222f06b037e7da512
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r-- | src/plugins/resourceeditor/qrceditor/resourcefile.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp index 34aed64b88..8b783ec4ef 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp +++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp @@ -51,10 +51,6 @@ using namespace ResourceEditor; using namespace ResourceEditor::Internal; -/****************************************************************************** -** File -*/ - File::File(Prefix *prefix, const QString &_name, const QString &_alias) : Node(this, prefix) , name(_name) @@ -843,7 +839,7 @@ bool ResourceModel::setData(const QModelIndex &index, const QVariant &value, int if (newFileName.isEmpty()) return false; - if (!newFileName.isChildOf(baseDir)) + if (!newFileName.isChildOf(filePath().absolutePath())) return false; return renameFile(file(index), newFileName.toString()); |