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

Add debug category

parent b1b376b8
......@@ -28,3 +28,4 @@ org.kde.pim.addresslocationeditorplugin kdepim-addons (kaddressbook contact edit
org.kde.pim.pkpass kdepim-addons (pkpass formater)
org.kde.pim.messageviewer.semantic kdepim-addons (Semantic plugin)
org.kde.pim.kmail_expertplugin kdepim-addons (kmail expert plugin)
org.kde.pim.kmail_insertshorturl kdepim-addons (kmail insert short url plugin)
......@@ -30,6 +30,7 @@ set(kmail_insertshorturleditorplugin_SRCS
insertshorturlconfigurewidget.cpp
${pimcommon_shorturlplugin_shorturllib_SRCS}
)
ecm_qt_declare_logging_category(kmail_insertshorturleditorplugin_SRCS HEADER kmail_insertshorturl_debug.h IDENTIFIER KMAIL_INSERTSHORTURL_LOG CATEGORY_NAME org.kde.pim.kmail_insertshorturl)
kcoreaddons_add_plugin(kmail_insertshorturleditorplugin JSON kmail_insertshorturleditorplugin.json SOURCES
${kmail_insertshorturleditorplugin_SRCS} INSTALL_NAMESPACE kmail)
......
set(kmail_insertshorturleditorplugin_autotest_SRCS)
ecm_qt_declare_logging_category(kmail_insertshorturleditorplugin_autotest_SRCS HEADER kmail_insertshorturl_debug.h IDENTIFIER KMAIL_INSERTSHORTURL_LOG CATEGORY_NAME org.kde.pim.kmail_insertshorturl)
macro(add_kmail_editorplugin_unittest _source _additional)
set( _test ${_source} ${_additional})
set( _test ${_source} ${_additional} ${kmail_insertshorturleditorplugin_autotest_SRCS})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_test(NAME ${_name} COMMAND ${_name} )
......@@ -8,6 +11,7 @@ macro(add_kmail_editorplugin_unittest _source _additional)
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n shorturlpluginprivate)
endmacro ()
add_kmail_editorplugin_unittest(insertshorturlplugineditortest.cpp
"../insertshorturlplugineditor.cpp;../insertshorturlplugineditorinterface.cpp;../insertshorturlconfiguredialog.cpp;../insertshorturlconfigurewidget.cpp")
......
......@@ -18,6 +18,7 @@
*/
#include "insertshorturlplugineditorinterface.h"
#include "kmail_insertshorturl_debug.h"
#include <KPIMTextEdit/RichTextEditor>
#include <PimCommon/NetworkManager>
#include <KLocalizedString>
......@@ -103,7 +104,6 @@ void InsertShorturlPluginEditorInterface::exec()
mCurrentEngine->setTextCursor(textCursor);
mCurrentEngine->setShortUrl(urlStr);
mCurrentEngine->generateShortUrl();
//textCursor.insertText(newText);
}
}
......@@ -111,6 +111,7 @@ void InsertShorturlPluginEditorInterface::slotShortUrlDone(const QString &url)
{
//Insert new url
//mIndicatorLabel->stop();
qCDebug(KMAIL_INSERTSHORTURL_LOG) << " new url " << url;
}
void InsertShorturlPluginEditorInterface::slotShortUrlFailed(const QString &errMsg)
......
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