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

We need a config dialogbox too

parent b25005de
set(kmail_insertshorturleditorplugin_SRCS
insertshorturlplugineditor.cpp
insertshorturlplugineditorinterface.cpp
insertshorturlconfiguredialog.cpp
)
kcoreaddons_add_plugin(kmail_insertshorturleditorplugin JSON kmail_insertshorturleditorplugin.json SOURCES
${kmail_insertshorturleditorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_insertshorturleditorplugin
KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n KF5::AkonadiContact
KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
)
if(BUILD_TESTING)
......
......@@ -5,7 +5,7 @@ macro(add_kmail_editorplugin_unittest _source _additional)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_editorplugin-${_name})
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n KF5::AkonadiContact)
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n)
endmacro ()
add_kmail_editorplugin_unittest(insertshorturlplugineditortest.cpp
......
/*
Copyright (C) 2017 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 as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
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; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "insertshorturlconfiguredialog.h"
#include <QVBoxLayout>
#include <QDialogButtonBox>
InsertShorturlConfigureDialog::InsertShorturlConfigureDialog(QWidget *parent)
: QDialog(parent)
{
}
InsertShorturlConfigureDialog::~InsertShorturlConfigureDialog()
{
}
/*
Copyright (C) 2017 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 as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
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; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef INSERTSHORTURLCONFIGUREDIALOG_H
#define INSERTSHORTURLCONFIGUREDIALOG_H
#include <QDialog>
class InsertShorturlConfigureDialog : public QDialog
{
Q_OBJECT
public:
explicit InsertShorturlConfigureDialog(QWidget *parent = nullptr);
~InsertShorturlConfigureDialog();
};
#endif // INSERTSHORTURLCONFIGUREDIALOG_H
......@@ -20,6 +20,7 @@
#include "insertshorturlplugineditor.h"
#include "insertshorturlplugineditorinterface.h"
#include <kpluginfactory.h>
#include <QPointer>
K_PLUGIN_FACTORY_WITH_JSON(InsertShorturlPluginEditorFactory, "kmail_insertshorturleditorplugin.json", registerPlugin<InsertShorturlPluginEditor>();
)
......@@ -52,6 +53,10 @@ bool InsertShorturlPluginEditor::hasConfigureDialog() const
void InsertShorturlPluginEditor::showConfigureDialog(QWidget *parent)
{
// QPointer<ExternalComposerConfigureDialog> dlg = new ExternalComposerConfigureDialog(parent);
// dlg->exec();
// delete dlg;
//TODO
}
......
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