TelescopeControl.cpp   TelescopeControl.cpp 
skipping to change at line 413 skipping to change at line 413
} }
} }
result.sort(); result.sort();
if (result.size()>maxNbItem) if (result.size()>maxNbItem)
{ {
result.erase(result.begin() + maxNbItem, result.end()); result.erase(result.begin() + maxNbItem, result.end());
} }
return result; return result;
} }
QStringList TelescopeControl::listMatchingObjects(const QString& objPrefix,
int maxNbItem) const
{
QStringList result;
if (maxNbItem==0) return result;
QString objw = objPrefix.toUpper();
foreach (const TelescopeClientP& telescope, telescopeClients)
{
QString constw = telescope->getEnglishName().mid(0, objw.siz
e()).toUpper();
if (constw==objw)
{
result << telescope->getEnglishName();
}
}
result.sort();
if (result.size()>maxNbItem)
{
result.erase(result.begin() + maxNbItem, result.end());
}
return result;
}
bool TelescopeControl::configureGui(bool show) bool TelescopeControl::configureGui(bool show)
{ {
if(show) if(show)
{ {
telescopeDialog->setVisible(true); telescopeDialog->setVisible(true);
} }
return true; return true;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 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/