Commit 8db78012 authored by Laurent Montel's avatar Laurent Montel 😁

Improve it

parent 74ffd09b
......@@ -265,6 +265,8 @@ if (BUILD_TESTING)
add_subdirectory(editor/autotests)
add_subdirectory(editor/addresseditor/autotests/)
add_subdirectory(editor/addresseditor/tests)
add_subdirectory(editor/generalinfoeditor/autotests/)
add_subdirectory(editor/generalinfoeditor/tests)
endif()
......
......@@ -13,7 +13,6 @@ set(addresseditor_SRCS
add_executable(addresseditortest ${addresseditor_SRCS})
target_link_libraries(addresseditortest
KF5::I18n
Qt5::Widgets
KF5::AkonadiContact
KF5::Contacts
......
......@@ -29,7 +29,8 @@ using namespace Akonadi;
GeneralInfoWidget::GeneralInfoWidget(QWidget *parent)
: QWidget(parent)
{
QGridLayout *grid = new QGridLayout(this);
grid->setMargin(0);
}
GeneralInfoWidget::~GeneralInfoWidget()
......
......@@ -24,6 +24,7 @@
#define GENERALINFOWIDGET_H
#include <QWidget>
class QLineEdit;
namespace Akonadi
{
......@@ -33,7 +34,8 @@ class GeneralInfoWidget : public QWidget
public:
explicit GeneralInfoWidget(QWidget *parent = Q_NULLPTR);
~GeneralInfoWidget();
private:
QLineEdit *mNickName;
};
}
#endif // GENERALINFOWIDGET_H
set(generalinfoeditor_SRCS
main.cpp
)
add_executable(generalinfoeditortest ${generalinfoeditor_SRCS})
target_link_libraries(generalinfoeditortest
Qt5::Widgets
KF5::AkonadiContact
KF5::Contacts
KF5::I18n
KF5::Completion
KF5::IconThemes
KF5::WidgetsAddons
)
/*
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 <QApplication>
//using namespace Akonadi;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//TODO
return app.exec();
}
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