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

Fix forward class

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