Skip to content
Permalink
Browse files

reuse existing constructor

  • Loading branch information
3nids committed Mar 19, 2021
1 parent e75b6df commit bf3f23fe228de1bd9c3a184fa4491a63fe4db827
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/gui/symbology/qgssvgselectorwidget.cpp
@@ -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 )

0 comments on commit bf3f23f

Please sign in to comment.