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

Use QComboBox here

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