|
|
|
@ -264,7 +264,7 @@ bool KJotsBook::isBookFile(const TQString& filename)
|
|
|
|
|
{
|
|
|
|
|
if ( folder.open(IO_ReadWrite) )
|
|
|
|
|
{
|
|
|
|
|
TQTextStream st(TQT_TQIODEVICE(&folder));
|
|
|
|
|
TQTextStream st(&folder);
|
|
|
|
|
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
|
|
|
|
|
TQString buf = st.readLine().stripWhiteSpace();
|
|
|
|
|
|
|
|
|
@ -306,7 +306,7 @@ bool KJotsBook::openBook(const TQString& filename)
|
|
|
|
|
|
|
|
|
|
if ( file.exists() && file.open(IO_ReadWrite) ) //TODO: Implement read-only mode?
|
|
|
|
|
{
|
|
|
|
|
TQTextStream st(TQT_TQIODEVICE(&file));
|
|
|
|
|
TQTextStream st(&file);
|
|
|
|
|
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
|
|
|
|
|
TQString data = st.read();
|
|
|
|
|
|
|
|
|
@ -388,7 +388,7 @@ bool KJotsBook::openBook(const TQString& filename)
|
|
|
|
|
*/
|
|
|
|
|
bool KJotsBook::loadOldBook(TQFile &file)
|
|
|
|
|
{
|
|
|
|
|
TQTextStream st(TQT_TQIODEVICE(&file));
|
|
|
|
|
TQTextStream st(&file);
|
|
|
|
|
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
|
|
|
|
|
TQString buf = st.readLine();
|
|
|
|
|
|
|
|
|
|