mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 16:53:17 +00:00
gui: Implement gui translations
This commit is contained in:
parent
c79b10edc1
commit
3f445eca40
35 changed files with 11473 additions and 63 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <QActionGroup>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QTranslator>
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/path_util.h"
|
||||
|
@ -43,6 +44,7 @@ private Q_SLOTS:
|
|||
void ShowGameList();
|
||||
void RefreshGameTable();
|
||||
void HandleResize(QResizeEvent* event);
|
||||
void OnLanguageChanged(const std::string& locale);
|
||||
|
||||
private:
|
||||
Ui_MainWindow* ui;
|
||||
|
@ -59,6 +61,7 @@ private:
|
|||
void InstallPkg();
|
||||
void BootGame();
|
||||
void AddRecentFiles(QString filePath);
|
||||
void LoadTranslation();
|
||||
QIcon RecolorIcon(const QIcon& icon, bool isWhite);
|
||||
bool isIconBlack = false;
|
||||
bool isTableList = true;
|
||||
|
@ -84,6 +87,8 @@ private:
|
|||
|
||||
std::shared_ptr<GameInfoClass> m_game_info = std::make_shared<GameInfoClass>();
|
||||
|
||||
QTranslator* translator;
|
||||
|
||||
protected:
|
||||
void dragEnterEvent(QDragEnterEvent* event1) override {
|
||||
if (event1->mimeData()->hasUrls()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue