source: tspsg/src/bb10proxystyle.cpp @ 7ed8b57eea

appveyorimgbotreadme
Last change on this file since 7ed8b57eea was 7ed8b57eea, checked in by Oleksii Serdiuk, 11 years ago

[BB10] UI fixes:

  • added proxy style and stylesheet to fix some UI issues on BlackBerry?;
  • removed style selection option because most styles have UI issues and removed About Qt menu item because About Qt dialog is too big;
  • load bigger (128x128) icons on BlackBerry? 10;
  • removed printing related items from menu as there's no printer;
  • made dialogs to be shown maximized;
  • made solution graph smaller;
  • made font smaller;
  • made output text color black;
  • start editing table cells on single tap;
  • don't show keyboard in about dialog.

Cherry-picks from
aa64ad40827cde0a444cd8198b0f3457aa191f8f
95b0ef73dcb4517ac2ae08867494204bbe8d7ea6
ccdffe3a5f84f12fba2e2f19ab249c31f1fcf35d
628500a5d687889823197e476953859d529af4f0

  • 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.