summaryrefslogtreecommitdiffstats
path: root/examples/declarative/support/contact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/support/contact.cpp')
-rw-r--r--examples/declarative/support/contact.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/declarative/support/contact.cpp b/examples/declarative/support/contact.cpp
index 0821295..9ffeb97 100644
--- a/examples/declarative/support/contact.cpp
+++ b/examples/declarative/support/contact.cpp
@@ -12,7 +12,6 @@
****************************************************************************/
#include "contact.h"
-#include "qmltypes.h"
QML_DEFINE_TYPE(0,0,0,0,Contact,Contact);
Contact::Contact() : QObject(0)
@@ -26,13 +25,13 @@ Contact::Contact() : QObject(0)
m_numbers << new PhoneNumber;
m_numbers << new PhoneNumber;
m_numbers << new PhoneNumber;
-
+
m_numbers.at(0)->setType(PhoneNumber::HomePhone);
m_numbers.at(0)->setNumber("35412451");
m_numbers.at(1)->setType(PhoneNumber::BusinessPhone);
m_numbers.at(1)->setNumber("33424994");
-
+
m_numbers.at(2)->setType(PhoneNumber::MobilePhone);
m_numbers.at(2)->setNumber("0424655137");
@@ -52,8 +51,7 @@ Contact::Contact() : QObject(0)
void Contact::addNumber(PhoneNumber *newNumber)
{
-
- m_numbers << newNumber;
+ m_numbers << newNumber;
emit numbersChanged();
}