Changeset View
Changeset View
Standalone View
Standalone View
kcms/keys/select_scheme_dialog.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 58 | for (const QString &res : qAsConst(m_schemes)) { | |||
---|---|---|---|---|---|
65 | } | 65 | } | ||
66 | ui->m_schemes->addItem(name); | 66 | ui->m_schemes->addItem(name); | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | ui->m_schemes->setCurrentIndex(-1); | 69 | ui->m_schemes->setCurrentIndex(-1); | ||
70 | 70 | | |||
71 | ui->m_url->setMode(KFile::LocalOnly | KFile::ExistingOnly); | 71 | ui->m_url->setMode(KFile::LocalOnly | KFile::ExistingOnly); | ||
72 | 72 | | |||
73 | connect(ui->m_schemes, SIGNAL(activated(int)), | 73 | connect(ui->m_schemes, QOverload<int>::of(&KComboBox::activated), | ||
74 | this, SLOT(schemeActivated(int))); | 74 | this, &SelectSchemeDialog::schemeActivated); | ||
75 | connect(ui->m_url->lineEdit(), &QLineEdit::textChanged, | 75 | connect(ui->m_url->lineEdit(), &QLineEdit::textChanged, | ||
76 | this, &SelectSchemeDialog::slotUrlChanged); | 76 | this, &SelectSchemeDialog::slotUrlChanged); | ||
77 | mOkButton->setEnabled(false); | 77 | mOkButton->setEnabled(false); | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | 80 | | |||
81 | SelectSchemeDialog::~SelectSchemeDialog() | 81 | SelectSchemeDialog::~SelectSchemeDialog() | ||
82 | { | 82 | { | ||
Show All 20 Lines |