Changeset 769 for trunk/src/gui/styles/qstylesheetstyle.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/styles/qstylesheetstyle.cpp
r651 r769 1534 1534 if (defaultCacheIt == styleSheetCache->constEnd()) { 1535 1535 defaultSs = getDefaultStyleSheet(); 1536 styleSheetCache->insert(baseStyle(), defaultSs); 1536 QStyle *bs = baseStyle(); 1537 styleSheetCache->insert(bs, defaultSs); 1538 QObject::connect(bs, SIGNAL(destroyed(QObject*)), this, SLOT(styleDestroyed(QObject*)), Qt::UniqueConnection); 1537 1539 } else { 1538 1540 defaultSs = defaultCacheIt.value(); … … 2659 2661 styleSheetCache->remove((const QWidget *)o); 2660 2662 autoFillDisabledWidgets->remove((const QWidget *)o); 2663 2664 2665 2666 2667 2661 2668 } 2662 2669 … … 4243 4250 const QAbstractScrollAreaPrivate *sap = sa->d_func(); 4244 4251 rule.drawBackground(p, opt->rect, sap->contentsOffset()); 4245 if (rule.hasBorder()) 4246 rule.drawBorder(p, rule.borderRect(opt->rect)); 4252 if (rule.hasBorder()) { 4253 QRect brect = rule.borderRect(opt->rect); 4254 if (styleHint(QStyle::SH_ScrollView_FrameOnlyAroundContents, opt, w)) { 4255 QRect r = brect.adjusted(0, 0, sa->verticalScrollBar()->isVisible() ? -sa->verticalScrollBar()->width() : 0, 4256 sa->horizontalScrollBar()->isVisible() ? -sa->horizontalScrollBar()->height() : 0); 4257 brect = QStyle::visualRect(opt->direction, brect, r); 4258 } 4259 rule.drawBorder(p, brect); 4260 } 4247 4261 break; 4248 4262 } … … 4628 4642 return msz.width() == -1 ? msz.height() : msz.width(); 4629 4643 } 4644 4645 4646 4647 4648 4630 4649 break; 4631 4650 #endif // QT_NO_SCROLLBAR … … 5744 5763 } 5745 5764 5765 5766 5767 5768 5769 5770 5771 5746 5772 default: 5747 5773 break;
Note:
See TracChangeset
for help on using the changeset viewer.