mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added margin to emote search (#3543)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
554313d645
commit
3c46572c51
|
@ -43,7 +43,7 @@
|
||||||
- Minor: Added autocompletion for default Twitch commands starting with the dot (e.g. `.mods` which does the same as `/mods`). (#3144)
|
- Minor: Added autocompletion for default Twitch commands starting with the dot (e.g. `.mods` which does the same as `/mods`). (#3144)
|
||||||
- Minor: Sorted usernames in `Users joined/parted` messages alphabetically. (#3421)
|
- Minor: Sorted usernames in `Users joined/parted` messages alphabetically. (#3421)
|
||||||
- Minor: Mod list, VIP list, and Users joined/parted messages are now searchable. (#3426)
|
- Minor: Mod list, VIP list, and Users joined/parted messages are now searchable. (#3426)
|
||||||
- Minor: Add search to emote popup. (#3404, #3527)
|
- Minor: Add search to emote popup. (#3404, #3527, #3543)
|
||||||
- Minor: Messages can now be highlighted by subscriber or founder badges. (#3445)
|
- Minor: Messages can now be highlighted by subscriber or founder badges. (#3445)
|
||||||
- Minor: User timeout buttons can now be triggered using hotkeys. (#3483)
|
- Minor: User timeout buttons can now be triggered using hotkeys. (#3483)
|
||||||
- Minor: Add workaround for multipart emoji as described in [the RFC](https://mm2pl.github.io/emoji_rfc.pdf). (#3469)
|
- Minor: Add workaround for multipart emoji as described in [the RFC](https://mm2pl.github.io/emoji_rfc.pdf). (#3469)
|
||||||
|
|
|
@ -168,13 +168,22 @@ EmotePopup::EmotePopup(QWidget *parent)
|
||||||
searchRegex.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
searchRegex.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
||||||
QValidator *searchValidator = new QRegularExpressionValidator(searchRegex);
|
QValidator *searchValidator = new QRegularExpressionValidator(searchRegex);
|
||||||
|
|
||||||
|
layout->setMargin(0);
|
||||||
|
layout->setSpacing(0);
|
||||||
|
|
||||||
|
QHBoxLayout *layout2 = new QHBoxLayout(this);
|
||||||
|
layout2->setMargin(8);
|
||||||
|
layout2->setSpacing(8);
|
||||||
|
|
||||||
this->search_ = new QLineEdit();
|
this->search_ = new QLineEdit();
|
||||||
this->search_->setPlaceholderText("Search all emotes...");
|
this->search_->setPlaceholderText("Search all emotes...");
|
||||||
this->search_->setValidator(searchValidator);
|
this->search_->setValidator(searchValidator);
|
||||||
this->search_->setClearButtonEnabled(true);
|
this->search_->setClearButtonEnabled(true);
|
||||||
this->search_->findChild<QAbstractButton *>()->setIcon(
|
this->search_->findChild<QAbstractButton *>()->setIcon(
|
||||||
QPixmap(":/buttons/clearSearch.png"));
|
QPixmap(":/buttons/clearSearch.png"));
|
||||||
layout->addWidget(this->search_);
|
layout2->addWidget(this->search_);
|
||||||
|
|
||||||
|
layout->addLayout(layout2);
|
||||||
|
|
||||||
QObject::connect(this->search_, &QLineEdit::textChanged, this,
|
QObject::connect(this->search_, &QLineEdit::textChanged, this,
|
||||||
&EmotePopup::filterEmotes);
|
&EmotePopup::filterEmotes);
|
||||||
|
|
Loading…
Reference in a new issue