[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/plugins/qtdesigner
From: Jaison Lee <lee.jaison () gmail ! com>
Date: 2006-10-16 0:55:40
Message-ID: 1160960140.358923.24042.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 595886 by jlee:
Port to new KSaveFile.
M +4 -4 qtdesignerpart.cpp
--- trunk/KDE/kdevelop/plugins/qtdesigner/qtdesignerpart.cpp #595885:595886
@@ -214,14 +214,14 @@
KSaveFile uiFile( m_file );
//FIXME: find a way to return an error. KSaveFile
//doesn't use the KIO error codes
- if ( uiFile.status() )
+ if ( !uiFile.open() )
return false;
- QTextStream* stream = uiFile.textStream();
+ QTextStream stream ( &uiFile );
QByteArray windowXml = m_window->contents().toUtf8();
- *stream << windowXml;
+ stream << windowXml;
- if ( !uiFile.close() )
+ if ( !uiFile.finalize() )
return false;
m_window->setDirty(false);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic