summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 21:37:32 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 21:37:32 (GMT)
commit7d3cf093bd451d77ac6ccd57f39870b48a8a778f (patch)
treeb340cdb4545119550d93a12162250bb2a8015aba
parent85ab78ead32750eb790d5be9066d486015d975a7 (diff)
Add setObjectName
-rw-r--r--src/filter/dialog/filteractionmissingargumentdialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/filter/dialog/filteractionmissingargumentdialog.cpp b/src/filter/dialog/filteractionmissingargumentdialog.cpp
index c565c05..1da6247 100644
--- a/src/filter/dialog/filteractionmissingargumentdialog.cpp
+++ b/src/filter/dialog/filteractionmissingargumentdialog.cpp
@@ -52,10 +52,12 @@ FilterActionMissingCollectionDialog::FilterActionMissingCollectionDialog(
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QLabel *lab = new QLabel(i18n("Folder path was \"%1\".", argStr));
+ lab->setObjectName(QStringLiteral("argumentlabel"));
lab->setWordWrap(true);
mainLayout->addWidget(lab);
if (!list.isEmpty()) {
lab = new QLabel(i18n("The following folders can be used for this filter:"));
+ lab->setObjectName(QStringLiteral("label"));
lab->setWordWrap(true);
mainLayout->addWidget(lab);
mListwidget = new QListWidget(this);
@@ -73,6 +75,7 @@ FilterActionMissingCollectionDialog::FilterActionMissingCollectionDialog(
}
QLabel *label = new QLabel(this);
+ label->setObjectName(QStringLiteral("folderlabel"));
label->setWordWrap(true);
if (filtername.isEmpty()) {
label->setText(i18n("Please select a folder"));
@@ -82,17 +85,19 @@ FilterActionMissingCollectionDialog::FilterActionMissingCollectionDialog(
filtername));
mainLayout->addWidget(label);
mFolderRequester = new MailCommon::FolderRequester(this);
+ mFolderRequester->setObjectName(QStringLiteral("folderrequester"));
connect(mFolderRequester, &MailCommon::FolderRequester::folderChanged, this, &FilterActionMissingCollectionDialog::slotFolderChanged);
mainLayout->addWidget(mFolderRequester);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
+ buttonBox->setObjectName(QStringLiteral("buttonbox"));
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setDefault(true);
mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return);
+ mOkButton->setEnabled(false);
connect(buttonBox, &QDialogButtonBox::accepted, this, &FilterActionMissingCollectionDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &FilterActionMissingCollectionDialog::reject);
mainLayout->addWidget(buttonBox);
- mOkButton->setEnabled(false);
readConfig();
}