Commit fcd4fa39 authored by Samikshan Bairagya's avatar Samikshan Bairagya

Removed unwanted debug messages.

parent d4d167f1
......@@ -62,7 +62,6 @@ void ModelManager::updateModels(ObsConditions *obs)
while (fileReader.hasMoreLines())
{
QString soTypeName;
QString line = fileReader.readLine();
if (line[0] == '#' || line.length() == 0)
......@@ -71,7 +70,7 @@ void ModelManager::updateModels(ObsConditions *obs)
SkyObject *o;
if ((o = data->skyComposite()->findByName(line)))
{
kDebug()<<o->longname()<<o->typeName();
//kDebug()<<o->longname()<<o->typeName();
if (o->type() == SkyObject::OPEN_CLUSTER ||
o->type() == SkyObject::GLOBULAR_CLUSTER ||
o->type() == SkyObject::GALAXY_CLUSTER)
......@@ -101,7 +100,7 @@ void ModelManager::updateModels(ObsConditions *obs)
foreach (SkyObject *so, initobjects.value(Star_Model))
{
kDebug()<<so->longname()<<so->typeName();
//kDebug()<<so->longname()<<so->typeName();
if (obsconditions->isVisible(data->geo(), data->lst(), so))
{
starsModel->addSkyObject(new SkyObjItem(so));
......@@ -110,7 +109,7 @@ void ModelManager::updateModels(ObsConditions *obs)
foreach (SkyObject *so, initobjects.value(Galaxy_Model))
{
kDebug()<<so->longname()<<so->typeName();
//kDebug()<<so->longname()<<so->typeName();
if (obsconditions->isVisible(data->geo(), data->lst(), so))
{
galModel->addSkyObject(new SkyObjItem(so));
......@@ -147,8 +146,6 @@ void ModelManager::updateModels(ObsConditions *obs)
//kDebug()<<so->name()<<so->mag();
if (obsconditions->isVisible(data->geo(), data->lst(), so))
{
// SkyObjectItem *planetItem = new SkyObjectItem(o);
// planetItem->setText(o->name());
if (so->name() == "Sun") continue;
planetsModel->addSkyObject(new SkyObjItem(so));
}
......
......@@ -871,6 +871,7 @@ Rectangle {
}
MouseArea {
id: backButtonMouseArea
x: 45
y: 0
anchors.fill: backButton
......@@ -880,33 +881,23 @@ Rectangle {
onClicked: {
if ( container.state == "soTypeSelected" )
{
console.log("soTypeSelected")
if ( !skyObjView.flipped )
{
console.log( "skyObjView.flipped :" + skyObjView.flipped )
console.log( "categoryView.flipped :" + categoryView.flipped )
container.state = "base"
console.log( "container.state :"+container.state )
}
else if ( skyObjView.flipped )
{
console.log( "skyObjView.flipped :" + skyObjView.flipped )
skyObjView.flipped = false
}
}
else if ( container.state == "dsoTypeSelected" )
{
console.log("dsoTypeSelected")
if ( !skyObjView.flipped )
{
console.log( "skyObjView.flipped :" + skyObjView.flipped )
console.log( "categoryView.flipped :" + categoryView.flipped )
container.state = "dsoAreaClicked"
console.log( "container.state :"+container.state )
}
else if ( skyObjView.flipped )
{
console.log( "skyObjView.flipped :" + skyObjView.flipped )
skyObjView.flipped = false
}
}
......
......@@ -109,7 +109,6 @@ QString SkyObjItem::getDesc() const
QString line = fileReader.readLine();
if (line.split("::")[0] == m_Name)
{
kDebug()<<i18n("%1", line.split("::")[1]);
return line.split("::")[1];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment