added protocol settings pages and models for openvpn, cloak and shadowsocks

This commit is contained in:
vladimir.kuznetsov 2023-07-13 11:29:26 +09:00
parent a97417fd38
commit c13b9754eb
42 changed files with 2130 additions and 576 deletions

View file

@ -22,14 +22,8 @@ QVariant LanguageModel::data(const QModelIndex &index, int role) const
}
switch (role) {
case NameRole: {
return m_availableLanguages[index.row()].name;
break;
}
case IndexRole: {
return static_cast<int>(m_availableLanguages[index.row()].index);
break;
}
case NameRole: return m_availableLanguages[index.row()].name;
case IndexRole: return static_cast<int>(m_availableLanguages[index.row()].index);
}
return QVariant();
}