Changeset 642 for trunk/src/gui/styles
- Timestamp:
- Mar 6, 2010, 12:32:46 AM (16 years ago)
- Location:
- trunk/src/gui/styles
- Files:
-
- 2 edited
-
qcommonstyle.cpp (modified) (5 diffs)
-
qwindowsstyle.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/styles/qcommonstyle.cpp
r561 r642 89 89 #endif 90 90 91 92 93 94 91 95 QT_BEGIN_NAMESPACE 92 96 … … 3038 3042 if (const QStyleOptionToolBar *tbopt = qstyleoption_cast<const QStyleOptionToolBar *>(opt)) { 3039 3043 if (tbopt->features & QStyleOptionToolBar::Movable) { 3040 ///we need to access the widget here because the style option doesn't 3044 ///we need to access the widget here because the style option doesn't 3041 3045 //have all the information we need (ie. the layout's margin) 3042 3046 const QToolBar *tb = qobject_cast<const QToolBar*>(widget); … … 4668 4672 break; 4669 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4670 4684 case PM_ButtonIconSize: 4671 4685 case PM_SmallIconSize: 4672 4686 ret = int(QStyleHelper::dpiScaled(16.)); 4673 4687 break; 4688 4674 4689 case PM_IconViewIconSize: 4675 4690 ret = proxy()->pixelMetric(PM_LargeIconSize, opt, widget); … … 4677 4692 4678 4693 case PM_LargeIconSize: 4694 4695 4696 4697 4698 4699 4679 4700 ret = int(QStyleHelper::dpiScaled(32.)); 4701 4680 4702 break; 4681 4703 … … 5954 5976 break; 5955 5977 } 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 5956 6050 return icon; 5957 6051 } -
trunk/src/gui/styles/qwindowsstyle.cpp
r561 r642 438 438 439 439 case PM_SmallIconSize: 440 441 442 443 440 444 ret = int(QStyleHelper::dpiScaled(16.)); 441 445 break; 442 446 443 447 case PM_LargeIconSize: 448 449 450 451 444 452 ret = int(QStyleHelper::dpiScaled(32.)); 445 453 break; … … 1390 1398 QPixmap pixmap; 1391 1399 QString pixmapName = QStyleHelper::uniqueName(QLatin1String("$qt_ia-") + QLatin1String(metaObject()->className()), opt, QSize(size, size)) 1392 + QLatin1Char('-') + QString::number(pe); 1400 + QLatin1Char('-') + QString::number(pe); 1393 1401 if (!QPixmapCache::find(pixmapName, pixmap)) { 1394 1402 int border = size/5;
Note:
See TracChangeset
for help on using the changeset viewer.
