Commit 3cd3342c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add private symbol export

parent 4d568e4b
......@@ -6,10 +6,10 @@
#pragma once
#include "akonadidatasetools_export.h"
#include "akonadidatasetools_private_export.h"
#include <QDialog>
class AkonadiDatabaseToolsWidget;
class AKONADIDATASETOOLS_EXPORT AkonadiDatabaseToolsDialog : public QDialog
class AKONADIDATASETOOLS_TESTS_EXPORT AkonadiDatabaseToolsDialog : public QDialog
{
Q_OBJECT
public:
......
......@@ -7,10 +7,10 @@
#pragma once
#include "akonadidatabasetoolsutils.h"
#include "akonadidatasetools_export.h"
#include "akonadidatasetools_private_export.h"
#include <QObject>
class AKONADIDATASETOOLS_EXPORT AkonadiDatabaseToolsJob : public QObject
class AKONADIDATASETOOLS_TESTS_EXPORT AkonadiDatabaseToolsJob : public QObject
{
Q_OBJECT
public:
......
......@@ -5,19 +5,23 @@
*/
#include "akonadidatabasetoolswidget.h"
#include <QPlainTextEdit>
#include <QVBoxLayout>
AkonadiDatabaseToolsWidget::AkonadiDatabaseToolsWidget(QWidget *parent)
: QWidget{parent}
, mPlainTextEdit(new QPlainTextEdit(this))
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(QMargins{});
mPlainTextEdit->setObjectName(QStringLiteral("mPlainTextEdit"));
mainLayout->addWidget(mPlainTextEdit);
}
AkonadiDatabaseToolsWidget::~AkonadiDatabaseToolsWidget() = default;
void AkonadiDatabaseToolsWidget::appendText(const QString &text)
{
// TODO
mPlainTextEdit->insertPlainText(text);
}
......@@ -6,9 +6,10 @@
#pragma once
#include "akonadidatasetools_private_export.h"
#include <QWidget>
class AkonadiDatabaseToolsWidget : public QWidget
class QPlainTextEdit;
class AKONADIDATASETOOLS_TESTS_EXPORT AkonadiDatabaseToolsWidget : public QWidget
{
Q_OBJECT
public:
......@@ -16,4 +17,7 @@ public:
~AkonadiDatabaseToolsWidget() override;
void appendText(const QString &text);
private:
QPlainTextEdit *const mPlainTextEdit;
};
/* This file is part of the KDE project
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "akonadidatasetools_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
#ifndef AKONADIDATASETOOLS_TESTS_EXPORT
#define AKONADIDATASETOOLS_TESTS_EXPORT AKONADIDATASETOOLS_EXPORT
#endif
#else /* not compiling tests */
#define AKONADIDATASETOOLS_TESTS_EXPORT
#endif
Supports Markdown
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