phonebookui/pbkcommonui/src/cntnameeditormodel.cpp
changeset 40 b46a585f6909
parent 37 fd64c38c277d
child 46 efe85016a067
--- a/phonebookui/pbkcommonui/src/cntnameeditormodel.cpp	Thu May 27 12:45:19 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cntnameeditormodel.cpp	Fri Jun 11 13:29:23 2010 +0300
@@ -101,4 +101,21 @@
         }
 }
 
+QContactDetail CntNameEditorModel::detail() const
+{
+    if (!iName.firstName().isEmpty() ||
+        !iName.lastName().isEmpty() ||
+        !iName.middleName().isEmpty() ||
+        !iName.prefix().isEmpty() ||
+        !iName.suffix().isEmpty())
+    {
+        return iName;
+    }
+    
+    if ( !iNick.nickname().isEmpty() )
+    {
+        return iNick;
+    }
+    return QContactName();
+}
 // End of File