Add context object

This commit is contained in:
Nicolas Fella 2019-02-28 14:08:17 +01:00
parent 3ec0008509
commit fc4da13d64

View file

@ -78,7 +78,7 @@ KdeConnectKcm::KdeConnectKcm(QWidget* parent, const QVariantList& args)
//Workaround: If we set this directly (or if we set it in the .ui file), the layout breaks
kcmUi->noDeviceLinks->setWordWrap(false);
QTimer::singleShot(0, [this] { kcmUi->noDeviceLinks->setWordWrap(true); });
QTimer::singleShot(0, this, [this] { kcmUi->noDeviceLinks->setWordWrap(true); });
setWhenAvailable(daemon->announcedName(), [this](const QString& announcedName) {
kcmUi->rename_label->setText(announcedName);