Added incremental search to channel search. (#3544)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
qooq69 2022-02-13 16:05:38 +01:00 committed by GitHub
parent ad8246647f
commit 82196e3e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 13 deletions

View file

@ -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)

View file

@ -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);