Logo Search packages:      
Sourcecode: qt4-x11 version File versions

tools_designer_src_lib_extension_qextensionmanager.cpp

//! [0]
        void MyPlugin::initialize(QDesignerFormEditorInterface *formEditor)
        {
            if (initialized)
                return;

            QExtensionManager *manager = formEditor->extensionManager();
            Q_ASSERT(manager != 0);

            manager->registerExtensions(new MyExtensionFactory(manager),
                                        Q_TYPEID(QDesignerTaskMenuExtension));

            initialized = true;
        }
//! [0]



Generated by  Doxygen 1.6.0   Back to index