Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Mail-related libraries
Commits
7733f446
Commit
7733f446
authored
Mar 21, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for phonenumber preferred
parent
9ddb1c56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
kaddressbookgrantlee/src/printing/contactgrantleeprintphoneobject.cpp
...grantlee/src/printing/contactgrantleeprintphoneobject.cpp
+5
-0
kaddressbookgrantlee/src/printing/contactgrantleeprintphoneobject.h
...okgrantlee/src/printing/contactgrantleeprintphoneobject.h
+2
-0
No files found.
kaddressbookgrantlee/src/printing/contactgrantleeprintphoneobject.cpp
View file @
7733f446
...
...
@@ -37,3 +37,8 @@ QString ContactGrantleePrintPhoneObject::number() const
{
return
mPhoneNumber
.
number
();
}
bool
ContactGrantleePrintPhoneObject
::
preferred
()
const
{
return
(
mPhoneNumber
.
type
()
&
KContacts
::
PhoneNumber
::
Pref
);
}
kaddressbookgrantlee/src/printing/contactgrantleeprintphoneobject.h
View file @
7733f446
...
...
@@ -26,6 +26,7 @@ class ContactGrantleePrintPhoneObject : public QObject
Q_OBJECT
Q_PROPERTY
(
QString
type
READ
type
)
Q_PROPERTY
(
QString
number
READ
number
)
Q_PROPERTY
(
bool
preferred
READ
preferred
)
public:
explicit
ContactGrantleePrintPhoneObject
(
const
KContacts
::
PhoneNumber
&
phone
,
QObject
*
parent
=
Q_NULLPTR
);
...
...
@@ -33,6 +34,7 @@ public:
QString
type
()
const
;
QString
number
()
const
;
bool
preferred
()
const
;
private:
KContacts
::
PhoneNumber
mPhoneNumber
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment