Commit acd6cca4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Forward menu

parent ae070978
Pipeline #51911 passed with stage
in 41 minutes and 48 seconds
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(PIM_VERSION "5.16.47")
set(PIM_VERSION "5.16.48")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -431,6 +431,7 @@ endif()
ecm_generate_headers(MessageViewer_Camelremotecontent_HEADERS
HEADER_NAMES
RemoteContentConfigureDialog
RemoteContentMenu
REQUIRED_HEADERS MessageViewer_remotecontent_HEADERS
PREFIX MessageViewer
RELATIVE remote-content
......
......@@ -7,12 +7,12 @@
#ifndef REMOTECONTENTMENU_H
#define REMOTECONTENTMENU_H
#include "messageviewer_private_export.h"
#include "messageviewer_export.h"
#include <QMenu>
#include <QObject>
namespace MessageViewer
{
class MESSAGEVIEWER_TESTS_EXPORT RemoteContentMenu : public QMenu
class MESSAGEVIEWER_EXPORT RemoteContentMenu : public QMenu
{
public:
explicit RemoteContentMenu(QWidget *parent = nullptr);
......
......@@ -659,6 +659,12 @@ DKIMViewerMenu *Viewer::dkimViewerMenu()
return d->dkimViewerMenu();
}
RemoteContentMenu *Viewer::remoteContentMenu() const
{
Q_D(const Viewer);
return d->remoteContentMenu();
}
void Viewer::setPluginName(const QString &pluginName)
{
Q_D(Viewer);
......
......@@ -55,6 +55,7 @@ class HeaderStylePlugin;
class CSSHelper;
class ViewerPrivate;
class Viewer;
class RemoteContentMenu;
/**
* An interface to plug in a handler that is called when
......@@ -265,6 +266,8 @@ public:
Q_REQUIRED_RESULT HeaderStylePlugin *headerStylePlugin() const;
Q_REQUIRED_RESULT MessageViewer::DKIMViewerMenu *dkimViewerMenu();
Q_REQUIRED_RESULT MessageViewer::RemoteContentMenu *remoteContentMenu() const;
void setPluginName(const QString &pluginName);
void writeConfig(bool withSync = true);
......
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