QWidget *QgsProviderRegistry::createSelectionWidget( const QString &providerKey, QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) { selectFactoryFunction_t *selectFactory = reinterpret_cast< selectFactoryFunction_t * >( cast_to_fptr( function( providerKey, "selectWidget" ) ) ); if ( !selectFactory ) return nullptr; return selectFactory( parent, fl, widgetMode ); }
QWidget* QgsProviderRegistry::selectWidget( const QString & providerKey, QWidget * parent, Qt::WFlags fl ) { selectFactoryFunction_t * selectFactory = ( selectFactoryFunction_t * ) cast_to_fptr( function( providerKey, "selectWidget" ) ); if ( !selectFactory ) return 0; return selectFactory( parent, fl ); }
void CommandLineInterface::welcome() { clearScreen(); std::cout << "Welcome to the producer-consumer sample project.\n\n"; selectFactory(); }