diff --git a/src/gui/formstandardfeeddetails.cpp b/src/gui/formstandardfeeddetails.cpp index ecc49a0a8..5c6c2f416 100644 --- a/src/gui/formstandardfeeddetails.cpp +++ b/src/gui/formstandardfeeddetails.cpp @@ -73,12 +73,26 @@ void FormStandardFeedDetails::onDescriptionChanged(const QString &new_descriptio } } +void FormStandardFeedDetails::onUrlChanged(const QString &new_url) { + if (new_url.isEmpty()) { + // New url is well-formed. + } + else if (!new_url.simplified().isEmpty()) { + // New url is not well-formed but is not empty on the other hand. + } + else { + // New url is empty. + } +} + void FormStandardFeedDetails::createConnections() { // General connections. connect(m_ui->m_txtTitle->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(onTitleChanged(QString))); connect(m_ui->m_txtDescription->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(onDescriptionChanged(QString))); + connect(m_ui->m_txtUrl->lineEdit(), SIGNAL(textChanged(QString)), + this, SLOT(onUrlChanged(QString))); // Icon connections. } diff --git a/src/gui/formstandardfeeddetails.h b/src/gui/formstandardfeeddetails.h index 7d0fbc266..f906d2fe1 100644 --- a/src/gui/formstandardfeeddetails.h +++ b/src/gui/formstandardfeeddetails.h @@ -30,6 +30,7 @@ class FormStandardFeedDetails : public QDialog { // Trigerred when title/description changes. void onTitleChanged(const QString &new_title); void onDescriptionChanged(const QString &new_description); + void onUrlChanged(const QString &new_url); protected: void createConnections();