mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-25 11:56:18 +00:00
qt: Add more options to the "Copy info..." section + update en.ts/de.ts (#2322)
* Update gui_context_menus.h * Update gui_context_menus.h * Update en.ts * Update de.ts * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update gui_context_menus.h * Update en.ts * Update de.ts * Update gui_context_menus.h (last one) * very small fix en.ts * remove empty line * merge https://github.com/shadps4-emu/shadPS4/pull/2316 Adds german translations to compatibility status
This commit is contained in:
parent
a55acae5ee
commit
83abaafdfa
3 changed files with 57 additions and 0 deletions
|
@ -77,10 +77,14 @@ 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);
|
||||
QAction* copyVersion = new QAction(tr("Copy Version"), widget);
|
||||
QAction* copySize = new QAction(tr("Copy Size"), widget);
|
||||
QAction* copyNameAll = new QAction(tr("Copy All"), widget);
|
||||
|
||||
copyMenu->addAction(copyName);
|
||||
copyMenu->addAction(copySerial);
|
||||
copyMenu->addAction(copyVersion);
|
||||
copyMenu->addAction(copySize);
|
||||
copyMenu->addAction(copyNameAll);
|
||||
|
||||
menu.addMenu(copyMenu);
|
||||
|
@ -346,6 +350,16 @@ public:
|
|||
clipboard->setText(QString::fromStdString(m_games[itemID].serial));
|
||||
}
|
||||
|
||||
if (selected == copyVersion) {
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
clipboard->setText(QString::fromStdString(m_games[itemID].version));
|
||||
}
|
||||
|
||||
if (selected == copySize) {
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
clipboard->setText(QString::fromStdString(m_games[itemID].size));
|
||||
}
|
||||
|
||||
if (selected == copyNameAll) {
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
QString combinedText = QString("Name:%1 | Serial:%2 | Version:%3 | Size:%4")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue