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

Method AddView

App/Client/ViewTable.cpp:97–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int CViewTable::AddView(QWidget *pView)
98{
99 int nIndex = -1;
100 if(!pView)
101 {
102 qCritical(log) << "CViewTable::AddView: The pView is nullptr";
103 return -1;
104 }
105 //qDebug(log) << "CViewTable::AddView: Window title:" << pView->windowTitle();
106 nIndex = m_pTab->indexOf(pView);
107 if(-1 == nIndex) {
108 nIndex = m_pTab->addTab(pView, pView->windowTitle());
109 }
110 m_pTab->setCurrentIndex(nIndex);
111
112 return 0;
113}
114
115int CViewTable::RemoveView(QWidget *pView)
116{

Callers 2

foreachFunction · 0.45
StartMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected