Commit 232cce23 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 5295874a
......@@ -24,11 +24,10 @@
#include "messagecomposer_debug.h"
#include <KLocalizedString>
namespace MessageComposer
{
using namespace MessageComposer;
//@cond PRIVATE
class DictionaryComboBoxPrivate
class MessageComposer::DictionaryComboBoxPrivate
{
public:
explicit DictionaryComboBoxPrivate(DictionaryComboBox *combo) : q(combo) {}
......@@ -47,8 +46,8 @@ DictionaryComboBox::DictionaryComboBox(QWidget *parent)
: QComboBox(parent), d(new DictionaryComboBoxPrivate(this))
{
reloadCombo();
connect(this, SIGNAL(activated(int)),
SLOT(slotDictionaryChanged(int)));
connect(this, QOverload<int>::of(&QComboBox::activated),
this, [this](int item) {d->slotDictionaryChanged(item);} );
}
DictionaryComboBox::~DictionaryComboBox()
......@@ -127,6 +126,4 @@ void DictionaryComboBox::reloadCombo()
delete speller;
}
}
#include "moc_dictionarycombobox.cpp"
......@@ -111,7 +111,6 @@ Q_SIGNALS:
private:
DictionaryComboBoxPrivate *const d;
Q_PRIVATE_SLOT(d, void slotDictionaryChanged(int))
};
}
......
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