From: Till Theato Date: Wed, 16 Jun 2010 13:46:59 +0000 (+0000) Subject: - Fix auto expand behaviour when searching the effectlist (1) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6bfa0f21b4f88f048e4a40c5eb8708bb4d95a244;p=kdenlive - Fix auto expand behaviour when searching the effectlist (1) - Improve focus in effectlist (1): http://kdenlive.org/mantis/view.php?id=1660 svn path=/trunk/kdenlive/; revision=4520 --- diff --git a/src/effectslistview.cpp b/src/effectslistview.cpp index 050029b6..23cc00fe 100644 --- a/src/effectslistview.cpp +++ b/src/effectslistview.cpp @@ -44,6 +44,7 @@ EffectsListView::EffectsListView(QWidget *parent) : buttonInfo->setIcon(KIcon("help-about")); setFocusPolicy(Qt::StrongFocus); setFocusProxy(search_effect); + m_effectsList->setFocusProxy(search_effect); if (KdenliveSettings::showeffectinfo()) { buttonInfo->setDown(true); @@ -162,6 +163,8 @@ void EffectsListView::slotUpdateSearch(QTreeWidgetItem *item, bool hidden) void EffectsListView::slotAutoExpand(QString text) { + search_effect->updateSearch(); + for (int i = 0; i < m_effectsList->topLevelItemCount(); ++i) { QTreeWidgetItem *folder = m_effectsList->topLevelItem(i); bool expandFolder = false;