Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/profilewizard.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 266 | { | |||
---|---|---|---|---|---|
267 | stellarMateDetectDialog = new QProgressDialog(this); | 267 | stellarMateDetectDialog = new QProgressDialog(this); | ||
268 | stellarMateDetectDialog->setMinimum(0); | 268 | stellarMateDetectDialog->setMinimum(0); | ||
269 | stellarMateDetectDialog->setMaximum(0); | 269 | stellarMateDetectDialog->setMaximum(0); | ||
270 | stellarMateDetectDialog->setWindowTitle(i18n("Detecting StellarMate...")); | 270 | stellarMateDetectDialog->setWindowTitle(i18n("Detecting StellarMate...")); | ||
271 | stellarMateDetectDialog->setLabelText(i18n("Please wait while searching for StellarMate...")); | 271 | stellarMateDetectDialog->setLabelText(i18n("Please wait while searching for StellarMate...")); | ||
272 | 272 | | |||
273 | stellarMateDetectDialog->show(); | 273 | stellarMateDetectDialog->show(); | ||
274 | 274 | | |||
275 | connect(stellarMateDetectDialog, &QProgressDialog::canceled, [&]() | 275 | connect(stellarMateDetectDialog.data(), &QProgressDialog::canceled, [&]() | ||
276 | { | 276 | { | ||
277 | qMDNS::getInstance()->disconnect(); | 277 | qMDNS::getInstance()->disconnect(); | ||
278 | }); | 278 | }); | ||
279 | connect(qMDNS::getInstance(), SIGNAL(hostFound(QHostInfo)), this, SLOT(processHostInfo(QHostInfo))); | 279 | connect(qMDNS::getInstance(), SIGNAL(hostFound(QHostInfo)), this, SLOT(processHostInfo(QHostInfo))); | ||
280 | QTimer::singleShot(120*1000, this, SLOT(detectStellarMateTimeout())); | 280 | QTimer::singleShot(120*1000, this, SLOT(detectStellarMateTimeout())); | ||
281 | 281 | | |||
282 | qMDNS::getInstance()->lookup("stellarmate"); | 282 | qMDNS::getInstance()->lookup("stellarmate"); | ||
283 | } | 283 | } | ||
Show All 16 Lines |