mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-24 18:33:03 -07:00
[CardSearch] Add card completion popups to chats and search fields (#7089)
* Add card completion popups to chats and search fields Completes @mention and [[card]] in chat, and card names in the deck editor, EDHREC, Archidekt, card art rules, and user card settings searches. Pops up a styled list with mana pips and a card image preview, flipping the list order when the popup opens above the text field. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
a0e76607b5
commit
83fd65b34b
25 changed files with 1526 additions and 290 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <QFocusEvent>
|
||||
#include <QGroupBox>
|
||||
#include <QMap>
|
||||
#include <QStringListModel>
|
||||
|
||||
class UserListProxy;
|
||||
class UserListManager;
|
||||
|
|
@ -63,6 +64,7 @@ private:
|
|||
ChatView *chatView;
|
||||
QLabel *sayLabel;
|
||||
LineEditCompleter *sayEdit;
|
||||
QStringListModel *mentionModel;
|
||||
QGroupBox *chatGroupBox;
|
||||
|
||||
QMenu *roomMenu;
|
||||
|
|
@ -72,7 +74,7 @@ private:
|
|||
[[nodiscard]] QString sanitizeHtml(QString dirty) const;
|
||||
|
||||
QStringList autocompleteUserList;
|
||||
QCompleter *completer;
|
||||
QCompleter *mentionCompleter;
|
||||
signals:
|
||||
void roomClosing(TabRoom *tab);
|
||||
void openMessageDialog(const QString &userName, bool focus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue