Commit 60612a05 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return variable directly

parent 8ee70880
Pipeline #57972 passed with stage
in 40 minutes and 40 seconds
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(PIM_VERSION "5.17.48")
set(PIM_VERSION "5.17.49")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -77,6 +77,11 @@ QString PluginComposerInterface::insertDayOfWeek() const
return mComposerViewInterface->insertDayOfWeek();
}
QString PluginComposerInterface::variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const
{
return MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(type);
}
QString PluginComposerInterface::convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const
{
return MessageComposer::ConvertSnippetVariablesJob::convertVariables(mComposerViewInterface,
......
......@@ -38,6 +38,8 @@ public:
Q_REQUIRED_RESULT QString convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
Q_REQUIRED_RESULT QString convertText(const QString &str) const;
Q_REQUIRED_RESULT QString variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
private:
MessageComposer::ComposerViewInterface *mComposerViewInterface = nullptr;
};
......
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