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

Method SetWidowsTitle

App/Client/ViewTable.cpp:124–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void CViewTable::SetWidowsTitle(QWidget* pView, const QString& szTitle,
125 const QIcon &icon, const QString &szToolTip)
126{
127 if(!pView) {
128 qCritical(log) << "CViewTable::SetWidowsTitle: The pView is nullptr";
129 return;
130 }
131 //qDebug(log) << "CViewTable::SetWidowsTitle: Window title:" << szTitle;
132 pView->setWindowTitle(szTitle);
133 int nIndex = GetViewIndex(pView);
134 m_pTab->setTabText(nIndex, szTitle);
135 if(m_pParameterApp->GetEnableTabToolTip())
136 m_pTab->setTabToolTip(nIndex, szToolTip);
137 else
138 m_pTab->setTabToolTip(nIndex, "");
139 if(m_pParameterApp->GetEnableTabIcon())
140 m_pTab->setTabIcon(nIndex, icon);
141 else
142 m_pTab->setTabIcon(nIndex, QIcon());
143}
144
145int CViewTable::SetFullScreen(bool bFull)
146{

Callers 3

foreachFunction · 0.45
StartMethod · 0.45
slotUpdateNameMethod · 0.45

Calls 2

GetEnableTabToolTipMethod · 0.80
GetEnableTabIconMethod · 0.80

Tested by

no test coverage detected