07-09-2014, 11:39 AM | #46 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@BR: you need to set extra spacing to add between rows to something negative in Preferences->Look & Feel to reduce row height in Qt 5.
@davidfor: Likely a result of some performance optimizations for column color/icon rules. I've pinged chaley about it, though this is not specific to Qt 5. Last edited by kovidgoyal; 07-09-2014 at 11:52 AM. |
07-09-2014, 12:30 PM | #47 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
rule_icons = self.formatter.safe_format(fmt, self.mi, '', self.mi) Let me know if this fixes it, because if it does I must remove the changes before Friday's release. |
|
07-09-2014, 01:01 PM | #48 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
FYI, I've been using calibre 1.43-64bit and 1.200-32bit on my Win8. That way I have both without a portable install. Just another way to do it.
|
07-09-2014, 04:35 PM | #49 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@davidfor: I found the problem (I hope). Because of the change I made, when using composed icons the first template was used for all subsequent templates. I have submitted a fix to Kovid.
|
07-09-2014, 06:21 PM | #50 | |
null operator (he/him)
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Aside : I don't the like 'flat' look much, in particular in a long list, large file, I find button on the vertical scroll bars harder to discern than the current 'rounded' look. I've noticed this on other 'flat' gui's (eg chrome browser) but I don't use the scroll bar button as much in those programs as I do in calibre book list and editor. @chaley - I have some icons hooked to 'dummy' int fields where the rule is based on other columns
I'm not seeing any of those icons in V1.200 portable Aside : Post 1.43 install I noticed the 'edges' of my icon columns had traces of the column values showing - I didn't report it because I wasn't certain it hadn't always been thus. But on Monday I had cause to look at the L&F->Set icons tab, and I noticed all my icons were set to show icon with text. I'm 'sure' they were all icon with no text. I can believe I might have inadvertently changed one of them, but less so that I would have changed all five. Anyway it was easily fixed - but seeing your response to davidfor I thought I'd mention it. BR |
|
07-09-2014, 10:21 PM | #51 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@BR: Sure. Increased the max to -15. The flat look comes from Qt 5's new Fusion theme, not much I can do about it, short of writing my own Qt 5 theme, which is rather too much work.
|
07-09-2014, 10:44 PM | #52 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
FYI, Generate Cover included:
Code:
from calibre.gui2 import NONE # ... which trunk calibre/gui2/__init__.py defines as: NONE = QVariant() # : Null value to return from the data function of item models Changing NONE to u'' works with qt5, but not with qt4, so I kept the gui2 import when using qt4. Without it, the font family drop list in GC isn't populated. |
07-09-2014, 10:54 PM | #53 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You should be able to return None instead of NONE in both PyQt4 and PyQt5
|
07-09-2014, 11:43 PM | #54 | |
null operator (he/him)
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR "See, I told you we lived on a flat earth. And Mr Google and his friends all agree me," called Saint Bellarmino from his cloud to Galileo Galilei and Nicolaus Copernicus warming their toes by Lucifer's fires. |
|
07-09-2014, 11:56 PM | #55 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
07-10-2014, 02:46 AM | #56 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
07-10-2014, 02:20 PM | #57 |
Grand Sorcerer
Posts: 6,235
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
07-10-2014, 10:57 PM | #58 | |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Unrelated issue: Anybody know the correct replacement for self.setTextColor(Qt.darkGray) on a QTableWidgetItem descendent? I've tryed setting the color on the current QBrush with self.foreground().setColor(Qt.darkGray), but it's not working. |
|
07-10-2014, 11:08 PM | #59 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
setForeground()
|
07-10-2014, 11:20 PM | #60 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre-plugins.com: A resource for plugin developers | GRiker | Development | 2 | 11-19-2014 03:52 PM |
Thank you to Calibre Developers | Happy_Reader | Calibre | 1 | 12-17-2013 10:18 PM |
Thanks Calibre Developers! | TechniSol | Kobo Reader | 3 | 11-19-2012 08:34 PM |
Calibre in a Python 3.2 world, attn: Kovid | Kevin McAleavey | Calibre | 8 | 01-09-2012 05:49 PM |
What device do most calibre developers use? | barium | Calibre | 5 | 01-05-2011 07:23 AM |