appveyorimgbotreadme
Rev | Line | |
---|
[7ed8b57eea] | 1 | #include "bb10proxystyle.h" |
---|
| 2 | |
---|
| 3 | BB10ProxyStyle::BB10ProxyStyle(QStyle *style) |
---|
| 4 | : QProxyStyle(style) {} |
---|
| 5 | |
---|
| 6 | int BB10ProxyStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const |
---|
| 7 | { |
---|
| 8 | switch (metric) { |
---|
| 9 | case QStyle::PM_ButtonIconSize: |
---|
| 10 | return 42; |
---|
| 11 | case QStyle::PM_SmallIconSize: |
---|
| 12 | return 42; |
---|
| 13 | case QStyle::PM_LargeIconSize: |
---|
| 14 | return 64; |
---|
| 15 | default: |
---|
| 16 | return QProxyStyle::pixelMetric(metric, option, widget); |
---|
| 17 | } |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | int BB10ProxyStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const |
---|
| 21 | { |
---|
| 22 | if (hint == QStyle::SH_UnderlineShortcut) |
---|
| 23 | return 0; |
---|
| 24 | return QProxyStyle::styleHint(hint, option, widget, returnData); |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.