mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
plasma: set the search widget label text before showing it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a92fd69279
commit
6ff89abb0f
1 changed files with 2 additions and 2 deletions
|
@ -567,8 +567,8 @@ void LauncherSearch::prepare()
|
||||||
qDeleteAll(m_launcherwidgets);
|
qDeleteAll(m_launcherwidgets);
|
||||||
m_launcherwidgets.clear();
|
m_launcherwidgets.clear();
|
||||||
|
|
||||||
m_label->setVisible(true);
|
|
||||||
m_label->setText(i18n("Searching.."));
|
m_label->setText(i18n("Searching.."));
|
||||||
|
m_label->setVisible(true);
|
||||||
m_busywidget->setVisible(true);
|
m_busywidget->setVisible(true);
|
||||||
m_busywidget->setRunning(true);
|
m_busywidget->setRunning(true);
|
||||||
adjustSize();
|
adjustSize();
|
||||||
|
@ -588,8 +588,8 @@ void LauncherSearch::slotUpdateLayout()
|
||||||
m_busywidget->setRunning(false);
|
m_busywidget->setRunning(false);
|
||||||
m_busywidget->setVisible(false);
|
m_busywidget->setVisible(false);
|
||||||
if (matches.isEmpty()) {
|
if (matches.isEmpty()) {
|
||||||
m_label->setVisible(true);
|
|
||||||
m_label->setText(i18n("No matches found"));
|
m_label->setText(i18n("No matches found"));
|
||||||
|
m_label->setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
m_label->setVisible(false);
|
m_label->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue