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 e90ebb46 authored by Laurent Montel's avatar Laurent Montel 😁

Add widget

parent 237c9208
......@@ -9,5 +9,5 @@ set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
add_akonadi_isolated_test_advanced( gravatarcreatejobtest.cpp "../job/gravatarcreatejob.cpp" "kaddressbookprivate;pimcommon")
add_akonadi_isolated_test_advanced( gravatarupdatejobtest.cpp "../job/gravatarupdatejob.cpp" "kaddressbookprivate;pimcommon;kabc")
add_akonadi_isolated_test_advanced( gravatarcreatewidgettest.cpp "../widgets/gravatarcreatewidget.cpp" "kaddressbookprivate;pimcommon")
add_akonadi_isolated_test_advanced( gravatarcreatedialogtest.cpp "../widgets/gravatarcreatedialog.cpp" "kaddressbookprivate;pimcommon")
add_akonadi_isolated_test_advanced( gravatarcreatedialogtest.cpp "../widgets/gravatarcreatedialog.cpp;../widgets/gravatarcreatewidget.cpp" "kaddressbookprivate;pimcommon")
......@@ -16,12 +16,19 @@
*/
#include "gravatarcreatedialog.h"
#include "gravatarcreatewidget.h"
#include <QVBoxLayout>
#include <KLocalizedString>
using namespace KABGravatar;
GravatarCreateDialog::GravatarCreateDialog(QWidget *parent)
: QDialog(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
mCreateWidget = new GravatarCreateWidget(this);
mCreateWidget->setObjectName(QLatin1String("gravatarcreatewidget"));
mainLayout->addWidget(mCreateWidget);
}
GravatarCreateDialog::~GravatarCreateDialog()
......
......@@ -21,12 +21,15 @@
#include <QDialog>
namespace KABGravatar {
class GravatarCreateWidget;
class GravatarCreateDialog : public QDialog
{
Q_OBJECT
public:
explicit GravatarCreateDialog(QWidget *parent=0);
~GravatarCreateDialog();
private:
GravatarCreateWidget *mCreateWidget;
};
}
......
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