Commit 11dde50f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add private export symbol

parent c845aa5b
Pipeline #51515 canceled with stage
in 4 minutes and 57 seconds
/* This file is part of the KDE project
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "mailmerge_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
#ifndef MAILMERGEPRIVATE_TESTS_EXPORT
#define MAILMERGEPRIVATE_TESTS_EXPORT MAILMERGE_EXPORT
#endif
#else /* not compiling tests */
#define MAILMERGEPRIVATE_TESTS_EXPORT
#endif
......@@ -7,10 +7,11 @@
#ifndef ADDRESSBOOKWIDGET_H
#define ADDRESSBOOKWIDGET_H
#include "mailmergeplugin_private_export.h"
#include <QWidget>
namespace MailMerge
{
class AddressBookWidget : public QWidget
class MAILMERGEPRIVATE_TESTS_EXPORT AddressBookWidget : public QWidget
{
Q_OBJECT
public:
......
......@@ -7,13 +7,13 @@
#ifndef CSVWIDGET_H
#define CSVWIDGET_H
#include "mailmergeplugin_private_export.h"
#include <QWidget>
class KUrlRequester;
class QUrl;
namespace MailMerge
{
class CsvWidget : public QWidget
class MAILMERGEPRIVATE_TESTS_EXPORT CsvWidget : public QWidget
{
Q_OBJECT
public:
......
......@@ -7,8 +7,8 @@
#ifndef MAILMERGEWIDGET_H
#define MAILMERGEWIDGET_H
#include "mailmergeplugin_private_export.h"
#include <QWidget>
class QComboBox;
class QStackedWidget;
......@@ -17,7 +17,7 @@ namespace MailMerge
class CsvWidget;
class AttachmentListWidget;
class AddressBookWidget;
class MailMergeWidget : public QWidget
class MAILMERGEPRIVATE_TESTS_EXPORT MailMergeWidget : public QWidget
{
Q_OBJECT
public:
......
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