ShareConfig::ShareConfig(QWidget *parent, const QVariantList &args)
: KdeConnectPluginKcm(parent, args, QStringLiteral("kdeconnect_share"))
, m_ui(new Ui::ShareConfigUi())
{
m_ui->setupUi(this);
// xgettext:no-c-format
m_ui->commentLabel->setTextFormat(Qt::RichText);
m_ui->commentLabel->setText(i18n("%1 in the path will be replaced with the specific device name."));
connect(m_ui->kurlrequester, SIGNAL(textChanged(QString)), this, SLOT(changed()));
}
This constructor builds a share config object and sets the parent widget and sets the comment label to be translated with % 1 in the path. It also connects the signal signal 'changed'.