Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/newftpgui.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
147 | QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); | 147 | QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); | ||
148 | okButton->setText(i18n("&Connect")); | 148 | okButton->setText(i18n("&Connect")); | ||
149 | okButton->setDefault(true); | 149 | okButton->setDefault(true); | ||
150 | okButton->setShortcut(Qt::CTRL | Qt::Key_Return); | 150 | okButton->setShortcut(Qt::CTRL | Qt::Key_Return); | ||
151 | 151 | | |||
152 | connect(buttonBox, &QDialogButtonBox::accepted, this, &newFTPGUI::accept); | 152 | connect(buttonBox, &QDialogButtonBox::accepted, this, &newFTPGUI::accept); | ||
153 | connect(buttonBox, &QDialogButtonBox::rejected, this, &newFTPGUI::reject); | 153 | connect(buttonBox, &QDialogButtonBox::rejected, this, &newFTPGUI::reject); | ||
154 | 154 | | |||
155 | connect(prefix, QOverload<const QString &>::of(&KComboBox::activated), this, &newFTPGUI::slotTextChanged); | 155 | connect(prefix, static_cast<void (KComboBox::*)(const QString &)>(&KComboBox::activated), | ||
156 | connect(url, QOverload<const QString &>::of(&KHistoryComboBox::activated), url, &KHistoryComboBox::addToHistory); | 156 | this, &newFTPGUI::slotTextChanged); | ||
157 | connect(url, static_cast<void (KHistoryComboBox::*)(const QString &)>(&KHistoryComboBox::activated), | ||||
158 | url, &KHistoryComboBox::addToHistory); | ||||
157 | 159 | | |||
158 | if(!lastUsedProtocol.isEmpty()) { | 160 | if(!lastUsedProtocol.isEmpty()) { | ||
159 | // update the port field | 161 | // update the port field | ||
160 | slotTextChanged(lastUsedProtocol); | 162 | slotTextChanged(lastUsedProtocol); | ||
161 | } | 163 | } | ||
162 | 164 | | |||
163 | setTabOrder(url, username); | 165 | setTabOrder(url, username); | ||
164 | setTabOrder(username, password); | 166 | setTabOrder(username, password); | ||
Show All 39 Lines |