equal
deleted
inserted
replaced
253 \row \o \l Qt::AccessibleTextRole \o QString |
253 \row \o \l Qt::AccessibleTextRole \o QString |
254 \endomit |
254 \endomit |
255 \row \o \l Qt::BackgroundRole \o QBrush |
255 \row \o \l Qt::BackgroundRole \o QBrush |
256 \row \o \l Qt::BackgroundColorRole \o QColor (obsolete; use Qt::BackgroundRole instead) |
256 \row \o \l Qt::BackgroundColorRole \o QColor (obsolete; use Qt::BackgroundRole instead) |
257 \row \o \l Qt::CheckStateRole \o Qt::CheckState |
257 \row \o \l Qt::CheckStateRole \o Qt::CheckState |
258 \row \o \l Qt::DecorationRole \o QIcon and QColor |
258 \row \o \l Qt::DecorationRole \o QIcon, QPixmap and QColor |
259 \row \o \l Qt::DisplayRole \o QString and types with a string representation |
259 \row \o \l Qt::DisplayRole \o QString and types with a string representation |
260 \row \o \l Qt::EditRole \o See QItemEditorFactory for details |
260 \row \o \l Qt::EditRole \o See QItemEditorFactory for details |
261 \row \o \l Qt::FontRole \o QFont |
261 \row \o \l Qt::FontRole \o QFont |
262 \row \o \l Qt::SizeHintRole \o QSize |
262 \row \o \l Qt::SizeHintRole \o QSize |
263 \omit |
263 \omit |
1057 painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); |
1057 painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); |
1058 painter.fillRect(0, 0, img.width(), img.height(), color); |
1058 painter.fillRect(0, 0, img.width(), img.height(), color); |
1059 painter.end(); |
1059 painter.end(); |
1060 |
1060 |
1061 QPixmap selected = QPixmap(QPixmap::fromImage(img)); |
1061 QPixmap selected = QPixmap(QPixmap::fromImage(img)); |
1062 int n = (img.numBytes() >> 10) + 1; |
1062 int n = (img.byteCount() >> 10) + 1; |
1063 if (QPixmapCache::cacheLimit() < n) |
1063 if (QPixmapCache::cacheLimit() < n) |
1064 QPixmapCache::setCacheLimit(n); |
1064 QPixmapCache::setCacheLimit(n); |
1065 |
1065 |
1066 QPixmapCache::insert(key, selected); |
1066 QPixmapCache::insert(key, selected); |
1067 pm = QPixmapCache::find(key); |
1067 pm = QPixmapCache::find(key); |