Commit 7ca83530 authored by Laurent Montel's avatar Laurent Montel 😁

Create todo is a plugin so we can't use it

parent 520cbe1c
......@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
set(MESSAGELIB_LIB_VERSION "5.1.58")
set(MESSAGELIB_LIB_VERSION "5.1.59")
set(KF5_VERSION "5.17.0")
set(KDEPIMLIBS_LIB_VERSION "5.1.42")
......
......@@ -383,7 +383,6 @@ void HeaderStyleUtil::addMailAction(QVariantHash &headerObject)
headerObject.insert(QStringLiteral("replyallaction"), mailAction(Viewer::ReplyToAll));
headerObject.insert(QStringLiteral("forwardaction"), mailAction(Viewer::Forward));
headerObject.insert(QStringLiteral("newmessageaction"), mailAction(Viewer::NewMessage));
headerObject.insert(QStringLiteral("createtodoaction"), mailAction(Viewer::CreateTodo));
}
QString HeaderStyleUtil::mailAction(Viewer::MailAction action) const
......@@ -415,11 +414,6 @@ QString HeaderStyleUtil::mailAction(Viewer::MailAction action) const
html = QStringLiteral("<a href=\"kmailaction:newMessage\"><img title=\"%2\" src=\"file:///%1\"></a>").arg(iconPath, i18n("New Message"));
break;
}
case Viewer::CreateTodo: {
const QString iconPath = IconNameCache::instance()->iconPath(QStringLiteral("task-new"), KIconLoader::Small);
html = QStringLiteral("<a href=\"kmailaction:createTodo\"><img title=\"%2\" src=\"file:///%1\"></a>").arg(iconPath, i18n("Create To-Do"));
break;
}
}
return html;
}
......@@ -107,9 +107,6 @@ public:
} else if (urlPath == QStringLiteral("newMessage")) {
viewer->setMailAction(MessageViewer::Viewer::NewMessage);
return true;
} else if (urlPath == QStringLiteral("createTodo")) {
viewer->setMailAction(MessageViewer::Viewer::CreateTodo);
return true;
}
}
return false;
......
......@@ -131,8 +131,7 @@ public:
Reply,
ReplyToAll,
Forward,
NewMessage,
CreateTodo
NewMessage
};
/**
......
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