mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
SearchToolBar: Remove warning message that no results were found
This commit is contained in:
parent
d729117adb
commit
63aa4028a4
@ -57,7 +57,6 @@ void SearchToolBar::showMinimalInPopupWindow()
|
||||
{
|
||||
// Show only essentials widget + set minimum width
|
||||
ui->caseSensitive->hide();
|
||||
ui->results->hide();
|
||||
ui->horizontalLayout->setSpacing(2);
|
||||
ui->horizontalLayout->setContentsMargins(2, 6, 2, 6);
|
||||
setMinimumWidth(260);
|
||||
@ -129,11 +128,6 @@ void SearchToolBar::searchText(const QString &text)
|
||||
if (ui->lineEdit->text().isEmpty())
|
||||
found = true;
|
||||
|
||||
if (!found)
|
||||
ui->results->setText(tr("No results found."));
|
||||
else
|
||||
ui->results->clear();
|
||||
|
||||
ui->lineEdit->setProperty("notfound", QVariant(!found));
|
||||
ui->lineEdit->style()->unpolish(ui->lineEdit);
|
||||
ui->lineEdit->style()->polish(ui->lineEdit);
|
||||
|
@ -94,13 +94,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="results">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
Loading…
Reference in New Issue
Block a user