Changeset View
Changeset View
Standalone View
Standalone View
vpn/ssh/sshwidget.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | { | 48 | { | ||
49 | Q_D(SshSettingWidget); | 49 | Q_D(SshSettingWidget); | ||
50 | d->ui.setupUi(this); | 50 | d->ui.setupUi(this); | ||
51 | 51 | | |||
52 | d->setting = setting; | 52 | d->setting = setting; | ||
53 | 53 | | |||
54 | d->ui.le_password->setPasswordOptionsEnabled(true); | 54 | d->ui.le_password->setPasswordOptionsEnabled(true); | ||
55 | 55 | | |||
56 | connect(d->ui.cmb_authType, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &SshSettingWidget::authTypeChanged); | 56 | connect(d->ui.cmb_authType, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &SshSettingWidget::authTypeChanged); | ||
57 | connect(d->ui.btn_advancedOption, &QPushButton::clicked, this, &SshSettingWidget::doAdvancedDialog); | 57 | connect(d->ui.btn_advancedOption, &QPushButton::clicked, this, &SshSettingWidget::doAdvancedDialog); | ||
58 | 58 | | |||
59 | d->advancedDlg = new QDialog(this); | 59 | d->advancedDlg = new QDialog(this); | ||
60 | d->advancedDlg->setModal(true); | 60 | d->advancedDlg->setModal(true); | ||
61 | d->advancedWid = new QWidget(this); | 61 | d->advancedWid = new QWidget(this); | ||
62 | d->advUi.setupUi(d->advancedWid); | 62 | d->advUi.setupUi(d->advancedWid); | ||
63 | QVBoxLayout *layout = new QVBoxLayout(d->advancedDlg); | 63 | QVBoxLayout *layout = new QVBoxLayout(d->advancedDlg); | ||
64 | layout->addWidget(d->advancedWid); | 64 | layout->addWidget(d->advancedWid); | ||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |