0002-set-user-profile-menu-object-name.patch
src/app/qgisapp.cpp | ||
---|---|---|
2544 | 2544 |
QAction *action = new QAction( namedProfile->icon(), namedProfile->alias(), profileGroup ); |
2545 | 2545 |
action->setToolTip( namedProfile->folder() ); |
2546 | 2546 |
action->setCheckable( true ); |
2547 |
action->setObjectName( "mActionProfile_" + namedProfile->alias() ); |
|
2547 | 2548 |
mConfigMenu->addAction( action ); |
2548 | 2549 | |
2549 | 2550 |
if ( name == activeName ) |
... | ... | |
2562 | 2563 |
mConfigMenu->addSeparator( ); |
2563 | 2564 | |
2564 | 2565 |
QAction *openProfileFolderAction = mConfigMenu->addAction( tr( "Open Active Profile Folder" ) ); |
2566 |
openProfileFolderAction->setObjectName( "mActionOpenActiveProfileFolder" ); |
|
2565 | 2567 |
connect( openProfileFolderAction, &QAction::triggered, this, [this]() |
2566 | 2568 |
{ |
2567 | 2569 |
QDesktopServices::openUrl( QUrl::fromLocalFile( userProfileManager()->userProfile()->folder() ) ); |
2568 | 2570 |
} ); |
2569 | 2571 | |
2570 | 2572 |
QAction *newProfileAction = mConfigMenu->addAction( tr( "New Profile…" ) ); |
2573 |
newProfileAction->setObjectName( "mActionNewProfile" ); |
|
2571 | 2574 |
connect( newProfileAction, &QAction::triggered, this, &QgisApp::newProfile ); |
2572 | 2575 |
} |
2573 | 2576 | |
2574 | 2577 |
void QgisApp::createProfileMenu() |
2575 | 2578 |
{ |
2576 | 2579 |
mConfigMenu = new QMenu(); |
2580 |
mConfigMenu->setObjectName( "mUserProfileMenu" ); |
|
2577 | 2581 | |
2578 | 2582 |
settingsMenu()->insertMenu( settingsMenu()->actions().first(), mConfigMenu ); |
2579 | 2583 | |
2580 |
- |