![]() |
#16 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
![]() I never did have the crash on dragging files around in the book browser, so I don't know if it helps with that problem. Does it? Albert Last edited by st_albert; 07-25-2018 at 07:34 PM. Reason: an afterthought. |
|
![]() |
![]() |
![]() |
#17 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Quote:
![]() With Qt essentially being tricked into thinking that items in QTreeView are being double-clicked, that means there's a heck of a lot more signals being emitted when attempting to drag around files in Sigil's Book Browser (on KDE with single-click-to-open enabled), than on systems where the exact same action doesn't result in any new BV/CV tabs being opened (nor does it cause any already open tabs to take focus). |
||
![]() |
![]() |
![]() |
#18 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jul 2018
Device: none
|
The single click was the culprit for the multiple select issue. Selecting double click enabled the multipe selection. But the crash is still there.
Last edited by Reinhard; 07-26-2018 at 04:34 AM. Reason: writing crash where it didn't belong. |
![]() |
![]() |
![]() |
#19 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jul 2018
Device: none
|
If I use the command "ssh -X localhost" then sigil works as expected.
Multiple selections are OK, no crash when reordering. I suppose there are less interactions with KDE. So I have a workaround if I need these commands. Thank for your help. Reinhard |
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for reporting back. I'll keep digging in the meantime. Please do let us know if Qt 5.11 changes anything RE the crash if you think about it.
|
![]() |
![]() |
![]() |
#21 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jul 2018
Device: none
|
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This boils down to the "activated" signal of QTreeView (inherited from QAbstractItemView). "activated" can mean many things depending on the Platform -- single-click, double-click, hitting the enter key on a highlighted item, etc.
So clearly, KDE's "single-click to open files" setting alters the activated signal of QAbstractItemView in its system Qt5. We could change to using the "doubleClick" signal of QAbstractItemView rather than "activated" (since I don't know of any special double-click functionality that Sigil reserves in Book View). That would likely fix most--if not all--of the issues with KDE (multi-selection and reordering crashes), but I'm loathe to use that solution. Mainly because it wouldn't take into account hitting the Enter/Return key when an item in Book View was highlighted (which works on at least two of the platforms Sigil supports). And doing so would affect those who favor keyboard input over mouse. The only other solution might be to subclass QAbstractItemView to create new signals/slots that would behave consistently across all platforms (double-click and enter/return). But that could get complicated. Will have to think more on it. @KevinH: Are editor tabs opened/focused with single-clicks on Book View items with OS X or double-clicks? What about hitting the enter/return key when a Book View item is highlighted? Last edited by DiapDealer; 07-31-2018 at 01:04 PM. |
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,767
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Highlighting and hitting return will activate the link on OSX in BookBiew and now Preview.
Single clicking on Tab in Tab Bar will make that Tab active (bring it to front) |
![]() |
![]() |
![]() |
#24 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
On Windows and Most Linux desktops, you have to double-click on an entry in the Book Browser to open its tab. It's KDE's single-click to open setting that's adversely affecting multiple selection in Book Browser. I was curious if it was similar on OS X (and if hitting enter when a file is highlighted in the Book Browser will open its tab). |
|
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,767
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Mac is double click in bookbrowser to launch a tab. A single-click would interfere with just highlighting.
|
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I'm wondering what would happen if we connected Book View's m_TreeView "doubleClicked" signal to EmitResourceActivated in MainUI/BookBrowser.cpp instead of using the clearly platform-variable "activated" signal that we now use. We'd lose the ability to use Enter/Return to open the resource when it was highlighted, but I'm not certain that works on all Platforms as it is. That's why I was asking what hitting Enter on OS X did when a resource was highlighted in Book Browser. If using doubleClicked solves the problem on KDE (and everybody else is already used to using double-clicks to open resources from the Book Browser any way), then perhaps we can add a platform independent signal/slot to MainUI/BookBrowser.cpp that will capture the Enter keystroke and launch the resource highlighted in m_TreeView (if the selected entry has a valid index, of course). Just spit-balling really. Last edited by DiapDealer; 07-31-2018 at 02:12 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Two tiny bugs when reading a book | opitzs | Sony Reader | 10 | 07-08-2013 07:10 PM |
0.7.0 and the book browser | JSWolf | Sigil | 5 | 02-21-2013 07:11 PM |
Docking Book Browser | ayjay3 | Sigil | 4 | 11-25-2011 04:02 AM |
Bugs? Book conversion, and tranferring books to Kobo | DMerriman | Devices | 3 | 04-16-2011 05:20 PM |
PDF import bugs with Book Designer | JSWolf | Sony Reader | 5 | 04-26-2007 03:49 PM |