Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

void EffectsListView::slotUpdateSearch ( QTreeWidgetItem *  item,
bool  hidden 
) [private, slot]

Makes sure the item fits the type filter.

Parameters:
item Current item
hidden Hidden or not
This is necessary to make the search obey to the type filter. Called when the visibility of this item was changed by searching

Definition at line 156 of file effectslistview.cpp.

{
    if (!hidden) {
        if (item->data(0, Qt::UserRole).toInt() == type_combo->currentIndex()) {
            if (item->parent())
                item->parent()->setHidden(false);
        } else {
            if (type_combo->currentIndex() != 0)
                item->setHidden(true);
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index