Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Akonadi Contacts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
Akonadi Contacts
Commits
9d6a1827
Commit
9d6a1827
authored
Feb 07, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve it
parent
e508ae8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
akonadi-contact/src/editor/generalinfoeditor/phone/phonelistwidget.cpp
...ct/src/editor/generalinfoeditor/phone/phonelistwidget.cpp
+16
-1
akonadi-contact/src/editor/generalinfoeditor/phone/phonelistwidget.h
...tact/src/editor/generalinfoeditor/phone/phonelistwidget.h
+3
-0
akonadi-contact/src/editor/generalinfoeditor/phone/phonewidget.cpp
...ontact/src/editor/generalinfoeditor/phone/phonewidget.cpp
+2
-0
No files found.
akonadi-contact/src/editor/generalinfoeditor/phone/phonelistwidget.cpp
View file @
9d6a1827
...
...
@@ -21,12 +21,27 @@
*/
#include "phonelistwidget.h"
#include "phonewidgetlister.h"
#include <QLabel>
#include <QVBoxLayout>
#include <KLocalizedString>
using
namespace
Akonadi
;
PhoneListWidget
::
PhoneListWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
QVBoxLayout
*
topLayout
=
new
QVBoxLayout
;
topLayout
->
setMargin
(
0
);
topLayout
->
setSpacing
(
0
);
setLayout
(
topLayout
);
QLabel
*
label
=
new
QLabel
(
i18n
(
"Phone"
),
this
);
label
->
setObjectName
(
QStringLiteral
(
"phonelistlabel"
));
topLayout
->
addWidget
(
label
);
mPhoneWidgetLister
=
new
Akonadi
::
PhoneWidgetLister
(
this
);
mPhoneWidgetLister
->
setObjectName
(
QStringLiteral
(
"phonewidgetlister"
));
topLayout
->
addWidget
(
mPhoneWidgetLister
);
}
PhoneListWidget
::~
PhoneListWidget
()
...
...
akonadi-contact/src/editor/generalinfoeditor/phone/phonelistwidget.h
View file @
9d6a1827
...
...
@@ -26,12 +26,15 @@
#include <QWidget>
namespace
Akonadi
{
class
PhoneWidgetLister
;
class
PhoneListWidget
:
public
QWidget
{
Q_OBJECT
public:
explicit
PhoneListWidget
(
QWidget
*
parent
=
Q_NULLPTR
);
~
PhoneListWidget
();
private:
Akonadi
::
PhoneWidgetLister
*
mPhoneWidgetLister
;
};
}
#endif // PHONELISTWIDGET_H
akonadi-contact/src/editor/generalinfoeditor/phone/phonewidget.cpp
View file @
9d6a1827
...
...
@@ -38,6 +38,8 @@ PhoneWidget::PhoneWidget(QWidget *parent)
mPhoneNumberEdit
=
new
QLineEdit
(
this
);
mPhoneNumberEdit
->
setObjectName
(
QStringLiteral
(
"phonenumber"
));
layout
->
addWidget
(
mPhoneNumberEdit
);
//TODO add type.
}
PhoneWidget
::~
PhoneWidget
()
...
...
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