int MyStyle
::pixelMetric(PixelMetric metric,
const QStyleOption* option,
const QWidget* widget
) const {
if (metric == PM_ScrollBarExtent)
return 45;
return ProxyStyle::pixelMetric(metric, option, widget);
}
{
if (type
== QStyle::CT_ScrollBar) return contentsSize;
return ProxyStyle::sizeFromContents(type, option, contentsSize, widget);
}
int MyStyle::pixelMetric(PixelMetric metric, const QStyleOption* option, const QWidget* widget) const
{
if (metric == PM_ScrollBarExtent)
return 45;
return ProxyStyle::pixelMetric(metric, option, widget);
}
QSize MyStyle::sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& contentsSize, const QWidget* widget) const
{
if (type == QStyle::CT_ScrollBar)
return contentsSize;
return ProxyStyle::sizeFromContents(type, option, contentsSize, widget);
}
To copy to clipboard, switch view to plain text mode
Bookmarks