mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Add missing SIP_FACTORY
This commit is contained in:
parent
42b3e0bb10
commit
7ba1b1734b
@ -118,7 +118,7 @@ class QgsUserProfileManager : QObject
|
||||
Set the default profile name from the current active profile.
|
||||
%End
|
||||
|
||||
QgsUserProfile *profileForName( const QString name ) const;
|
||||
QgsUserProfile *profileForName( const QString &name ) const /Factory/;
|
||||
%Docstring
|
||||
Return the profile found for a given name.
|
||||
\param name The name of the profile to return.
|
||||
|
@ -2283,13 +2283,12 @@ void QgisApp::refreshProfileMenu()
|
||||
|
||||
Q_FOREACH ( const QString &name, userProfileManager()->allProfiles() )
|
||||
{
|
||||
profile = userProfileManager()->profileForName( name );
|
||||
QAction *action = new QAction( profile->icon(), profile->alias(), mConfigMenu );
|
||||
action->setToolTip( profile->folder() );
|
||||
std::unique_ptr< QgsUserProfile > namedProfile( userProfileManager()->profileForName( name ) );
|
||||
QAction *action = new QAction( namedProfile->icon(), namedProfile->alias(), mConfigMenu );
|
||||
action->setToolTip( namedProfile->folder() );
|
||||
action->setCheckable( true );
|
||||
profileGroup->addAction( action );
|
||||
mConfigMenu->addAction( action );
|
||||
delete profile;
|
||||
|
||||
if ( name == activeName )
|
||||
{
|
||||
|
@ -126,7 +126,7 @@ class CORE_EXPORT QgsUserProfileManager : public QObject
|
||||
* \param name The name of the profile to return.
|
||||
* \return A QgsUserprofile pointing to the location of the user profile.
|
||||
*/
|
||||
QgsUserProfile *profileForName( const QString name ) const;
|
||||
QgsUserProfile *profileForName( const QString &name ) const SIP_FACTORY;
|
||||
|
||||
/**
|
||||
* Create a user profile given by the name
|
||||
|
Loading…
x
Reference in New Issue
Block a user