Commit 89a4545a authored by Volker Krause's avatar Volker Krause

Add manual test for the IndividualMailDialog

parent b4b021d9
......@@ -14,3 +14,8 @@ target_link_libraries(resourcemanagement_gui
KF5::Libkdepim
KF5::Ldap
)
add_executable(individualmaildialog_test individualmaildialog_test.cpp ../src/individualmaildialog.cpp)
target_link_libraries(individualmaildialog_test
KF5::IncidenceEditor
)
#include "../src/individualmaildialog.h"
#include <KGuiItem>
#include <QApplication>
using namespace IncidenceEditorNG;
int main(int argc, char **argv)
{
QApplication app(argc, argv);
KCalCore::Attendee::List attendees;
KGuiItem buttonYes = KGuiItem(QStringLiteral("Send Email"));
KGuiItem buttonNo = KGuiItem(QStringLiteral("Do not send"));
KCalCore::Attendee::Ptr attendee1(new KCalCore::Attendee(QStringLiteral("test1"), QStringLiteral("test1@example.com")));
KCalCore::Attendee::Ptr attendee2(new KCalCore::Attendee(QStringLiteral("test2"), QStringLiteral("test2@example.com")));
KCalCore::Attendee::Ptr attendee3(new KCalCore::Attendee(QStringLiteral("test3"), QStringLiteral("test3@example.com")));
attendees << attendee1 << attendee2 << attendee3;
IndividualMailDialog dialog(QStringLiteral("title"), attendees, buttonYes, buttonNo, nullptr);
dialog.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