| 259 | } |
| 260 | |
| 261 | void DialogAgent::AddExAgents(const QStringList &agents, const QMap<QString, AxUI> &uis) |
| 262 | { |
| 263 | agentCombobox->clear(); |
| 264 | |
| 265 | this->agents = agents; |
| 266 | this->ax_uis = uis; |
| 267 | |
| 268 | for (auto agent : agents) { |
| 269 | auto ax_ui = &this->ax_uis[agent]; |
| 270 | ax_ui->widget->setParent(nullptr); |
| 271 | ax_ui->widget->setParent(this); |
| 272 | ax_ui->container->setParent(nullptr); |
| 273 | ax_ui->container->setParent(this); |
| 274 | |
| 275 | configStackWidget->addWidget(ax_ui->widget); |
| 276 | |
| 277 | agentCombobox->addItem(agent); |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | void DialogAgent::SetProfile(const AuthProfile &profile) |
| 282 | { |
no test coverage detected