Mercurial > hg > forks > UniversalIndentGUI
changeset 398:05ba9939b1be
Preparations for saving file with an encoding other than UTF-8.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@627 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 06 Mar 2008 18:40:31 +0000 |
parents | 65752d5b5d74 |
children | 402e10149b55 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Fri Jan 25 15:52:36 2008 +0000 +++ b/src/mainwindow.cpp Thu Mar 06 18:40:31 2008 +0000 @@ -581,6 +581,14 @@ outSrcFile.write( savedSourceContent.toUtf8() ); outSrcFile.close(); + // Get current encoding. + /* + QString currentEncoding = encodingActionGroup->checkedAction()->text(); + QTextStream outSrcStrm(&outSrcFile); + outSrcStrm.setCodec( QTextCodec::codecForName(currentEncoding.toAscii()) ); + outSrcStrm << savedSourceContent; + outSrcFile.close(); + */ txtedSourceCode->setModified( false ); setWindowModified( txtedSourceCode->isModified() ); }