Remove already-set option style feature for QCommandLinkButton
The QStyleOptionButton::CommandLinkButton feature is already set in the QComnandLinkButton's initStyleOption() so remove its setting in the paintEvent. Change-Id: Ic1d723c0671d6d478825d7ba2173db72a8b39c36 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
0e8b626401
commit
903087d361
@ -356,8 +356,6 @@ void QCommandLinkButton::paintEvent(QPaintEvent *)
|
||||
QStyleOptionButton option;
|
||||
initStyleOption(&option);
|
||||
|
||||
//Enable command link appearance on Vista
|
||||
option.features |= QStyleOptionButton::CommandLinkButton;
|
||||
option.text = QString();
|
||||
option.icon = QIcon(); //we draw this ourselves
|
||||
QSize pixmapSize = icon().actualSize(iconSize());
|
||||
|
Loading…
x
Reference in New Issue
Block a user