Remove this signal as unnecessary for now.

This commit is contained in:
Adam Treat 2023-05-19 16:35:32 -04:00 committed by AT
parent e70a1c458b
commit 5f533e76a1
2 changed files with 0 additions and 9 deletions

View File

@ -808,7 +808,6 @@ LocalDocs *LocalDocs::globalInstance()
LocalDocs::LocalDocs()
: QObject(nullptr)
, m_database(new Database)
, m_retrieveInProgress(false)
{
connect(this, &LocalDocs::requestAddFolder, m_database,
&Database::addFolder, Qt::QueuedConnection);
@ -834,16 +833,12 @@ void LocalDocs::removeFolder(const QString &collection, const QString &path)
void LocalDocs::requestRetrieve(const QList<QString> &collections, const QString &text)
{
m_retrieveInProgress = true;
m_retrieveResult = QList<QString>();
emit retrieveInProgressChanged();
emit requestRetrieveFromDB(collections, text);
}
void LocalDocs::retrieveResult(const QList<QString> &result)
{
m_retrieveInProgress = false;
m_retrieveResult = result;
emit receivedResult();
emit retrieveInProgressChanged();
}

View File

@ -52,7 +52,6 @@ private:
class LocalDocs : public QObject
{
Q_OBJECT
Q_PROPERTY(bool retrieveInProgress READ retrieveInProgress NOTIFY retrieveInProgressChanged)
public:
static LocalDocs *globalInstance();
@ -62,14 +61,12 @@ public:
QList<QString> result() const { return m_retrieveResult; }
void requestRetrieve(const QList<QString> &collections, const QString &text);
bool retrieveInProgress() const { return m_retrieveInProgress; }
Q_SIGNALS:
void requestAddFolder(const QString &collection, const QString &path);
void requestRemoveFolder(const QString &collection, const QString &path);
void requestRetrieveFromDB(const QList<QString> &collections, const QString &text);
void receivedResult();
void retrieveInProgressChanged();
private Q_SLOTS:
void retrieveResult(const QList<QString> &result);
@ -77,7 +74,6 @@ private Q_SLOTS:
private:
Database *m_database;
QList<QString> m_retrieveResult;
bool m_retrieveInProgress;
private:
explicit LocalDocs();