Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qstylesheetstyle.cpp

    r651 r769  
    15341534    if (defaultCacheIt == styleSheetCache->constEnd()) {
    15351535        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);
    15371539    } else {
    15381540        defaultSs = defaultCacheIt.value();
     
    26592661    styleSheetCache->remove((const QWidget *)o);
    26602662    autoFillDisabledWidgets->remove((const QWidget *)o);
     2663
     2664
     2665
     2666
     2667
    26612668}
    26622669
     
    42434250            const QAbstractScrollAreaPrivate *sap = sa->d_func();
    42444251            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            }
    42474261            break;
    42484262        }
     
    46284642            return msz.width() == -1 ? msz.height() : msz.width();
    46294643        }
     4644
     4645
     4646
     4647
     4648
    46304649        break;
    46314650#endif // QT_NO_SCROLLBAR
     
    57445763                                   }
    57455764
     5765
     5766
     5767
     5768
     5769
     5770
     5771
    57465772    default:
    57475773        break;
Note: See TracChangeset for help on using the changeset viewer.