As far as I remember, I guess the flags are stored in standard item with (Qt::UserRole - 1)