mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added incremental search to channel search. (#3544)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
ad8246647f
commit
82196e3e82
|
@ -54,6 +54,7 @@
|
|||
- Minor: Removed timestamp from AutoMod messages. (#3503)
|
||||
- Minor: Added ability to copy message ID with `Shift + Right Click`. (#3481)
|
||||
- Minor: Colorize the entire split header when focused. (#3379)
|
||||
- Minor: Added incremental search to channel search. (#3544)
|
||||
- Minor: Show right click context menu anywhere within a message's line. (#3566)
|
||||
- Minor: Make Tab Layout setting only accept predefined values (#3564)
|
||||
- Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362)
|
||||
|
|
|
@ -151,20 +151,13 @@ void SearchPopup::initLayout()
|
|||
{
|
||||
this->searchInput_ = new QLineEdit(this);
|
||||
layout2->addWidget(this->searchInput_);
|
||||
QObject::connect(this->searchInput_, &QLineEdit::returnPressed,
|
||||
[this] {
|
||||
this->search();
|
||||
});
|
||||
}
|
||||
|
||||
// SEARCH BUTTON
|
||||
{
|
||||
QPushButton *searchButton = new QPushButton(this);
|
||||
searchButton->setText("Search");
|
||||
layout2->addWidget(searchButton);
|
||||
QObject::connect(searchButton, &QPushButton::clicked, [this] {
|
||||
this->search();
|
||||
});
|
||||
this->searchInput_->setPlaceholderText("Type to search");
|
||||
this->searchInput_->setClearButtonEnabled(true);
|
||||
this->searchInput_->findChild<QAbstractButton *>()->setIcon(
|
||||
QPixmap(":/buttons/clearSearch.png"));
|
||||
QObject::connect(this->searchInput_, &QLineEdit::textChanged,
|
||||
this, &SearchPopup::search);
|
||||
}
|
||||
|
||||
layout1->addLayout(layout2);
|
||||
|
|
Loading…
Reference in a new issue