TelescopeControl.cpp   TelescopeControl.cpp 
skipping to change at line 331 skipping to change at line 331
setCircleColor(circleNormalColor); setCircleColor(circleNormalColor);
} }
telescopeDialog->updateStyle(); telescopeDialog->updateStyle();
} }
double TelescopeControl::getCallOrder(StelModuleActionName actionName) cons t double TelescopeControl::getCallOrder(StelModuleActionName actionName) cons t
{ {
//TODO: Remove magic number (call order offset) //TODO: Remove magic number (call order offset)
if (actionName == StelModule::ActionDraw) if (actionName == StelModule::ActionDraw)
return StelApp::getInstance().getModuleMgr().getModule("Mete orMgr")->getCallOrder(actionName) + 2.; return StelApp::getInstance().getModuleMgr().getModule("Land scapeMgr")->getCallOrder(actionName) + 2.;
return 0.; return 0.;
} }
/////////////////////////////////////////////////////////////////////////// ///// /////////////////////////////////////////////////////////////////////////// /////
// Methods inherited from the StelObjectModule class // Methods inherited from the StelObjectModule class
// //
QList<StelObjectP> TelescopeControl::searchAround(const Vec3d& vv, double l imitFov, const StelCore* core) const QList<StelObjectP> TelescopeControl::searchAround(const Vec3d& vv, double l imitFov, const StelCore* core) const
{ {
QList<StelObjectP> result; QList<StelObjectP> result;
if (!getFlagTelescopeReticles()) if (!getFlagTelescopeReticles())
skipping to change at line 421 skipping to change at line 421
QStringList TelescopeControl::listMatchingObjects(const QString& objPrefix, int maxNbItem, bool useStartOfWords) const QStringList TelescopeControl::listMatchingObjects(const QString& objPrefix, int maxNbItem, bool useStartOfWords) const
{ {
QStringList result; QStringList result;
if (maxNbItem==0) if (maxNbItem==0)
return result; return result;
QString tn; QString tn;
bool find; bool find;
foreach (const TelescopeClientP& telescope, telescopeClients) foreach (const TelescopeClientP& telescope, telescopeClients)
{ {
QString tn = telescope->getEnglishName(); tn = telescope->getEnglishName();
find = false; find = false;
if (useStartOfWords) if (useStartOfWords)
{ {
if (objPrefix.toUpper()==tn.mid(0, objPrefix.size()) .toUpper()) if (objPrefix.toUpper()==tn.mid(0, objPrefix.size()) .toUpper())
find = true; find = true;
} }
else else
{ {
if (tn.contains(objPrefix, Qt::CaseInsensitive)) if (tn.contains(objPrefix, Qt::CaseInsensitive))
find = true; find = true;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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/