[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/okteta/kasten/core/io/filesystem
From:       Friedrich W. H. Kossebau <kossebau () kde ! org>
Date:       2011-09-10 19:54:58
Message-ID: 20110910195458.8CF99AC87F () svn ! kde ! org
[Download RAW message or body]

SVN commit 1252623 by kossebau:

Changed: s/QApplication/QCoreApplication/ in io wannabe-jobs

 M  +2 -2      bytearrayrawfileconnectjob.cpp  
 M  +2 -2      bytearrayrawfileloadjob.cpp  
 M  +3 -3      bytearrayrawfileloadthread.cpp  
 M  +2 -2      bytearrayrawfilereloadjob.cpp  
 M  +2 -2      bytearrayrawfilewritejob.cpp  
 M  +2 -2      bytearrayrawfilewritetojob.cpp  


--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfileconnectjob.cpp \
#1252622:1252623 @@ -30,7 +30,7 @@
 // KDE
 #include <KUrl>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 
 
 namespace Kasten
@@ -50,7 +50,7 @@
     ByteArrayRawFileWriteThread *writeThread = new ByteArrayRawFileWriteThread( \
this, byteArrayDocument, file() );  writeThread->start();
     while( !writeThread->wait(100) )
-        QApplication::processEvents( QEventLoop::ExcludeUserInputEvents | \
QEventLoop::ExcludeSocketNotifiers, 100 ); +        QCoreApplication::processEvents( \
QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 100 );  
     qobject_cast<ByteArrayRawFileSynchronizer*>(synchronizer())->setDocument( \
byteArrayDocument );  const bool success = writeThread->success();
--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfileloadjob.cpp \
#1252622:1252623 @@ -30,7 +30,7 @@
 // KDE
 #include <KUrl>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 
 
 namespace Kasten
@@ -45,7 +45,7 @@
     ByteArrayRawFileLoadThread *loadThread = new ByteArrayRawFileLoadThread( this, \
file() );  loadThread->start();
     while( !loadThread->wait(100) )
-        QApplication::processEvents( QEventLoop::ExcludeUserInputEvents | \
QEventLoop::ExcludeSocketNotifiers, 100 ); +        QCoreApplication::processEvents( \
QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 100 );  
     ByteArrayDocument* document = loadThread->document();
     qobject_cast<ByteArrayRawFileSynchronizer*>(synchronizer())->setDocument( \
                document );
--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfileloadthread.cpp \
#1252622:1252623 @@ -31,7 +31,7 @@
 // KDE
 #include <KLocale>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 #include <QtCore/QDataStream>
 #include <QtCore/QFile>
 // C++
@@ -73,8 +73,8 @@
                 mDocument = new ByteArrayDocument( byteArray, i18nc("destination of \
the byte array", "Loaded from file.") );  mDocument->setOwner( Person::createEgo() );
                 // TODO: make PieceTableByteArrayModel a child by constructor \
                argument parent
-                byteArray->moveToThread( QApplication::instance()->thread() );
-                mDocument->moveToThread( QApplication::instance()->thread() );
+                byteArray->moveToThread( QCoreApplication::instance()->thread() );
+                mDocument->moveToThread( QCoreApplication::instance()->thread() );
             }
             else
                 mErrorString = mFile->errorString();
--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfilereloadjob.cpp \
#1252622:1252623 @@ -32,7 +32,7 @@
 // KDE
 #include <KUrl>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 
 
 namespace Kasten
@@ -48,7 +48,7 @@
     ByteArrayRawFileReloadThread* reloadThread = new ByteArrayRawFileReloadThread( \
this, /*document, */file() );  reloadThread->start();
     while( !reloadThread->wait(100) )
-        QApplication::processEvents( QEventLoop::ExcludeUserInputEvents | \
QEventLoop::ExcludeSocketNotifiers, 100 ); +        QCoreApplication::processEvents( \
QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 100 );  
     bool success = reloadThread->success();
     // TODO: moved this here to avoid marshalling the change signals out of the \
                thread. Good idea?
--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfilewritejob.cpp \
#1252622:1252623 @@ -30,7 +30,7 @@
 // KDE
 #include <KUrl>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 
 
 namespace Kasten
@@ -46,7 +46,7 @@
     ByteArrayRawFileWriteThread* writeThread = new ByteArrayRawFileWriteThread( \
this, document, file() );  writeThread->start();
     while( !writeThread->wait(100) )
-        QApplication::processEvents( QEventLoop::ExcludeUserInputEvents | \
QEventLoop::ExcludeSocketNotifiers, 100 ); +        QCoreApplication::processEvents( \
QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 100 );  
     const bool success = writeThread->success();
     delete writeThread;
--- trunk/KDE/kdesdk/okteta/kasten/core/io/filesystem/bytearrayrawfilewritetojob.cpp \
#1252622:1252623 @@ -30,7 +30,7 @@
 // KDE
 #include <KUrl>
 // Qt
-#include <QtGui/QApplication>
+#include <QtCore/QCoreApplication>
 
 
 namespace Kasten
@@ -47,7 +47,7 @@
     ByteArrayRawFileWriteThread *writeThread = new ByteArrayRawFileWriteThread( \
this, document, file() );  writeThread->start();
     while( !writeThread->wait(100) )
-        QApplication::processEvents( QEventLoop::ExcludeUserInputEvents | \
QEventLoop::ExcludeSocketNotifiers, 100 ); +        QCoreApplication::processEvents( \
QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 100 );  
     const bool success = writeThread->success();
     delete writeThread;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic