forked from qt-creator/qt-creator
Utils: RemoveFileName::{size,count,length}
Use .toString().{size,count,length} instead.
Change-Id: Ib697155f441a8297fb179921bcd3397719a44073
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -655,9 +655,9 @@ int FolderNavigationWidget::bestRootForFile(const Utils::FileName &filePath)
|
||||
int commonLength = 0;
|
||||
for (int i = 1; i < m_rootSelector->count(); ++i) {
|
||||
const auto root = m_rootSelector->itemData(i).value<Utils::FileName>();
|
||||
if (filePath.isChildOf(root) && root.length() > commonLength) {
|
||||
if (filePath.isChildOf(root) && root.toString().size() > commonLength) {
|
||||
index = i;
|
||||
commonLength = root.length();
|
||||
commonLength = root.toString().size();
|
||||
}
|
||||
}
|
||||
return index;
|
||||
|
||||
Reference in New Issue
Block a user