Utils: Use FilePath in DropSupport

Change-Id: Id048d0dab4c58be367a081bb8041214abd6dbf98
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-23 13:31:10 +02:00
parent 8ec96a1717
commit 5731965045
15 changed files with 27 additions and 26 deletions

View File

@@ -389,8 +389,8 @@ void MainWindow::closeEvent(QCloseEvent *event)
void MainWindow::openDroppedFiles(const QList<DropSupport::FileSpec> &files)
{
raiseWindow();
QStringList filePaths = Utils::transform(files, &DropSupport::FileSpec::filePath);
openFiles(Utils::transform(filePaths, &FilePath::fromString), ICore::SwitchMode);
const FilePaths filePaths = Utils::transform(files, &DropSupport::FileSpec::filePath);
openFiles(filePaths, ICore::SwitchMode);
}
IContext *MainWindow::currentContextObject() const