MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / openNewView

Method openNewView

Components/RMSViewer.cpp:41–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void
42RMSViewer::openNewView(QTcpSocket *socket)
43{
44 RMSViewTab *tab = new RMSViewTab(this, socket);
45
46 int ndx = this->ui->serverTabWidget->addTab(
47 tab,
48 "Power graph [" + socket->peerAddress().toString() + "]");
49
50 connect(
51 tab,
52 SIGNAL(titleChanged(QString)),
53 this,
54 SLOT(onTitleChanged(QString)));
55
56 this->ui->stackedWidget->setCurrentIndex(0);
57 this->ui->serverTabWidget->setCurrentIndex(ndx);
58}
59
60bool
61RMSViewer::haveAddrData(void) const

Callers 1

onNewConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected