Commit 230c21cb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add window title

parent bdb26e62
......@@ -36,6 +36,8 @@ void SnippetCustomFileAttachmentNameDialogTest::shouldHaveDefaultValues()
QVBoxLayout *mainLayout = dlg.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QVERIFY(!dlg.windowTitle().isEmpty());
MailCommon::SnippetCustomFileAttachmentNameWidget *mCustomWidget = dlg.findChild<MailCommon::SnippetCustomFileAttachmentNameWidget *>(QStringLiteral("mCustomWidget"));
QVERIFY(mCustomWidget);
mainLayout->addWidget(mCustomWidget);
......
......@@ -18,16 +18,20 @@
*/
#include "snippetcustomfileattachmentnamedialog.h"
#include "snippetcustomfileattachmentnamewidget.h"
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QPushButton>
#include <QVBoxLayout>
#include "snippetcustomfileattachmentnamewidget.h"
#include <KLocalizedString>
using namespace MailCommon;
SnippetCustomFileAttachmentNameDialog::SnippetCustomFileAttachmentNameDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18nc("@title:window", "Customize File Attachment"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
......
......@@ -20,9 +20,11 @@
#include "snippetcustomfileattachmentnamewidget.h"
#include <MessageComposer/ConvertSnippetVariableMenu>
#include <QHBoxLayout>
#include <KLocalizedString>
#include <QLineEdit>
#include <QPushButton>
#include <KLocalizedString>
using namespace MailCommon;
SnippetCustomFileAttachmentNameWidget::SnippetCustomFileAttachmentNameWidget(QWidget *parent)
: QWidget(parent)
......
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