Changeset View
Changeset View
Standalone View
Standalone View
vcs/widgets/standardvcslocationwidget.cpp
Show All 31 Lines | 31 | { | |||
---|---|---|---|---|---|
32 | setLayout(new QVBoxLayout(this)); | 32 | setLayout(new QVBoxLayout(this)); | ||
33 | m_urlWidget = new KUrlRequester(this); | 33 | m_urlWidget = new KUrlRequester(this); | ||
34 | m_urlWidget->setPlaceholderText(i18n("Enter the repository URL...")); | 34 | m_urlWidget->setPlaceholderText(i18n("Enter the repository URL...")); | ||
35 | layout()->addWidget(m_urlWidget); | 35 | layout()->addWidget(m_urlWidget); | ||
36 | 36 | | |||
37 | connect(m_urlWidget, &KUrlRequester::textChanged, this, &StandardVcsLocationWidget::textChanged); | 37 | connect(m_urlWidget, &KUrlRequester::textChanged, this, &StandardVcsLocationWidget::textChanged); | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | void StandardVcsLocationWidget::setLocation(const QUrl& remoteLocation) | ||||
41 | { | ||||
42 | setUrl(remoteLocation); | ||||
43 | } | ||||
44 | | ||||
45 | void StandardVcsLocationWidget::setUrl(const QUrl& url) | ||||
46 | { | ||||
47 | m_urlWidget->setUrl(url); | ||||
48 | } | ||||
49 | | ||||
40 | QUrl StandardVcsLocationWidget::url() const | 50 | QUrl StandardVcsLocationWidget::url() const | ||
41 | { | 51 | { | ||
42 | return m_urlWidget->url(); | 52 | return m_urlWidget->url(); | ||
43 | } | 53 | } | ||
44 | 54 | | |||
45 | VcsLocation StandardVcsLocationWidget::location() const | 55 | VcsLocation StandardVcsLocationWidget::location() const | ||
46 | { | 56 | { | ||
47 | VcsLocation v(m_urlWidget->url()); | 57 | VcsLocation v(m_urlWidget->url()); | ||
Show All 17 Lines |