manuskript/manuskript/ui
Jan Wester d626d3ba75 Fixed & robustified image tooltips (issue #593)
Last time I touched this code, I went in looking for a specific problem,
and came out with a fix specific to that issue. That fix was not wrong,
yet it hardly covered all the problems present in the code once one took
into account issues like:

- local vs remote resources,
- relative vs absolute paths,
- different operating systems behaving differently, and
- Qt being uniquely buggy on different platforms.

The major part of it was fixed by using QUrl.fromUserInput(), which does
the exact kind of auto-detection for the nature of the resource that we
were in need of.

The rest of the issues were fixed by creating a number of test cases and
fixing problems as they popped up. Testing was done in Windows & Ubunty
against the above-mentioned test cases, which can be found in PR #629.

Regarding ImageTooltip.supportedSchemes

When QUrl.fromUserInput() misidentifies the scheme on Linux, it causes
all resemblance between the original request and the reply.request() in
the finished() signal to be lost, which results in this item getting
stuck in the ImageTooltip processing pipeline.

Limiting the supported schemes to the ones most commonly encountered
('file', 'http', 'https' and the schema-less local paths) is the only
reliable method I have found to work around this particular bug in Qt.
2019-09-10 11:30:35 -06:00
..
editors Fix crash when setting word Goal on new Text (scene) in Outline pane 2019-07-31 10:46:06 -06:00
exporters Fix dialog windows being created outside the desktop area 2019-05-20 09:25:17 -06:00
highlighters Add a Spellchecker abstraction layer and clean up code 2019-04-30 09:54:31 -06:00
importers Use native look for the import FileDialog 2019-09-04 14:18:02 -06:00
tools Fix typos that are visible to end-users. 2018-01-29 10:30:41 -07:00
views Fixed & robustified image tooltips (issue #593) 2019-09-10 11:30:35 -06:00
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
about.py Update copyright year 2019-04-04 10:33:08 -06:00
about_ui.py Put software version in one sigle label to allow easier copy/pasting 2017-10-11 08:32:44 +02:00
about_ui.ui Put software version in one sigle label to allow easier copy/pasting 2017-10-11 08:32:44 +02:00
cheatSheet.py Clear Cheatsheet results when filter text empty 2018-08-14 09:04:00 -06:00
cheatSheet_ui.py Flatified a lot of buttons, and added some stylesheets 2016-04-08 14:49:15 +02:00
cheatSheet_ui.ui Flatified a lot of buttons, and added some stylesheets 2016-04-08 14:49:15 +02:00
collapsibleDockWidgets.py Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
collapsibleGroupBox.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
collapsibleGroupBox2.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
helpLabel.py Cleaning up imports, at last 2016-02-06 12:34:22 +01:00
mainWindow.py Remove unimplemented snowflake view mode menu entry 2018-11-30 09:42:42 -07:00
mainWindow.ui Remove unimplemented snowflake view mode menu entry 2018-11-30 09:42:42 -07:00
revisions.py Changes Outline enums to IntEnum 2017-11-15 20:58:12 +01:00
revisions_ui.py Adds a few more icons 2017-10-16 10:48:04 +02:00
revisions_ui.ui Adds a few more icons 2017-10-16 10:48:04 +02:00
search.py Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
search_ui.py Some more UI tweaks 2016-04-12 00:01:51 +02:00
search_ui.ui Some more UI tweaks 2016-04-12 00:01:51 +02:00
settings_ui.py Rename setting "Save on quit" to "Save on project close" 2019-08-22 15:18:18 -06:00
settings_ui.ui Rename setting "Save on quit" to "Save on project close" 2019-08-22 15:18:18 -06:00
statusLabel.py Fixes #307: Overlay status bar prevents access to add/delete world item icons when displaying a message 2018-01-22 18:19:22 +01:00
style.py Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
welcome.py fix issue #468 'unit' is reset 2019-06-05 10:34:11 -06:00
welcome_ui.py Fix typos that are visible to end-users. 2018-01-29 10:30:41 -07:00
welcome_ui.ui Fix typos that are visible to end-users. 2018-01-29 10:30:41 -07:00