Skip to content

Commit

Permalink
reuse existing constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 19, 2021
1 parent e75b6df commit bf3f23f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/gui/symbology/qgssvgselectorwidget.cpp
Expand Up @@ -221,14 +221,8 @@ void QgsSvgGroupLoader::loadGroup( const QString &parentPath )
//

QgsSvgSelectorListModel::QgsSvgSelectorListModel( QObject *parent, int iconSize )
: QAbstractListModel( parent )
, mSvgLoader( new QgsSvgSelectorLoader( this ) )
, mIconSize( iconSize )
{
mSvgLoader->setPath( QString() );
connect( mSvgLoader, &QgsSvgSelectorLoader::foundSvgs, this, &QgsSvgSelectorListModel::addSvgs );
mSvgLoader->start();
}
: QgsSvgSelectorListModel( parent, QString(), iconSize )
{}

QgsSvgSelectorListModel::QgsSvgSelectorListModel( QObject *parent, const QString &path, int iconSize )
: QAbstractListModel( parent )
Expand Down

0 comments on commit bf3f23f

Please sign in to comment.