Add range judge in GeneralListModel::index method