Fix build without features.menu
Change-Id: If7947839b8da5abc8ee84aace60cc7de7a053e04 Pick-to: 6.0 6.1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
385e242ba9
commit
d84bf703b5
@ -599,13 +599,6 @@ void QPushButton::showMenu()
|
||||
d->_q_popupPressed();
|
||||
}
|
||||
|
||||
void QPushButtonPrivate::init()
|
||||
{
|
||||
Q_Q(QPushButton);
|
||||
q->setAttribute(Qt::WA_MacShowFocusRect);
|
||||
resetLayoutItemMargins();
|
||||
}
|
||||
|
||||
void QPushButtonPrivate::_q_popupPressed()
|
||||
{
|
||||
Q_Q(QPushButton);
|
||||
@ -670,6 +663,13 @@ QPoint QPushButtonPrivate::adjustedMenuPosition()
|
||||
|
||||
#endif // QT_CONFIG(menu)
|
||||
|
||||
void QPushButtonPrivate::init()
|
||||
{
|
||||
Q_Q(QPushButton);
|
||||
q->setAttribute(Qt::WA_MacShowFocusRect);
|
||||
resetLayoutItemMargins();
|
||||
}
|
||||
|
||||
void QPushButtonPrivate::resetLayoutItemMargins()
|
||||
{
|
||||
Q_Q(QPushButton);
|
||||
|
Loading…
Reference in New Issue
Block a user