Clean up/refactor InputCompletionPopup (#4242)

Mainly flattening anon namespaces & respecting clang-tidy
This commit is contained in:
pajlada
2022-12-18 14:25:11 +01:00
committed by GitHub
parent 2de1437bdf
commit 8830b0e01c
5 changed files with 126 additions and 75 deletions
+3 -2
View File
@@ -14,17 +14,18 @@ class InputCompletionPopup : public BasePopup
{
using ActionCallback = std::function<void(const QString &)>;
constexpr static int maxEntryCount = 200;
constexpr static int MAX_ENTRY_COUNT = 200;
public:
InputCompletionPopup(QWidget *parent = nullptr);
void updateEmotes(const QString &text, ChannelPtr channel);
void updateUsers(const QString &text, ChannelPtr channel);
virtual bool eventFilter(QObject *, QEvent *event) override;
void setInputAction(ActionCallback callback);
bool eventFilter(QObject *watched, QEvent *event) override;
protected:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;