src/pluginswindow.cpp
// Make a category checkable if it contains selectable plugins and hide it,
// if it doesn't contain any plugin
Make a category checkable if it contains selectable plugins and hide it,
if it doesn't contain any plugin
Make a category checkable if it contains selectable plugins and hide it if it doesn ' t contain any plugin
foreach (QStandardItem *categoryItem, mPluginCategories) {
        for (int i = 0, iMax = categoryItem->rowCount(); i < iMax; ++i)
            if (categoryItem->child(i)->isCheckable()) {
                categoryItem->setCheckable(true);
                break;
            }
        if (!categoryItem->hasChildren())
            mGui->pluginsTreeView->setRowHidden(categoryItem->row(),
                                                mModel->invisibleRootItem()->index(),
                                                true);
    }
foreach ( QStandardItem * categoryItem , mPluginCategories ) { for ( int i = 0 , iMax = categoryItem -> rowCount ( ) ; i < iMax ; ++ i ) if ( categoryItem -> child ( i ) -> isCheckable ( ) ) { categoryItem -> setCheckable ( true ) ; break ; } if ( ! categoryItem -> hasChildren ( ) ) mGui -> pluginsTreeView -> setRowHidden ( categoryItem -> row ( ) , mModel -> invisibleRootItem ( ) -> index ( ) , true ) ; }
Make a category checkable if it contains selectable plugins and hide it,
if it doesn't contain any plugin
Make a category checkable if it contains selectable plugins and hide it if it doesn ' t contain any plugin