Commit 16f90fdc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement create open with url info

parent b1990237
Pipeline #122929 passed with stage
in 14 minutes and 42 seconds
......@@ -51,7 +51,7 @@ include(ECMQtDeclareLoggingCategory)
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED WebEngineWidgets Widgets Test)
find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} CONFIG REQUIRED WebEngineWidgets Widgets Test)
find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Config ${KF5_MIN_VERSION} CONFIG REQUIRED)
......
......@@ -21,6 +21,10 @@ target_sources(openurlwithconfigure PRIVATE
openurlwithconfigurewidget.h
openurlwithconfigurewidget.cpp
openurlwith_private_export.h
openurlwithconfigurecreatedialog.h
openurlwithconfigurecreatedialog.cpp
openurlwithconfigurecreatewidget.h
openurlwithconfigurecreatewidget.cpp
)
ecm_qt_declare_logging_category(openurlwithconfigure HEADER libopenurlwithconfigure_debug.h IDENTIFIER LIBOPENURLWITHCONFIGURE_PLUGIN_LOG
......
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "openurlwithconfigurecreatedialog.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
OpenUrlWithConfigureCreateDialog::OpenUrlWithConfigureCreateDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18nc("@title:window", "Configure Open Url With Plugin"));
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
// mOpenUrlWithWidget->setObjectName(QStringLiteral("mOpenUrlWithWidget"));
// mainLayout->addWidget(mOpenUrlWithWidget);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
mainLayout->addWidget(buttonBox);
// connect(buttonBox, &QDialogButtonBox::accepted, this, &OpenUrlWithConfigureDialog::slotAccepted);
// connect(buttonBox, &QDialogButtonBox::rejected, this, &OpenUrlWithConfigureDialog::reject);
}
OpenUrlWithConfigureCreateDialog::~OpenUrlWithConfigureCreateDialog()
{
}
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "openurlwith_private_export.h"
#include <QDialog>
class LIBOPENURLWITHCONFIGURE_TESTS_EXPORT OpenUrlWithConfigureCreateDialog : public QDialog
{
Q_OBJECT
public:
explicit OpenUrlWithConfigureCreateDialog(QWidget *parent = nullptr);
~OpenUrlWithConfigureCreateDialog() override;
};
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "openurlwithconfigurecreatewidget.h"
#include <QVBoxLayout>
OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *parent)
: QWidget{parent}
{
}
OpenUrlWithConfigureCreateWidget::~OpenUrlWithConfigureCreateWidget()
{
}
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "openurlwith_private_export.h"
#include <QWidget>
class LIBOPENURLWITHCONFIGURE_TESTS_EXPORT OpenUrlWithConfigureCreateWidget : public QWidget
{
Q_OBJECT
public:
explicit OpenUrlWithConfigureCreateWidget(QWidget *parent = nullptr);
~OpenUrlWithConfigureCreateWidget() override;
};
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