string OBPlugin::FirstLine(const char* txt) { string stxt(txt); string::size_type pos = stxt.find('\n'); if(pos==string::npos) return stxt; else return stxt.substr(0,pos); }
void CamTab::updateViewPort() { viewPort->load(getCurrentCam()); QString stxt(getCurrentCam()); stxt += " - "; stxt += QDateTime::currentDateTime().toString(); statusText(stxt); }