src/plugins/miscellaneous/Core/src/coreplugin.cpp
// Check, based on the loaded plugins, which views, if any, our central
// widget should support
Check, based on the loaded plugins, which views, if any, our central
widget should support
Check based on the loaded plugins which views if any our central widget should support
foreach (Plugin *plugin, pLoadedPlugins) {
        ViewInterface *viewInterface = qobject_cast<ViewInterface *>(plugin->instance());
        if (viewInterface)
            mCentralWidget->addView(plugin);
    }
foreach ( Plugin * plugin , pLoadedPlugins ) { ViewInterface * viewInterface = qobject_cast < ViewInterface * > ( plugin -> instance ( ) ) ; if ( viewInterface ) mCentralWidget -> addView ( plugin ) ; }
Check, based on the loaded plugins, which views, if any, our central
widget should support
Check based on the loaded plugins which views if any our central widget should support
// The plugin implements our View interface, so add it to our // central widget