2 #include <QLuaCompleter>
6 #include <QStringListModel>
15 Q_INIT_RESOURCE(qcodeeditor_resources);
16 QFile fl(
":/languages/lua.xml");
18 if (!fl.open(QIODevice::ReadOnly))
30 auto keys = language.
keys();
31 for (
auto&& key : keys)
33 auto names = language.
names(key);
37 setModel(
new QStringListModel(list,
this));
38 setCompletionColumn(0);
39 setModelSorting(QCompleter::CaseInsensitivelySortedModel);
40 setCaseSensitivity(Qt::CaseSensitive);