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

Add scamconfiguresettings_private_export.h

parent 6a87c7b9
Pipeline #92161 canceled with stage
/* 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 "libscamconfiguresettings_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
#ifndef LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT
#define LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT LIBSCAMCONFIGURESETTINGS_EXPORT
#endif
#else /* not compiling tests */
#define LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT
#endif
......@@ -5,16 +5,21 @@
*/
#include "scamconfiguresettingsdialog.h"
#include "scamconfiguresettingswidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
ScamConfigureSettingsDialog::ScamConfigureSettingsDialog(QWidget *parent)
: QDialog(parent)
, mScamConfigureSettingsWidget(new ScamConfigureSettingsWidget(this))
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
setWindowTitle(i18nc("@title:window", "Configure Scam Settings"));
mScamConfigureSettingsWidget->setObjectName(QStringLiteral("mScamConfigureSettingsWidget"));
mainLayout->addWidget(mScamConfigureSettingsWidget);
}
ScamConfigureSettingsDialog::~ScamConfigureSettingsDialog()
......
......@@ -6,12 +6,16 @@
#pragma once
#include "scamconfiguresettings_private_export.h"
#include <QDialog>
class ScamConfigureSettingsDialog : public QDialog
class ScamConfigureSettingsWidget;
class LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT ScamConfigureSettingsDialog : public QDialog
{
Q_OBJECT
public:
explicit ScamConfigureSettingsDialog(QWidget *parent = nullptr);
~ScamConfigureSettingsDialog() override;
private:
ScamConfigureSettingsWidget *const mScamConfigureSettingsWidget;
};
......@@ -5,6 +5,8 @@
*/
#include "scamconfiguresettingswidget.h"
#include <KLocalizedString>
#include <QVBoxLayout>
ScamConfigureSettingsWidget::ScamConfigureSettingsWidget(QWidget *parent)
: QWidget{parent}
......
......@@ -6,9 +6,9 @@
#pragma once
#include "scamconfiguresettings_private_export.h"
#include <QWidget>
class ScamConfigureSettingsWidget : public QWidget
class LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT ScamConfigureSettingsWidget : public QWidget
{
Q_OBJECT
public:
......
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