Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cdad6561 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to implement createlink dialog

parent 5d3ddee3
......@@ -17,5 +17,5 @@ add_kmail_converttext_unittest(markdownplugintest.cpp "../markdownenginepage.cpp
add_kmail_converttext_unittest(markdownconfigurewidgettest.cpp "../markdownconfigurewidget.cpp")
add_kmail_converttext_unittest(markdownconfiguredialogtest.cpp "../markdownconfiguredialog.cpp;../markdownconfigurewidget.cpp")
add_kmail_converttext_unittest(markdownpreviewdialogtest.cpp "../markdownpreviewdialog.cpp;../markdownpreviewwidget.cpp;../markdownenginepage.cpp;../markdownconverter.cpp")
add_kmail_converttext_unittest(markdowncreatelinkwidgettest.cpp "")
add_kmail_converttext_unittest(markdowncreatelinkdialogtest.cpp "")
add_kmail_converttext_unittest(markdowncreatelinkwidgettest.cpp "../markdowncreatelinkwidget.cpp")
add_kmail_converttext_unittest(markdowncreatelinkdialogtest.cpp "../markdowncreatelinkdialog.cpp;../markdowncreatelinkwidget.cpp")
......@@ -18,6 +18,10 @@
*/
#include "markdowncreatelinkdialogtest.h"
#include "markdowncreatelinkdialog.h"
#include "markdowncreatelinkwidget.h"
#include <QTest>
QTEST_MAIN(MarkdownCreateLinkDialogTest)
......@@ -26,3 +30,8 @@ MarkdownCreateLinkDialogTest::MarkdownCreateLinkDialogTest(QObject *parent)
{
}
void MarkdownCreateLinkDialogTest::shouldHaveDefaultValue()
{
}
......@@ -28,6 +28,8 @@ class MarkdownCreateLinkDialogTest : public QObject
public:
explicit MarkdownCreateLinkDialogTest(QObject *parent = nullptr);
~MarkdownCreateLinkDialogTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // MARKDOWNCREATELINKDIALOGTEST_H
......@@ -18,6 +18,7 @@
*/
#include "markdowncreatelinkwidgettest.h"
#include "markdowncreatelinkwidget.h"
#include <QTest>
QTEST_MAIN(MarkdownCreateLinkWidgetTest)
......@@ -26,3 +27,8 @@ MarkdownCreateLinkWidgetTest::MarkdownCreateLinkWidgetTest(QObject *parent)
{
}
void MarkdownCreateLinkWidgetTest::shouldHaveDefaultValue()
{
}
......@@ -28,6 +28,8 @@ class MarkdownCreateLinkWidgetTest : public QObject
public:
explicit MarkdownCreateLinkWidgetTest(QObject *parent = nullptr);
~MarkdownCreateLinkWidgetTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // MARKDOWNCREATELINKWIDGETTEST_H
......@@ -33,9 +33,20 @@ MarkdownCreateLinkDialog::MarkdownCreateLinkDialog(QWidget *parent)
mMarkdownCreateLinkWidget->setObjectName(QStringLiteral("markdowncreatelinkwidget"));
mainLayout->addWidget(mMarkdownCreateLinkWidget);
QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
box->setObjectName(QStringLiteral("buttonbox"));
mainLayout->addWidget(box);
connect(box, &QDialogButtonBox::accepted, this, &MarkdownCreateLinkDialog::accept);
connect(box, &QDialogButtonBox::rejected, this, &MarkdownCreateLinkDialog::reject);
}
MarkdownCreateLinkDialog::~MarkdownCreateLinkDialog()
{
}
QString MarkdownCreateLinkDialog::linkStr() const
{
return mMarkdownCreateLinkWidget->linkStr();
}
......@@ -28,6 +28,7 @@ class MarkdownCreateLinkDialog : public QDialog
public:
explicit MarkdownCreateLinkDialog(QWidget *parent = nullptr);
~MarkdownCreateLinkDialog();
QString linkStr() const;
private:
MarkdownCreateLinkWidget *mMarkdownCreateLinkWidget = nullptr;
};
......
......@@ -31,3 +31,9 @@ MarkdownCreateLinkWidget::~MarkdownCreateLinkWidget()
{
}
QString MarkdownCreateLinkWidget::linkStr() const
{
//TODO
return {};
}
......@@ -28,6 +28,8 @@ class MarkdownCreateLinkWidget : public QWidget
public:
explicit MarkdownCreateLinkWidget(QWidget *parent = nullptr);
~MarkdownCreateLinkWidget();
public:
QString linkStr() const;
};
#endif // MARKDOWNCREATELINKWIDGET_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