Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
ed6129c0
Commit
ed6129c0
authored
Oct 29, 2015
by
Laurent Montel
😁
Browse files
Add clear button
parent
8d82c4dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
akonadi-contact/src/editor/phoneeditwidget.cpp
View file @
ed6129c0
...
...
@@ -82,7 +82,8 @@ void PhoneTypeCombo::update()
{
clear
();
for
(
int
i
=
0
;
i
<
mTypeList
.
count
();
++
i
)
{
const
int
typeListCount
(
mTypeList
.
count
());
for
(
int
i
=
0
;
i
<
typeListCount
;
++
i
)
{
if
(
mTypeList
.
at
(
i
)
==
-
1
)
{
// "Other..." entry
addItem
(
i18nc
(
"@item:inlistbox Category of contact info field"
,
"Other..."
));
}
else
{
...
...
@@ -128,6 +129,7 @@ PhoneNumberWidget::PhoneNumberWidget(QWidget *parent)
mTypeCombo
=
new
PhoneTypeCombo
(
this
);
mNumberEdit
=
new
KLineEdit
(
this
);
mNumberEdit
->
setTrapReturnKey
(
true
);
mNumberEdit
->
setClearButtonEnabled
(
true
);
QFontMetrics
fm
(
font
());
mNumberEdit
->
setMinimumWidth
(
fm
.
width
(
QStringLiteral
(
"MMMMMMMMMM"
)));
...
...
Write
Preview
Supports
Markdown
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