Commit 9d6a1827 authored by Laurent Montel's avatar Laurent Montel 😁

Improve it

parent e508ae8e
......@@ -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()
......
......@@ -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
......@@ -38,6 +38,8 @@ PhoneWidget::PhoneWidget(QWidget *parent)
mPhoneNumberEdit = new QLineEdit(this);
mPhoneNumberEdit->setObjectName(QStringLiteral("phonenumber"));
layout->addWidget(mPhoneNumberEdit);
//TODO add type.
}
PhoneWidget::~PhoneWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment