[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kode/kwsdl/common
From: Tobias Koenig <tokoe () kde ! org>
Date: 2006-01-01 20:30:12
Message-ID: 1136147412.697419.9203.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 493204 by tokoe:
Found the -UQT3_SUPPORT switch ;)
M +1 -0 Makefile.am
M +3 -3 fileprovider.cpp
M +3 -3 nsmanager.cpp
--- trunk/KDE/kdepim/kode/kwsdl/common/Makefile.am #493203:493204
@@ -1,6 +1,7 @@
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/kode/kwsdl -I.. -I$(top_srcdir)/libkdepim $(all_includes)
lib_LTLIBRARIES = libkxmlcommon.la
+KDE_CXXFLAGS = -UQT3_SUPPORT
libkxmlcommon_la_SOURCES = fileprovider.cpp messagehandler.cpp nsmanager.cpp parsercontext.cpp qname.cpp
libkxmlcommon_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined
--- trunk/KDE/kdepim/kode/kwsdl/common/fileprovider.cpp #493203:493204
@@ -58,7 +58,7 @@
mBlocked = true;
while ( mBlocked ) {
- QCoreApplication::processEvents( QEventLoop::ExcludeUserInput );
+ QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents );
usleep( 500 );
}
@@ -87,14 +87,14 @@
}
QFile file( mFileName );
- if ( !file.open( IO_WriteOnly ) ) {
+ if ( !file.open( QIODevice::WriteOnly ) ) {
qDebug( "Unable to create temporary file" );
mBlocked = false;
return;
}
qDebug( "Download successful" );
- file.writeBlock( mData );
+ file.write( mData );
file.close();
mData.truncate( 0 );
--- trunk/KDE/kdepim/kode/kwsdl/common/nsmanager.cpp #493203:493204
@@ -42,7 +42,7 @@
{
QMap<QString, QString>::ConstIterator it;
for ( it = mMap.begin(); it != mMap.end(); ++it ) {
- if ( it.data() == prefix )
+ if ( it.value() == prefix )
return it.key();
}
@@ -51,7 +51,7 @@
void NSManager::splitName( const QString &qname, QString &prefix, QString &localname ) const
{
- int pos = qname.find( ':' );
+ int pos = qname.indexOf( ':' );
if ( pos != -1 ) {
prefix = qname.left( pos );
localname = qname.mid( pos + 1 );
@@ -108,6 +108,6 @@
{
QMap<QString, QString>::ConstIterator it;
for ( it = mMap.begin(); it != mMap.end(); ++it ) {
- qDebug( "%s\t%s", qPrintable( it.data() ), qPrintable( it.key() ) );
+ qDebug( "%s\t%s", qPrintable( it.value() ), qPrintable( it.key() ) );
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic