searching is now case insensitive
This commit is contained in:
@@ -466,6 +466,7 @@ void ChannelView::setChannel(std::shared_ptr<Channel> newChannel)
|
|||||||
|
|
||||||
this->userPopupWidget.setChannel(newChannel);
|
this->userPopupWidget.setChannel(newChannel);
|
||||||
this->layoutMessages();
|
this->layoutMessages();
|
||||||
|
this->queueUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelView::detachChannel()
|
void ChannelView::detachChannel()
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ void SearchPopup::performSearch()
|
|||||||
for (size_t i = 0; i < this->snapshot.getLength(); i++) {
|
for (size_t i = 0; i < this->snapshot.getLength(); i++) {
|
||||||
messages::SharedMessage message = this->snapshot[i];
|
messages::SharedMessage message = this->snapshot[i];
|
||||||
|
|
||||||
if (text.isEmpty() || message->getContent().indexOf(this->searchInput->text()) != -1) {
|
if (text.isEmpty() ||
|
||||||
|
message->getContent().indexOf(this->searchInput->text(), 0, Qt::CaseInsensitive) !=
|
||||||
|
-1) {
|
||||||
channel->addMessage(message);
|
channel->addMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
int w = this->width();
|
int w = this->width();
|
||||||
float y = 0;
|
float y = 0;
|
||||||
float dY = (float)(this->height() + MIN_THUMB_HEIGHT) / (float)snapshotLength;
|
float dY = (float)(this->height()) / (float)snapshotLength;
|
||||||
int highlightHeight = std::ceil(dY);
|
int highlightHeight = std::ceil(dY);
|
||||||
|
|
||||||
for (int i = 0; i < snapshotLength; i++) {
|
for (int i = 0; i < snapshotLength; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user