Added incremental search to channel search. (#3544)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
- Minor: Removed timestamp from AutoMod messages. (#3503)
|
- Minor: Removed timestamp from AutoMod messages. (#3503)
|
||||||
- Minor: Added ability to copy message ID with `Shift + Right Click`. (#3481)
|
- Minor: Added ability to copy message ID with `Shift + Right Click`. (#3481)
|
||||||
- Minor: Colorize the entire split header when focused. (#3379)
|
- 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: Show right click context menu anywhere within a message's line. (#3566)
|
||||||
- Minor: Make Tab Layout setting only accept predefined values (#3564)
|
- Minor: Make Tab Layout setting only accept predefined values (#3564)
|
||||||
- Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362)
|
- 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);
|
this->searchInput_ = new QLineEdit(this);
|
||||||
layout2->addWidget(this->searchInput_);
|
layout2->addWidget(this->searchInput_);
|
||||||
QObject::connect(this->searchInput_, &QLineEdit::returnPressed,
|
|
||||||
[this] {
|
|
||||||
this->search();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// SEARCH BUTTON
|
this->searchInput_->setPlaceholderText("Type to search");
|
||||||
{
|
this->searchInput_->setClearButtonEnabled(true);
|
||||||
QPushButton *searchButton = new QPushButton(this);
|
this->searchInput_->findChild<QAbstractButton *>()->setIcon(
|
||||||
searchButton->setText("Search");
|
QPixmap(":/buttons/clearSearch.png"));
|
||||||
layout2->addWidget(searchButton);
|
QObject::connect(this->searchInput_, &QLineEdit::textChanged,
|
||||||
QObject::connect(searchButton, &QPushButton::clicked, [this] {
|
this, &SearchPopup::search);
|
||||||
this->search();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
layout1->addLayout(layout2);
|
layout1->addLayout(layout2);
|
||||||
|
|||||||
Reference in New Issue
Block a user