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