forked from qt-creator/qt-creator
Utils: Use FilePath in DropSupport
Change-Id: Id048d0dab4c58be367a081bb8041214abd6dbf98 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user