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

Continue to implement remotecontentdialog

parent 21e2be19
Pipeline #47371 passed with stage
in 46 minutes and 7 seconds
......@@ -5,16 +5,22 @@
*/
#include "remotecontentdialog.h"
#include "remotecontentwidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
using namespace MessageViewer;
RemoteContentDialog::RemoteContentDialog(QWidget *parent)
: QDialog(parent)
, mRemoveContentWidget(new RemoteContentWidget(this))
{
setWindowTitle(i18nc("@title:window", "Details"));
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mRemoveContentWidget->setObjectName(QStringLiteral("mRemoveContentWidget"));
mainLayout->addWidget(mRemoveContentWidget);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
connect(buttonBox, &QDialogButtonBox::accepted, this, &RemoteContentDialog::accept);
......@@ -27,3 +33,8 @@ RemoteContentDialog::~RemoteContentDialog()
{
}
RemoteContentInfo RemoteContentDialog::info() const
{
return mRemoveContentWidget->info();
}
......@@ -10,13 +10,20 @@
#include <QDialog>
#include "messageviewer_private_export.h"
#include "remote-content/remotecontentinfo.h"
namespace MessageViewer {
class RemoteContentWidget;
class MESSAGEVIEWER_TESTS_EXPORT RemoteContentDialog : public QDialog
{
Q_OBJECT
public:
explicit RemoteContentDialog(QWidget *parent = nullptr);
~RemoteContentDialog() override;
Q_REQUIRED_RESULT RemoteContentInfo info() const;
private:
RemoteContentWidget *const mRemoveContentWidget;
};
}
#endif // REMOTECONTENTDIALOG_H
......@@ -21,3 +21,9 @@ RemoteContentWidget::~RemoteContentWidget()
{
}
RemoteContentInfo RemoteContentWidget::info() const
{
//TODO
return {};
}
......@@ -9,6 +9,7 @@
#include <QWidget>
#include "messageviewer_private_export.h"
#include "remotecontentinfo.h"
namespace MessageViewer {
class MESSAGEVIEWER_TESTS_EXPORT RemoteContentWidget : public QWidget
{
......@@ -16,6 +17,8 @@ class MESSAGEVIEWER_TESTS_EXPORT RemoteContentWidget : public QWidget
public:
explicit RemoteContentWidget(QWidget *parent = nullptr);
~RemoteContentWidget() override;
Q_REQUIRED_RESULT RemoteContentInfo info() const;
};
}
#endif // REMOTECONTENTWIDGET_H
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