diff options
Diffstat (limited to 'src/k9mencodercmdgen.cpp')
-rw-r--r-- | src/k9mencodercmdgen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/k9mencodercmdgen.cpp b/src/k9mencodercmdgen.cpp index 6af03af..6de1a67 100644 --- a/src/k9mencodercmdgen.cpp +++ b/src/k9mencodercmdgen.cpp @@ -479,7 +479,7 @@ const TQString & k9MencoderCmdGen::getCmd(const TQString &_root) { KDoubleSpinBox *isb=(KDoubleSpinBox*) this->child(aSWidget.value().latin1(),"KDoubleSpinBox"); if (!sCmd2.isEmpty()) sCmd2 +=m_sepValues; - sCmd2+=sTmp+sPrefix+isb->text().tqreplace(",",".").stripWhiteSpace(); + sCmd2+=sTmp+sPrefix+isb->text().replace(",",".").stripWhiteSpace(); sTmp=""; } else if(aSType.value()=="string" && Sck->isChecked()) { TQComboBox *cb=(TQComboBox*) this->child(aSWidget.value().latin1(),TQCOMBOBOX_OBJECT_NAME_STRING); @@ -509,7 +509,7 @@ const TQString & k9MencoderCmdGen::getCmd(const TQString &_root) { KDoubleSpinBox *isb=(KDoubleSpinBox*) this->child(aWidget.value().latin1(),"KDoubleSpinBox"); if (!sCmd.isEmpty()) sCmd +=m_sepOpt; - sCmd+= eOpt.attributeNode("name").value() + "=" + isb->text().tqreplace(",","."); + sCmd+= eOpt.attributeNode("name").value() + "=" + isb->text().replace(",","."); } else if(aType.value()=="string") { TQComboBox *cb=(TQComboBox*) this->child(aWidget.value().latin1(),TQCOMBOBOX_OBJECT_NAME_STRING); if (!sCmd.isEmpty()) @@ -549,7 +549,7 @@ bool k9MencoderCmdGen::getMencoderOptions(TQString &_cmd) { void k9MencoderCmdGen::parseCmd(const TQString &_cmd){ TQString cmd(_cmd); - cmd=cmd.tqreplace("\n"," ").simplifyWhiteSpace(); + cmd=cmd.replace("\n"," ").simplifyWhiteSpace(); TQStringList cmdList=TQStringList::split(" ",cmd); for (TQStringList::iterator it=cmdList.begin();it!=cmdList.end();++it) { if (*it=="-ovc") { @@ -622,7 +622,7 @@ void k9MencoderCmdGen::parseCodecOptions(const TQString &_root,const TQString &_ TQString value; if (eOpt.attributeNode("type").isNull()) { //it's a list of values - TQString sValues=sOpt.tqreplace("="+m_sepValues,"= "+m_sepValues).tqreplace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).tqreplace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).section("=",1); + TQString sValues=sOpt.replace("="+m_sepValues,"= "+m_sepValues).replace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).replace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).section("=",1); TQStringList slValues=TQStringList::split(m_sepValues,sValues); //loop on values nodes TQDomNodeList lSOpt=eOpt.elementsByTagName("subopt"); @@ -642,7 +642,7 @@ void k9MencoderCmdGen::parseCodecOptions(const TQString &_root,const TQString &_ for (int k=0;k<slValues.count();k++) { TQString s=*(slValues.at(k)); if (s.startsWith(sPrefix)) { - eSOpt.setAttribute("default",s.tqreplace(sPrefix,"")); + eSOpt.setAttribute("default",s.replace(sPrefix,"")); eSOpt.setAttribute("selected","true"); } } |