Ejemplo n.º 1
0
void Preferences::setSearchPaths( const QStringList & paths )
{
  if( paths != m_searchPaths )
  {
    m_searchPaths = paths;

    emit searchPathsChanged( paths );
  }
}
void ColorPaletteModel::addSearchPath(const QString& path)
{
    /// \todo Should compare canonical paths
    /// and these checks should also be made in setSearchPaths
    if ( !p->search_paths.contains(path) )
    {
        p->search_paths.push_back(path);
        emit searchPathsChanged( p->search_paths );
    }
}
void ColorPaletteModel::setSearchPaths(const QStringList& searchPaths)
{
    if ( p->search_paths != searchPaths )
        emit searchPathsChanged( p->search_paths = searchPaths );
}