Modificado código fuente del Browser para mostrar salidas y barra de estado en UTF-8 (versiones 0.10 y 1.0).
Modificado #243. git-svn-id: https://opengnsys.es/svn/branches/version1.0@1608 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
5656dd10b2
commit
1fc67a09f8
|
@ -9,6 +9,10 @@ int main(int argc, char *argv[])
|
|||
printf("Usage: %s http://siteweb.com/\n",argv[0]);
|
||||
return -1;
|
||||
}
|
||||
// Codificación UTF-8.
|
||||
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
QApplication a(argc, argv);
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
|
|
@ -237,8 +237,8 @@ void MainWindow::slotProcessOutput()
|
|||
char buf[BUFFERSIZE];
|
||||
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
||||
{
|
||||
print(tr("Proc. Output: ")+buf);
|
||||
QString s(buf);
|
||||
print(tr("Proc. Output: ")+s);
|
||||
captureOutputForStatusBar(s);
|
||||
}
|
||||
}
|
||||
|
@ -249,7 +249,8 @@ void MainWindow::slotProcessErrorOutput()
|
|||
char buf[BUFFERSIZE];
|
||||
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
||||
{
|
||||
print(tr("Proc. Error: ")+buf);
|
||||
QString s(buf);
|
||||
print(tr("Proc. Error: ")+s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue