mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add a menu option to the runtime to copy the appserver URL to the clipboard. Fixes #3510
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "MenuActions.h"
|
||||
|
||||
// QT headers
|
||||
#include <QClipboard>
|
||||
#include <QMessageBox>
|
||||
|
||||
MenuActions::MenuActions()
|
||||
@@ -58,6 +59,15 @@ void MenuActions::onNew()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Copy the application server URL to the clipboard
|
||||
void MenuActions::onCopyUrl()
|
||||
{
|
||||
QClipboard *clipboard = QApplication::clipboard();
|
||||
clipboard->setText(m_appServerUrl);
|
||||
}
|
||||
|
||||
|
||||
// Show the config dialogue
|
||||
void MenuActions::onConfig()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user