QStyleHelper: Remove unused function setWidgetSizePolicy()

This used to be public back when QMacStyle had public API.
Long replaced by the WA_Mac*Size attributes.

Change-Id: Ifd948e648ec90ff29b6b3652bc9d5cb1dc9c6a09
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Gabriel de Dietrich 2018-02-05 20:44:46 -08:00
parent e843e3bb00
commit c4e41fa534
2 changed files with 0 additions and 9 deletions

View File

@ -411,14 +411,6 @@ QWindow *styleObjectWindow(QObject *so)
return 0;
}
void setWidgetSizePolicy(const QWidget *widget, WidgetSizePolicy policy)
{
QWidget *wadget = const_cast<QWidget *>(widget);
wadget->setAttribute(Qt::WA_MacNormalSize, policy == SizeLarge);
wadget->setAttribute(Qt::WA_MacSmallSize, policy == SizeSmall);
wadget->setAttribute(Qt::WA_MacMiniSize, policy == SizeMini);
}
WidgetSizePolicy widgetSizePolicy(const QWidget *widget, const QStyleOption *opt)
{
while (widget) {

View File

@ -94,7 +94,6 @@ namespace QStyleHelper
enum WidgetSizePolicy { SizeLarge = 0, SizeSmall = 1, SizeMini = 2, SizeDefault = -1 };
void setWidgetSizePolicy(const QWidget *w, WidgetSizePolicy policy);
Q_WIDGETS_EXPORT WidgetSizePolicy widgetSizePolicy(const QWidget *w, const QStyleOption *opt = 0);
}