| 50 | } |
| 51 | |
| 52 | void 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 | |
| 65 | void SelectionModelClient::timeout() |
| 66 | { |
nothing calls this directly
no test coverage detected