|
|
#31 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 472
Karma: 3972002
Join Date: May 2013
Location: Ontario, Canada
Device: Pop_Os!, Kobo Forma
|
Quote:
Everything is working well now as far as I can tell. I'm nearly ready to create a new book, that will test it more thoroughly with much more editing. Yes, I've been running the earlier 2.7.5 appimage for a couple of weeks or so with no problems. |
|
|
|
|
|
|
#32 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,115
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for getting back to us. This is exactly the kind of thing we were trying to account for with these release candidates. Better to find them now, than an hour after an official release!
|
|
|
|
| Advert | |
|
|
|
|
#33 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
@DiapDealer,
And as BeckyEbook pointed out the src/Dialogs/ClipboardHistorySelector was made non-modal and so it has that extra min window hint recently added too. When you revert those other two, you may want to revert it as well, just to check. Those were the only 3 that were recently added. The About box was never touched. The fact that it added a minimze button too under Windows is very strange. So you might want to comment out my attempt to forcibly remove that hint if present first just to check as it should not have been impacted by the changes made for the other 3 were. The MainWindow should automatically gets the min and max enabled. Is that min button appearing someplace besides the About Box that it was not meant too? Last edited by KevinH; Yesterday at 03:42 PM. |
|
|
|
|
|
#34 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,115
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The min and max button are appearing on every single dialog that Sigil has on Windows. It's not just the About box that got it. Preferences, Metadata Editor, Edit ToC, Manage Checkpoints, Manage Automations, Plugin Runner, ... you name it. Every dialog (modal or non-) that Sigil can display suddenly has a working min, max, close button-box. That's not how it ever was before. I installed the official 2.7.0 to be sure.
Last edited by DiapDealer; Yesterday at 03:54 PM. |
|
|
|
|
|
#35 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,380
Karma: 178402650
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I just compiled the latest from the Sigil Github with the comment about attempting to remove the min/max buttons from the About box. It and every other dialog I opened had min/max/exit buttons.
Last edited by DNSB; Yesterday at 04:03 PM. |
|
|
|
| Advert | |
|
|
|
|
#36 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 947
Karma: 3501230
Join Date: Jan 2017
Location: Poland
Device: Various
|
Today, I made over 30 Sigil builds with the About dialog test. I think this code works:
Code:
setWindowFlags(windowFlags() | Qt::CustomizeWindowHint);
setWindowFlag(Qt::WindowMinimizeButtonHint, false);
setWindowFlag(Qt::WindowMaximizeButtonHint, false);
setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, true);
|
|
|
|
|
|
#37 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
But what does the Qt::MSWindowsFixedSizeDialogHint, true do? All Sigil dialogs should be resizable. Can you still resize the About Box after your change? If we use that flag on the other dialogs will it force them to be non-resizeable?
|
|
|
|
|
|
#38 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
Quote:
Perhaps they just introduced a bug? |
|
|
|
|
|
|
#39 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,115
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It was my suspicion that the Qt::CustomizeWindowHint flag needed to be added everywhere the default was being overridden. I'm not ready to blame Qt6.10.x yet. The first of these custom window flags were added only 3 weeks ago. I suspect the same thing would have happened had we used them in conjunction with Qt6.9.3. I probably never would have noticed new min/max buttons on dialogs unless someone had said something.
I still don't think we need to blunt-force the About box (and every other modal dialog that now has min/max buttons). I think we just need to properly add the Qt::CustomizeWindowHint flag to all three of the original places we added the new code. Every place I've looked said that flag needs to used when customizing the buttons you want to appear on dialogs. And we currently are not using it. Last edited by DiapDealer; Yesterday at 04:17 PM. |
|
|
|
|
|
#40 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
Here is an official Qt bug about it. It was caused by a broken change in Qt not anything we did.
QTBUG-143832 https://qt-project.atlassian.net/iss...e=QTBUG-143832 According to that bug, it was introduced in a change from Qt 6.10.1 to Qt 6.10.2 here: https://codereview.qt-project.org/c/...dowswindow.cpp Last edited by KevinH; Yesterday at 04:33 PM. |
|
|
|
|
|
#41 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,380
Karma: 178402650
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I just tried @BeckyEbook's code and it left the About box with just the exit button! I then tried it in a couple of other spots and it seems to remove the min/max buttons.
|
|
|
|
|
|
#42 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
And here is the official Qt patch to the qtbase 6.10 branch to fix this that will be used in the future Qt 6.10.3:
https://github.com/qt/qtbase/commit/...23e6f1c26fb1f7 @DiapDealer, How hard would it be to cherry pick this commit just for the windows Qtbase build. It only impacts the windows platform plugin so that is the only part that would need to be rebuilt. This might be the easiest solution if it is doable, as it would require no code changes in Sigil. Last edited by KevinH; Yesterday at 04:41 PM. |
|
|
|
|
|
#43 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,393
Karma: 6686152
Join Date: Nov 2009
Device: many
|
|
|
|
|
|
|
#44 |
|
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,852
Karma: 8006346
Join Date: Mar 2015
Device: Kindle, iOS
|
|
|
|
|
|
|
#45 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,380
Karma: 178402650
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
No, the Reports and SpellCheck windows do not resize. Not sure if About ever did but current version is fixed size.
Edit: Removed the setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, true); line and all three boxes are resizable. The minimize button is still visible but does nothing. The maximize box maximizes and exit exits. However, I suspect that regenerating Qt 6.10.2 with the patch would be the best way to go. Last edited by DNSB; Yesterday at 05:18 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| release candidate 0.2-rc6 | lunohod | OpenInkpot | 0 | 12-04-2009 06:24 PM |
| release candidate 0.2-rc5 | dottedmag | OpenInkpot | 50 | 12-04-2009 05:44 AM |
| release candidate 0.2-rc4 | dottedmag | OpenInkpot | 10 | 11-12-2009 01:35 PM |
| release candidate 0.2-rc3 | dottedmag | OpenInkpot | 10 | 11-05-2009 03:18 AM |
| release candidate 0.2-rc1 | dottedmag | OpenInkpot | 36 | 10-18-2009 01:07 AM |