# HG changeset patch # User lbajardsilogic # Date 1179213564 0 # Node ID 50d04702da36a7c4190520141a039422932bb1e3 # Parent 08aa244b91c634e78f3a2facd9cdd79f2456a092 correct compilation warning on enum types diff -r 08aa244b91c6 -r 50d04702da36 data/model/QueryModel.cpp --- a/data/model/QueryModel.cpp Mon May 14 16:05:16 2007 +0000 +++ b/data/model/QueryModel.cpp Tue May 15 07:19:24 2007 +0000 @@ -118,7 +118,7 @@ { *min = iter->second->getMinRange(); *max = iter->second->getMaxRange(); - if (iter->second->getType() != QueryThemeModel::PropertyType::StringProperty) + if (iter->second->getType() != StringProperty) return iter->second->getValue().toInt(); } @@ -249,7 +249,7 @@ { if (type == "int") { - m_type = PropertyType::RangeProperty; + m_type = RangeProperty; if (range != "") { @@ -261,9 +261,9 @@ } else if (type == "string") { if (range == "") { - m_type = PropertyType::StringProperty; + m_type = StringProperty; } else { - m_type = PropertyType::ValueProperty; + m_type = ValueProperty; if (range != "") { @@ -275,13 +275,13 @@ } } else if (type == "gYear") { - m_type = PropertyType::RangeProperty; + m_type = RangeProperty; m_min = 0; m_max = 2007; } else { - m_type = PropertyType::InvalidProperty; + m_type = InvalidProperty; } } \ No newline at end of file