SimbadSearcher.cpp   SimbadSearcher.cpp 
skipping to change at line 28 skipping to change at line 28
#include "SimbadSearcher.hpp" #include "SimbadSearcher.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include <QNetworkReply> #include <QNetworkReply>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QDebug> #include <QDebug>
#include <QTimer> #include <QTimer>
SimbadLookupReply::SimbadLookupReply(const QString& aurl, QNetworkAccessMan SimbadLookupReply::SimbadLookupReply(const QString& aurl, QNetworkAccessMan
ager* anetMgr, int delayMs) : url(aurl), reply(NULL), netMgr(anetMgr), curr ager* anetMgr, int delayMs)
entStatus(SimbadLookupQuerying) : url(aurl)
, reply(NULL)
, netMgr(anetMgr)
, currentStatus(SimbadLookupQuerying)
{ {
if(delayMs <= 0) if(delayMs <= 0)
delayTimerCompleted(); delayTimerCompleted();
else else
{ {
// First wait before starting query. This avoids sending a q uery for each autocompletion letter. // First wait before starting query. This avoids sending a q uery for each autocompletion letter.
QTimer::singleShot(delayMs, this, SLOT(delayTimerCompleted() )); QTimer::singleShot(delayMs, this, SLOT(delayTimerCompleted() ));
} }
} }
skipping to change at line 132 skipping to change at line 136
currentStatus = SimbadLookupErrorOcc ured; currentStatus = SimbadLookupErrorOcc ured;
errorString = q_("Error parsing posi tion"); errorString = q_("Error parsing posi tion");
emit statusChanged(); emit statusChanged();
return; return;
} }
Vec3d v; Vec3d v;
StelUtils::spheToRect(ra, dec, v); StelUtils::spheToRect(ra, dec, v);
line = reply->readLine(); line = reply->readLine();
line.chop(1); // Remove a line break at the end line.chop(1); // Remove a line break at the end
line.replace("NAME " ,""); line.replace("NAME " ,"");
line.replace(" ", " "); // Remove double sp aces
resultPositions[line]=v; resultPositions[line]=v;
} }
line = reply->readLine(); line = reply->readLine();
line.chop(1); // Remove a line break at the end line.chop(1); // Remove a line break at the end
} }
} }
currentStatus = SimbadLookupFinished; currentStatus = SimbadLookupFinished;
emit statusChanged(); emit statusChanged();
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/