Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Defer processing of dropped files
On Windows (and maybe other platforms) Qt locks the dragging application for the duration of dropEvent. This means that dropping large files or projects onto QGIS results in Explorer windows being locked and unresponsive until the entire file/project is loaded. There does not seem to be any Qt method for releasing this lock early, so instead we return from dropEvent as quickly as possible and defer the actual file loading to a slot which is fired up immediately after dropEvent concludes. (cherry-picked from bd81edc)
- Loading branch information
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -55,5 +55,7 @@ class CORE_EXPORT QgsMimeDataUtils | ||
|
||
}; | ||
|
||
Q_DECLARE_METATYPE( QgsMimeDataUtils::UriList ); | ||
|
||
#endif // QGSMIMEDATAUTILS_H | ||
|