mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
calibre GUI style: Dont show an arrow for tool buttons set to instant popup mode
This commit is contained in:
parent
b078ab5b51
commit
9eaf93e06c
@ -8148,7 +8148,8 @@ void Style::drawComplexControl(ComplexControl control, const QStyleOptionComplex
|
||||
drawControl(CE_ToolButtonLabel, &label, painter, widget);
|
||||
|
||||
if (!(toolbutton->subControls&SC_ToolButtonMenu) &&
|
||||
(toolbutton->features&QStyleOptionToolButton::HasMenu))
|
||||
(toolbutton->features&QStyleOptionToolButton::HasMenu &&
|
||||
toolbutton->features & QStyleOptionToolButton::PopupDelay))
|
||||
{
|
||||
QRect arrow(r.right()-(LARGE_ARR_WIDTH+(etched ? 3 : 2)),
|
||||
r.bottom()-(LARGE_ARR_HEIGHT+(etched ? 4 : 3)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user