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

Method connectToServer

client/selectionmodelclient.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void SelectionModelClient::connectToServer()
53{
54 if (m_myAddress == Protocol::InvalidObjectAddress)
55 return;
56 Client::instance()->registerMessageHandler(m_myAddress, this, "newMessage");
57 // There can be some delay between the selection model is created and its connections went done in the UI part.
58 // So, let delay the request a bit, not perfect but can help.
59 // Probably a better way would be to consider some GammaRay::Message to be pendable and put them in a pool
60 // to be handled again later.
61 // connectionEstablished does not seems to help here (bader).
62 QTimer::singleShot(125, this, &SelectionModelClient::requestSelection);
63}
64
65void SelectionModelClient::timeout()
66{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected