Navigation Menu

Skip to content

Commit

Permalink
[FEATURE] Add 'Copy URL' action to network logger
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 31, 2020
1 parent d1c747c commit b3cf239
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/devtools/networklogger/qgsnetworkloggernode.cpp
Expand Up @@ -257,6 +257,13 @@ QList<QAction *> QgsNetworkLoggerRequestGroup::actions( QObject *parent )
} );
res << openUrlAction;

QAction *copyUrlAction = new QAction( QObject::tr( "Copy URL" ), parent );
QObject::connect( copyUrlAction, &QAction::triggered, openUrlAction, [ = ]
{
QApplication::clipboard()->setText( mUrl.url() );
} );
res << copyUrlAction;

QAction *copyAsCurlAction = new QAction( QObject::tr( "Copy As cURL" ), parent );
QObject::connect( copyAsCurlAction, &QAction::triggered, copyAsCurlAction, [ = ]
{
Expand Down

0 comments on commit b3cf239

Please sign in to comment.