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/itemviews/qitemdelegate.cpp

    r651 r769  
    10341034    }
    10351035
    1036     return QString::fromUtf16(ptr, int(&arr[sizeof(arr) / sizeof(ushort)] - ptr));
     1036    return QString((const QChar *)ptr, int(&arr[sizeof(arr) / sizeof(ushort)] - ptr));
    10371037}
    10381038
     
    12981298    }
    12991299
    1300     Qt::CheckState state;
    1301     if ( flags & Qt::ItemIsTristate ) {
    1302         state = static_cast<Qt::CheckState>( (value.toInt() + 1) % 3 );
    1303     } else {
    1304         state = (static_cast<Qt::CheckState>(value.toInt()) == Qt::Checked
     1300    Qt::CheckState state = (static_cast<Qt::CheckState>(value.toInt()) == Qt::Checked
    13051301                            ? Qt::Unchecked : Qt::Checked);
    1306     }
    1307 
    13081302    return model->setData(index, state, Qt::CheckStateRole);
    13091303}
Note: See TracChangeset for help on using the changeset viewer.