]> git.sesse.net Git - kdenlive/commitdiff
- Fix auto expand behaviour when searching the effectlist (1)
authorTill Theato <root@ttill.de>
Wed, 16 Jun 2010 13:46:59 +0000 (13:46 +0000)
committerTill Theato <root@ttill.de>
Wed, 16 Jun 2010 13:46:59 +0000 (13:46 +0000)
- Improve focus in effectlist
(1): http://kdenlive.org/mantis/view.php?id=1660

svn path=/trunk/kdenlive/; revision=4520

src/effectslistview.cpp

index 050029b666c1f8c1d02bfca40f60ffaddd16b70c..23cc00fe2c172fb95c16d5456ce4389f2d051a6b 100644 (file)
@@ -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;