Changeset View
Changeset View
Standalone View
Standalone View
kcm/kcm.cpp
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 67 | { | |||
---|---|---|---|---|---|
180 | 180 | | |||
181 | // Initialize first scan and then scan every 15 seconds | 181 | // Initialize first scan and then scan every 15 seconds | ||
182 | m_handler->requestScan(); | 182 | m_handler->requestScan(); | ||
183 | 183 | | |||
184 | m_timer = new QTimer(this); | 184 | m_timer = new QTimer(this); | ||
185 | m_timer->setInterval(15000); | 185 | m_timer->setInterval(15000); | ||
186 | connect(m_timer, &QTimer::timeout, [this] () { | 186 | connect(m_timer, &QTimer::timeout, [this] () { | ||
187 | m_handler->requestScan(); | 187 | m_handler->requestScan(); | ||
188 | m_timer->start(); | | |||
189 | }); | 188 | }); | ||
190 | m_timer->start(); | 189 | m_timer->start(); | ||
191 | } | 190 | } | ||
192 | 191 | | |||
193 | KCMNetworkmanagement::~KCMNetworkmanagement() | 192 | KCMNetworkmanagement::~KCMNetworkmanagement() | ||
194 | { | 193 | { | ||
195 | delete m_handler; | 194 | delete m_handler; | ||
196 | if (m_tabWidget) { | 195 | if (m_tabWidget) { | ||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |