diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp index f92591c448faca0b0a61451b3e527a15f797a180..ae2b5766bc0f8cc57c8da65752ac54e63dfc48d8 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp @@ -26,7 +26,6 @@ ** contact the sales department at http://qt.nokia.com/contact. ** **************************************************************************/ - #include "maemorunconfiguration.h" #include "maemodeviceconfigurations.h" @@ -84,47 +83,6 @@ namespace Internal { using namespace ProjectExplorer; -void ErrorDumper::printToStream(QProcess::ProcessError error) -{ - QString reason; - switch (error) { - case QProcess::FailedToStart: - reason = "The process failed to start. Either the invoked program is" - " missing, or you may have insufficient permissions to invoke " - "the program."; - break; - - case QProcess::Crashed: - reason = "The process crashed some time after starting successfully."; - break; - - case QProcess::Timedout: - reason = "The last waitFor...() function timed out. The state of " - "QProcess is unchanged, and you can try calling waitFor...() " - "again."; - break; - - case QProcess::WriteError: - reason = "An error occurred when attempting to write to the process." - " For example, the process may not be running, or it may have " - "closed its input channel."; - break; - - case QProcess::ReadError: - reason = "An error occurred when attempting to read from the process." - " For example, the process may not be running."; - break; - - default: - reason = "QProcess::UnknownError"; - break; - } - qWarning() << "Failed to run emulator. Reason:" << reason; -} - - -// #pragma mark -- MaemoRunConfiguration - MaemoRunConfiguration::MaemoRunConfiguration(Qt4Target *parent, const QString &proFilePath) : RunConfiguration(parent, QLatin1String(MAEMO_RC_ID)) @@ -183,8 +141,6 @@ void MaemoRunConfiguration::init() this, SLOT(proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode*))); qemu = new QProcess(this); - connect(qemu, SIGNAL(error(QProcess::ProcessError)), &dumper, - SLOT(printToStream(QProcess::ProcessError))); connect(qemu, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(qemuProcessFinished())); } diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.h b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.h index d8c490a0ea8df67ed640be9dfef2da7e660b5e36..9719b472f682e94e293c84165a9e97be98c2bd8f 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.h +++ b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.h @@ -51,17 +51,6 @@ class Qt4BuildConfiguration; class Qt4ProFileNode; class Qt4Target; -class ErrorDumper : public QObject -{ - Q_OBJECT -public: - ErrorDumper(QObject *parent = 0) - : QObject(parent) {} - -public slots: - void printToStream(QProcess::ProcessError error); -}; - class MaemoRunConfigurationFactory; class MaemoRunConfiguration : public ProjectExplorer::RunConfiguration