changeset 32:50d04702da36

correct compilation warning on enum types
author lbajardsilogic
date Tue, 15 May 2007 07:19:24 +0000
parents 08aa244b91c6
children c14ebd0217af
files data/model/QueryModel.cpp
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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