|
a/src/qtgui/restable.cpp |
|
b/src/qtgui/restable.cpp |
|
... |
|
... |
444 |
// and a way to pass an indicator from data(), a bit more
|
444 |
// and a way to pass an indicator from data(), a bit more
|
445 |
// difficult. Anyway, the display seems fast enough as is.
|
445 |
// difficult. Anyway, the display seems fast enough as is.
|
446 |
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
446 |
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
447 |
const QModelIndex &index) const
|
447 |
const QModelIndex &index) const
|
448 |
{
|
448 |
{
|
449 |
QStyleOptionViewItemV4 opt = option;
|
449 |
QStyleOptionViewItem opt = option;
|
450 |
initStyleOption(&opt, index);
|
450 |
initStyleOption(&opt, index);
|
451 |
QVariant value = index.data(Qt::DisplayRole);
|
451 |
QVariant value = index.data(Qt::DisplayRole);
|
452 |
if (value.isValid() && !value.isNull()) {
|
452 |
if (value.isValid() && !value.isNull()) {
|
453 |
QString text = value.toString();
|
453 |
QString text = value.toString();
|
454 |
if (!text.isEmpty()) {
|
454 |
if (!text.isEmpty()) {
|