Commit dd8dde26 authored by Laurent Montel's avatar Laurent Montel 😁

Fix forward class

parent ea2221c0
......@@ -59,8 +59,9 @@ AddresseeLineEditPrivate::AddresseeLineEditPrivate(KPIM::AddresseeLineEdit *qq,
, mShowRecentAddresses(true)
, mCanDeleteLineEdit(true)
{
mDelayedQueryTimer.setSingleShot(true);
connect(&mDelayedQueryTimer, &QTimer::timeout, this, &AddresseeLineEditPrivate::slotTriggerDelayedQueries);
mDelayedQueryTimer = new QTimer(this);
mDelayedQueryTimer->setSingleShot(true);
connect(mDelayedQueryTimer, &QTimer::timeout, this, &AddresseeLineEditPrivate::slotTriggerDelayedQueries);
}
AddresseeLineEditPrivate::~AddresseeLineEditPrivate()
......@@ -396,8 +397,8 @@ void AddresseeLineEditPrivate::slotTriggerDelayedQueries()
void AddresseeLineEditPrivate::startSearches()
{
if (!mDelayedQueryTimer.isActive()) {
mDelayedQueryTimer.start(50);
if (!mDelayedQueryTimer->isActive()) {
mDelayedQueryTimer->start(50);
}
}
......
......@@ -19,9 +19,7 @@
#define ADDRESSEELINEEDIT_P_H
#include <QStringList>
#include <QObject>
#include <QTimer>
#include <QList>
#include <ContactGroupSearchJob>
#include "ldap/ldapclientsearch.h"
#include <AkonadiCore/Item>
#include <AkonadiCore/Collection>
......@@ -29,6 +27,11 @@
class KConfig;
class QToolButton;
class QTimer;
namespace Akonadi
{
class ContactGroupSearchJob;
}
namespace KPIM {
class AddresseeLineEdit;
......@@ -131,7 +134,7 @@ private Q_SLOTS:
private:
AddresseeLineEdit *q;
QToolButton *mToolButton;
QTimer mDelayedQueryTimer;
QTimer *mDelayedQueryTimer;
QString mPreviousAddresses;
QString mSearchString;
QList<KJob *> mMightBeGroupJobs;
......
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