Commit 4a38a47f authored by David Faure's avatar David Faure
Browse files

Add test program for EmailAddressSelectionModel

parent 803f1cb0
...@@ -22,3 +22,4 @@ endmacro() ...@@ -22,3 +22,4 @@ endmacro()
add_akonadi_contact_demo(emailaddressselectionwidgettest.cpp) add_akonadi_contact_demo(emailaddressselectionwidgettest.cpp)
add_akonadi_contact_demo(emailaddressselectiondialogtest.cpp) add_akonadi_contact_demo(emailaddressselectiondialogtest.cpp)
add_akonadi_contact_demo(emailaddressselectionmodeltest.cpp)
/*
Copyright (c) 2017 David Faure <faure@kde.org>
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 "emailaddressselectionmodel.h"
#include <QTreeView>
#include <Akonadi/Contact/ContactsTreeModel>
#include <kaboutdata.h>
#include <qapplication.h>
#include <KLocalizedString>
int main(int argc, char **argv)
{
KAboutData aboutData(QStringLiteral("emailaddressselectiondialogtest"), QStringLiteral("Test EmailAddressSelectionModel"), QStringLiteral("0.1"));
KAboutData::setApplicationData(aboutData);
QApplication app(argc, argv);
Akonadi::EmailAddressSelectionModel model;
QTreeView view;
view.setModel(model.model());
view.show();
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