Commit d024ebb6 authored by Laurent Montel's avatar Laurent Montel 😁

Add more widgets

parent dab6697d
......@@ -37,6 +37,7 @@ set(akonadicontact_editor_widgets_SRCS
set(akonadicontact_editor_generalinfo_SRCS
editor/generalinfoeditor/phonewidgetlister.cpp
editor/generalinfoeditor/phonewidget.cpp
)
set(akonadicontact_addresslocation_editor_SRCS
......
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "phonewidgettest.h"
PhoneWidgetTest::PhoneWidgetTest(QObject *parent)
: QObject(parent)
{
}
PhoneWidgetTest::~PhoneWidgetTest()
{
}
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef PHONEWIDGETTEST_H
#define PHONEWIDGETTEST_H
#include <QObject>
class PhoneWidgetTest : public QObject
{
Q_OBJECT
public:
explicit PhoneWidgetTest(QObject *parent = Q_NULLPTR);
~PhoneWidgetTest();
};
#endif // PHONEWIDGETTEST_H
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "phonewidget.h"
using namespace Akonadi;
PhoneWidget::PhoneWidget(QWidget *parent)
: QWidget(parent)
{
}
PhoneWidget::~PhoneWidget()
{
}
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef PHONEWIDGET_H
#define PHONEWIDGET_H
#include <QWidget>
namespace Akonadi
{
class PhoneWidget : public QWidget
{
Q_OBJECT
public:
explicit PhoneWidget(QWidget *parent = Q_NULLPTR);
~PhoneWidget();
};
}
#endif // PHONEWIDGET_H
......@@ -21,6 +21,7 @@
*/
#include "phonewidgetlister.h"
using namespace Akonadi;
PhoneWidgetLister::PhoneWidgetLister(QWidget *parent)
: KWidgetLister(true, 1, 4, parent)
......
......@@ -24,7 +24,8 @@
#define PHONEWIDGETLISTER_H
#include "../widgets/kwidgetlister_p.h"
namespace Akonadi
{
class PhoneWidgetLister : public KWidgetLister
{
Q_OBJECT
......@@ -32,5 +33,5 @@ public:
explicit PhoneWidgetLister(QWidget *parent = Q_NULLPTR);
~PhoneWidgetLister();
};
}
#endif // PHONEWIDGETLISTER_H
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