mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Update gui_context_menus.h
This commit is contained in:
parent
1d8c607c15
commit
5bf5e9ce0c
@ -77,10 +77,12 @@ public:
|
||||
QMenu* copyMenu = new QMenu(tr("Copy info..."), widget);
|
||||
QAction* copyName = new QAction(tr("Copy Name"), widget);
|
||||
QAction* copySerial = new QAction(tr("Copy Serial"), widget);
|
||||
QMenu* copyMenu = new QMenu(tr("Copy Firmware Version..."), widget);
|
||||
QAction* copyNameAll = new QAction(tr("Copy All"), widget);
|
||||
|
||||
copyMenu->addAction(copyName);
|
||||
copyMenu->addAction(copySerial);
|
||||
openFolderMenu->addAction(copyFirmwareVersion);
|
||||
copyMenu->addAction(copyNameAll);
|
||||
|
||||
menu.addMenu(copyMenu);
|
||||
@ -346,6 +348,11 @@ public:
|
||||
clipboard->setText(QString::fromStdString(m_games[itemID].serial));
|
||||
}
|
||||
|
||||
if (selected == copyFirmwareVersion) {
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
clipboard->setText(QString::fromStdString(m_games[itemID].serial));
|
||||
}
|
||||
|
||||
if (selected == copyNameAll) {
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
QString combinedText = QString("Name:%1 | Serial:%2 | Version:%3 | Size:%4")
|
||||
|
Loading…
Reference in New Issue
Block a user