mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:13:13 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue