void KviWindow::fillCaptionBuffers() { QString szCaption = m_szPlainTextCaption; if(szCaption.isEmpty()) szCaption = m_szName; fillSingleColorCaptionBuffers(szCaption); }
UserWindow::UserWindow(const char * pcName, QString &szIcon, KviConsoleWindow * pConsole, int iCreationFlags) : KviWindow(KviWindow::UserWindow,pcName,pConsole) { g_pUserWindowList->append(this); m_szIcon = szIcon; m_szPlainTextCaption = pcName; fillSingleColorCaptionBuffers(m_szPlainTextCaption); m_pIrcView = new KviIrcView(this,this); if(iCreationFlags & HasInput) m_pInput = new KviInput(this,0); else m_pInput = 0; if(context()) context()->registerContextWindow(this); }