MCPcopy Create free account
hub / github.com/KDE/kdevelop / locationChanged

Method locationChanged

kdevplatform/shell/projectsourcepage.cpp:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void ProjectSourcePage::locationChanged()
259{
260 Q_ASSERT(m_locationWidget);
261 if(m_locationWidget->isCorrect()) {
262 QString currentUrl = m_ui->workingDir->text();
263 currentUrl.truncate(currentUrl.lastIndexOf(QLatin1Char('/'))+1);
264
265 QUrl current = QUrl::fromUserInput(currentUrl + m_locationWidget->projectName());
266 m_ui->workingDir->setUrl(current);
267 }
268 else
269 reevaluateCorrection();
270}
271
272void ProjectSourcePage::projectChanged(const QString& name)
273{

Callers

nothing calls this directly

Calls 4

isCorrectMethod · 0.45
textMethod · 0.45
projectNameMethod · 0.45
setUrlMethod · 0.45

Tested by

no test coverage detected