Commit 9730a86d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QComboBox here

parent 0f2b37a3
......@@ -19,7 +19,7 @@
#include "filteractionmissingtemplatedialogtest.h"
#include "../filter/dialog/filteractionmissingtemplatedialog.h"
#include <KComboBox>
#include <QComboBox>
#include <QDialogButtonBox>
#include <QLabel>
#include <QStandardPaths>
......@@ -47,7 +47,7 @@ void FilterActionMissingTemplateDialogTest::shouldHaveDefaultValue()
QVERIFY(label);
QVERIFY(!label->text().isEmpty());
KComboBox *mComboBoxTemplate = dlg.findChild<KComboBox *>(QStringLiteral("comboboxtemplate"));
QComboBox *mComboBoxTemplate = dlg.findChild<QComboBox *>(QStringLiteral("comboboxtemplate"));
QVERIFY(mComboBoxTemplate);
}
......
......@@ -21,7 +21,7 @@
#include <KSharedConfig>
#include <KComboBox>
#include <QComboBox>
#include <KConfigGroup>
#include <KLocalizedString>
......@@ -47,7 +47,7 @@ FilterActionMissingTemplateDialog::FilterActionMissingTemplateDialog(
filtername));
label->setWordWrap(true);
mainLayout->addWidget(label);
mComboBoxTemplate = new KComboBox(this);
mComboBoxTemplate = new QComboBox(this);
mComboBoxTemplate->setObjectName(QStringLiteral("comboboxtemplate"));
mComboBoxTemplate->addItems(templateList);
mainLayout->addWidget(mComboBoxTemplate);
......
......@@ -22,7 +22,7 @@
#include <QDialog>
class KComboBox;
class QComboBox;
namespace MailCommon {
class FilterActionMissingTemplateDialog : public QDialog
{
......@@ -35,7 +35,7 @@ public:
private:
void readConfig();
void writeConfig();
KComboBox *mComboBoxTemplate = nullptr;
QComboBox *mComboBoxTemplate = nullptr;
};
}
#endif // FILTERACTIONMISSINGTEMPLATEDIALOG_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