diff options
author | ramon <ramongomez@us.es> | 2011-03-23 12:01:37 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-03-23 12:01:37 +0000 |
commit | cc77393f67f6f22b7a4abbcfea9f294b9bc845c0 (patch) | |
tree | 71f8423ceecbae134027eba363c6ea686a5ad304 /client/browser | |
parent | 555d057cb50db2cc7cb2596851fb6614f79a1cbc (diff) |
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-378ad31fedc9
Diffstat (limited to 'client/browser')
-rw-r--r-- | client/browser/src/main.cpp | 4 | ||||
-rw-r--r-- | client/browser/src/mainwindow.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/client/browser/src/main.cpp b/client/browser/src/main.cpp index 0ae6ac6a..99c13812 100644 --- a/client/browser/src/main.cpp +++ b/client/browser/src/main.cpp @@ -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(); diff --git a/client/browser/src/mainwindow.cpp b/client/browser/src/mainwindow.cpp index e99181df..f49b6510 100644 --- a/client/browser/src/mainwindow.cpp +++ b/client/browser/src/mainwindow.cpp @@ -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); } } |