MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotRunning

Method slotRunning

App/Client/mainwindow.cpp:1164–1198  ·  view source on GitHub ↗

[MainWindow slotRunning] ! * \brief When connected. enable accept keyboard and mouse event in view */

Source from the content-addressed store, hash-verified

1162 * \brief When connected. enable accept keyboard and mouse event in view
1163 */
1164void MainWindow::slotRunning()
1165{
1166 COperate* p = qobject_cast<COperate*>(sender());
1167 if(!p) return;
1168
1169 /* If you put it here, when running, the view is not displayed.
1170 So put it in the Start() display view.
1171 See: Start(COperate *p, bool set, QString szFile)
1172 */
1173 /*
1174 if(-1 == m_Operates.indexOf(p)) {
1175 m_Operates.push_back(p);
1176 if(m_pView)
1177 {
1178 m_pView->AddView(p->GetViewer());
1179 m_pView->SetWidowsTitle(p->GetViewer(), p->Name(), p->Icon(), p->Description());
1180 }
1181 } else {
1182 m_pView->SetCurrentView(p->GetViewer());
1183 }
1184 //*/
1185
1186 slotCurrentViewChanged(p->GetViewer());
1187
1188 auto m = p->GetMenu();
1189 if(m) {
1190 m->addSeparator();
1191 m->addAction(ui->actionClone);
1192 m->addAction(ui->actionStop_All);
1193 m->addAction(ui->actionStop_other);
1194 }
1195
1196 slotInformation(tr("Connected to ") + "\"" + p->Name() + "\"");
1197 qDebug(log) << Q_FUNC_INFO << p->Name();
1198}
1199//! [MainWindow slotRunning]
1200
1201void MainWindow::slotCloseView(const QWidget* pView)

Callers

nothing calls this directly

Calls 3

GetViewerMethod · 0.45
GetMenuMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected