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

Add config widget

parent dae764c3
......@@ -42,7 +42,7 @@ add_messageviewer_unittest( todoedittest.cpp )
add_messageviewer_unittest( eventedittest.cpp )
add_messageviewer_unittest( eventdatetimewidgettest.cpp )
add_messageviewer_unittest( messagedisplayformatattributetest.cpp )
add_messageviewer_unittest( gravatarconfigwidgettest.cpp )
set( messageviewer_converthtmltoplaintext_SRCS converthtmltoplaintexttest.cpp ../viewer/converthtmltoplaintext.cpp)
kde4_add_unit_test( messageviewer_converthtmltoplaintext ${messageviewer_converthtmltoplaintext_SRCS})
target_link_libraries( messageviewer_converthtmltoplaintext ${QT_QTTEST_LIBRARY} ${KDE4_KDEUI_LIBS} ${Grantlee_GUI_LIBRARIES})
......
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "gravatarconfigwidgettest.h"
#include "../widgets/gravatarconfigwidget.h"
#include <QCheckBox>
#include <qtest_kde.h>
GravatarConfigWidgetTest::GravatarConfigWidgetTest(QObject *parent)
: QObject(parent)
{
}
GravatarConfigWidgetTest::~GravatarConfigWidgetTest()
{
}
void GravatarConfigWidgetTest::shouldHaveDefaultValue()
{
MessageViewer::GravatarConfigWidget w;
QCheckBox *checkBox = qFindChild<QCheckBox *>(&w, QLatin1String("gravatarcheckbox"));
QVERIFY(checkBox);
}
QTEST_KDEMAIN(GravatarConfigWidgetTest, GUI)
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAVATARCONFIGWIDGETTEST_H
#define GRAVATARCONFIGWIDGETTEST_H
#include <QObject>
class GravatarConfigWidgetTest : public QObject
{
Q_OBJECT
public:
explicit GravatarConfigWidgetTest(QObject *parent = 0);
~GravatarConfigWidgetTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // GRAVATARCONFIGWIDGETTEST_H
#include "gravatarconfigwidget.h"
GravatarConfigWidget::GravatarConfigWidget(QWidget *parent) : QWidget(parent)
{
}
#ifndef GRAVATARCONFIGWIDGET_H
#define GRAVATARCONFIGWIDGET_H
#include <QWidget>
class GravatarConfigWidget : public QWidget
{
Q_OBJECT
public:
explicit GravatarConfigWidget(QWidget *parent = 0);
signals:
public slots:
};
#endif // GRAVATARCONFIGWIDGET_H
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