MCPcopy Create free account
hub / github.com/KDAB/GammaRay / slotCurrentChanged

Method slotCurrentChanged

common/networkselectionmodel.cpp:194–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void NetworkSelectionModel::slotCurrentChanged(const QModelIndex &current,
195 const QModelIndex &previous)
196{
197 Q_UNUSED(previous);
198 if (m_handlingRemoteMessage || !isConnected())
199 return;
200 clearPendingSelection();
201
202 Message msg(m_myAddress, Protocol::SelectionModelCurrent);
203 msg << QItemSelectionModel::Current << Protocol::fromQModelIndex(current);
204 Endpoint::send(msg);
205}
206
207void NetworkSelectionModel::select(const QItemSelection &selection,
208 QItemSelectionModel::SelectionFlags command)

Callers

nothing calls this directly

Calls 1

fromQModelIndexFunction · 0.85

Tested by

no test coverage detected