source: tspsg/src/bb10proxystyle.cpp @ aa64ad4082

0.1.4.170-beta2-bb10
Last change on this file since aa64ad4082 was aa64ad4082, checked in by Oleksii Serdiuk, 11 years ago

Added proxy style and stylesheet to fix some UI issues on BlackBerry?.

Also, removed style selection option because most styles have UI issues
and removed About Qt menu item because About Qt dialog is too big.

  • Property mode set to 100644
File size: 757 bytes
Line 
1#include "bb10proxystyle.h"
2
3BB10ProxyStyle::BB10ProxyStyle(QStyle *style)
4    : QProxyStyle(style) {}
5
6int 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
20int 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.