View Single Post
Old 07-20-2022, 06:52 AM   #2553
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaley View Post
These are almost certainly more problems caused by the Qt6 nightmare.

In Qt6 the first one should be:
Code:
    mode=QFileDialog.FileMode.AnyFile
In Qt5 and below it could be:
Code:
    mode=QFileDialog.AnyFile
I don't think I even looked in that file. But, the first will work with calibre 5, or at least the later version.
The first one will work with calibre 5, or at least later releases. The second is needed for
Quote:
The second is yet another Qt6 problem. They changed the name of a method. In plugins I converted I had to do:
Code:
        if using_Qt6:
            self.value_text.setTabStopDistance(24)
        else:
            self.value_text.setTabStopWidth(24)
where "using_Qt6_ is set in the imports:
This is in the common_utils.py that is "common" to all of @kiwidude's plugins and most other plugins are using it as well. I had a look at what @JimmXinu has done and he dropped the line. I think I'll go along with that. The nuisance is how many plugins this is in I might just update them in my code and publish updates when someone notices or I have another change to go. Or in a couple of weeks when things settle down a bit.
davidfor is offline