def get_qt_data_keys(num_keys):
    assert ((num_keys <= 255) and 'too many keys queried')
    possible_keys = range(256)
    used_keys = list(map(int, [QtCore.Qt.CheckStateRole, QtCore.Qt.DecorationRole, QtCore.Qt.AccessibleDescriptionRole, QtCore.Qt.AccessibleTextRole, QtCore.Qt.BackgroundColorRole, QtCore.Qt.BackgroundRole, QtCore.Qt.DisplayRole, QtCore.Qt.EditRole, QtCore.Qt.FontRole, QtCore.Qt.ForegroundRole, QtCore.Qt.InitialSortOrderRole, QtCore.Qt.SizeHintRole, QtCore.Qt.StatusTipRole, QtCore.Qt.TextAlignmentRole, QtCore.Qt.TextColorRole, QtCore.Qt.ToolTipRole, QtCore.Qt.UserRole, QtCore.Qt.WhatsThisRole]))
    (c, keys) = (0, [])
    for key in possible_keys:
        if ((c < num_keys) and (key not in used_keys)):
            keys.append(key)
            c += 1
    return keys
def get_qt_data_keys(num_keys):
    assert ((num_keys <= 255) and 'too many keys queried')
    possible_keys = range(256)
    used_keys = list(map(int, [QtCore.Qt.CheckStateRole, QtCore.Qt.DecorationRole, QtCore.Qt.AccessibleDescriptionRole, QtCore.Qt.AccessibleTextRole, QtCore.Qt.BackgroundColorRole, QtCore.Qt.BackgroundRole, QtCore.Qt.DisplayRole, QtCore.Qt.EditRole, QtCore.Qt.FontRole, QtCore.Qt.ForegroundRole, QtCore.Qt.InitialSortOrderRole, QtCore.Qt.SizeHintRole, QtCore.Qt.StatusTipRole, QtCore.Qt.TextAlignmentRole, QtCore.Qt.TextColorRole, QtCore.Qt.ToolTipRole, QtCore.Qt.UserRole, QtCore.Qt.WhatsThisRole]))
    (c, keys) = (0, [])
    for key in possible_keys:
        if ((c < num_keys) and (key not in used_keys)):
            keys.append(key)
            c += 1
    return keys