Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Add test application

parent 6e2ba928
......@@ -20,6 +20,7 @@
#include <kapplication.h>
#include <KCmdLineArgs>
#include <KLocalizedString>
#include "gravatar/widgets/gravatardownloadpixmapwidget.h"
int main (int argc, char **argv)
{
......@@ -28,10 +29,10 @@ int main (int argc, char **argv)
KApplication app;
//w->show();
app.exec();
//delete w;
return 0;
PimCommon::GravatarDownloadPixmapWidget *w = new PimCommon::GravatarDownloadPixmapWidget;
w->show();
int ret = app.exec();
delete w;
return ret;
}
......@@ -67,7 +67,7 @@ void GravatarDownloadPixmapWidget::slotSearchButton()
PimCommon::GravatarResolvUrlJob *job = new PimCommon::GravatarResolvUrlJob(this);
job->setEmail(mLineEdit->text());
if (job->canStart()) {
connect(job, SIGNAL(finished()), this, SLOT(slotResolvUrlFinish()));
connect(job, SIGNAL(finished(PimCommon::GravatarResolvUrlJob*)), this, SLOT(slotResolvUrlFinish(PimCommon::GravatarResolvUrlJob*)));
job->start();
}
}
......
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