Logo Search packages:      
Sourcecode: packagesearch version File versions

void PackageSearchImpl::updateSearchPluginGui (  )  [protected]

Updates search interface.

Shows the search input for all available search plugins in the correct order, removing outdated inputs.

Todo:
this seemed to be neccessary because the tab widget behaved really odd

Definition at line 312 of file packagesearchimpl.cpp.

References _searchPlugins, and addSearchPluginToGui().

Referenced by addPlugin(), and removePlugin().

{
      // remove all pages
      while ( _pInputWidgetsContainer->count() > 0)
      {
            _pInputWidgetsContainer->removePage(_pInputWidgetsContainer->page(0) );
      }
      // delete the old layout for the frame
      delete _pShortSearchFrameLayout;
      // replace by a new one
      _pShortSearchFrameLayout = new QVBoxLayout( _pShortSearchFrame, 5, 10, "_pShortSearchFrameLayout"); 

      
      //_pShortSearchFrame->layout()
      NExtStd::for_each(_searchPlugins.begin(), _searchPlugins.end(), 
            &PackageSearchImpl::addSearchPluginToGui, this);
      /// @todo this seemed to be neccessary because the tab widget behaved really odd
      _pInputWidgetsContainer->setCurrentPage(1);
      if (_pInputWidgetsContainer->count()>0)
            _pInputWidgetsContainer->setCurrentPage(0);
}


Generated by  Doxygen 1.6.0   Back to index