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

Add class for message format

parent 6b0b00ef
......@@ -154,6 +154,7 @@ if (KDEPIM_BUILD_DESKTOP)
set(kmailprivate_widgets_LIB_SRCS
widgets/collectionpane.cpp
widgets/vacationscriptindicatorwidget.cpp
widgets/displaymessageformatactionmenu.cpp
)
set(kmailprivate_tag_LIB_SRCS
tag/tagactionmanager.cpp
......
......@@ -11,3 +11,10 @@ qt4_add_dbus_interfaces(dbustest_SRCS ${CMAKE_BINARY_DIR}/kmail/org.kde.kmail.km
kde4_add_executable(dbustest TEST ${dbustest_SRCS})
add_dependencies(dbustest kmail_xml)
target_link_libraries(dbustest ${KDE4_KIO_LIBS})
set( kmail_displaymenu_source displaymessageformatactionmenutest.cpp )
kde4_add_unit_test( displaymessageformatactionmenutest ${kmail_displaymenu_source})
target_link_libraries( displaymessageformatactionmenutest ${QT_QTTEST_LIBRARY} ${KDE4_KDEUI_LIBS})
/*
Copyright (c) 2014 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 "displaymessageformatactionmenutest.h"
#include <qtest_kde.h>
DisplayMessageFormatActionMenuTest::DisplayMessageFormatActionMenuTest()
{
}
QTEST_KDEMAIN(DisplayMessageFormatActionMenuTest, GUI)
/*
Copyright (c) 2014 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 DISPLAYMESSAGEFORMATACTIONMENUTEST_H
#define DISPLAYMESSAGEFORMATACTIONMENUTEST_H
#include <QObject>
class DisplayMessageFormatActionMenuTest : public QObject
{
Q_OBJECT
public:
DisplayMessageFormatActionMenuTest();
};
#endif // DISPLAYMESSAGEFORMATACTIONMENUTEST_H
/*
Copyright (c) 2014 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 "displaymessageformatactionmenu.h"
#include <KLocalizedString>
DisplayMessageFormatActionMenu::DisplayMessageFormatActionMenu(QObject *parent)
: KActionMenu(parent)
{
}
DisplayMessageFormatActionMenu::~DisplayMessageFormatActionMenu()
{
}
/*
Copyright (c) 2014 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 DisplayMessageFormatActionMenu_H
#define DisplayMessageFormatActionMenu_H
#include <KActionMenu>
class DisplayMessageFormatActionMenu : public KActionMenu
{
Q_OBJECT
public:
explicit DisplayMessageFormatActionMenu(QObject *parent=0);
~DisplayMessageFormatActionMenu();
};
#endif // DisplayMessageFormatActionMenu_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