diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-22 23:49:26 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-22 23:49:26 (GMT) |
commit | 510cb9e5b2c4702753685d59f10bb0464b7d9991 (patch) | |
tree | bcfb1856ca70a881c2b7ae821ba3129219a29d4b /src/gui | |
parent | 2d96a16bf563279f418f4e7212f51cb22bfedd63 (diff) | |
parent | 8597e03495f54614e53c6063f1f13077a08109fd (diff) | |
download | Qt-510cb9e5b2c4702753685d59f10bb0464b7d9991.zip Qt-510cb9e5b2c4702753685d59f10bb0464b7d9991.tar.gz Qt-510cb9e5b2c4702753685d59f10bb0464b7d9991.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Improve performance of VGPath creation by reusing the same path
Stabilize QWidget benchmarks.
Stylesheet: Fix size specified in QToolbar::handle
fix crash on Windows CE on WM_SETTINGCHANGE
Stabilize style sheet benchmarks.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 5 | ||||
-rw-r--r-- | src/gui/styles/qstylesheetstyle.cpp | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index 0a4869b..aac834d 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1905,8 +1905,13 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam break; if (!msg.wParam) { +#ifdef Q_WS_WINCE + // On Windows CE, lParam parameter is a constant, not a char pointer. + if (msg.lParam == INI_INTL) { +#else QString area = QString::fromWCharArray((wchar_t*)msg.lParam); if (area == QLatin1String("intl")) { +#endif QLocalePrivate::updateSystemPrivate(); if (!widget->testAttribute(Qt::WA_SetLocale)) widget->dptr()->setLocale_helper(QLocale(), true); diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp index b36294a..c550938 100644 --- a/src/gui/styles/qstylesheetstyle.cpp +++ b/src/gui/styles/qstylesheetstyle.cpp @@ -5743,6 +5743,13 @@ QRect QStyleSheetStyle::subElementRect(SubElement se, const QStyleOption *opt, c return positionRect(w, subRule, subRule2, pe, opt->rect, opt->direction); } +#ifndef QT_NO_TOOLBAR + case SE_ToolBarHandle: + if (hasStyleRule(w, PseudoElement_ToolBarHandle)) + return ParentStyle::subElementRect(se, opt, w); + break; +#endif //QT_NO_TOOLBAR + default: break; } |