Untie rbutil core logic from QtGui for cli:

- include QtCore instead of QtGui if possible
- replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui
- use QCoreApplication instead of QApplication for inherited static members.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-02-10 18:25:49 +00:00
parent 7b8f4a534d
commit ee09cb7f0d
18 changed files with 37 additions and 36 deletions

View file

@ -198,7 +198,7 @@ bool BootloaderInstaller::downloadInfo()
infoDownloaded=false;
infoError = false;
while(!infoDownloaded )
QApplication::processEvents();
QCoreApplication::processEvents();
return !infoError;
}
@ -222,8 +222,10 @@ void BootloaderInstaller::infoRequestFinished(int id, bool error)
QString errorString;
errorString = tr("Network error: %1. Please check your network and proxy settings.")
.arg(infodownloader->errorString());
#ifndef CONSOLE
if(error) QMessageBox::about(NULL, "Network Error", errorString);
qDebug() << "downloadDone:" << id << error;
#endif
qDebug() << "downloadDone:" << id << error;
infoError = true;
infoDownloaded = true;