Commit 62af7f7a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Emit signal when we focus in recipientLineEdit

parent c2fa3173
Pipeline #50569 passed with stage
in 42 minutes and 9 seconds
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(PIM_VERSION "5.16.45") set(PIM_VERSION "5.16.46")
if (POLICY CMP0053) if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW) cmake_policy(SET CMP0053 NEW)
......
...@@ -299,6 +299,8 @@ bool RecipientsEditor::eventFilter(QObject *object, QEvent *event) ...@@ -299,6 +299,8 @@ bool RecipientsEditor::eventFilter(QObject *object, QEvent *event)
return true; return true;
} }
} }
} else if (event->type() == QEvent::FocusIn && qobject_cast<RecipientLineEdit *>(object)) {
Q_EMIT focusInRecipientLineEdit();
} }
return false; return false;
......
...@@ -92,6 +92,9 @@ protected: ...@@ -92,6 +92,9 @@ protected:
bool eventFilter(QObject *object, QEvent *event) override; bool eventFilter(QObject *object, QEvent *event) override;
Q_REQUIRED_RESULT RecipientLineNG *activeLine() const override; Q_REQUIRED_RESULT RecipientLineNG *activeLine() const override;
Q_SIGNALS:
void focusInRecipientLineEdit();
private: private:
RecipientsEditorPrivate *const d; RecipientsEditorPrivate *const d;
}; };
......
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