From 4ff04549c942d833fd3d6da0ae465b59639d9c3f Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 27 Oct 2022 12:09:56 +0300 Subject: [PATCH] sample qt application window --- shadPS4/gui/shadps4gui.cpp | 7 ++- shadPS4/gui/shadps4gui.h | 3 ++ shadPS4/gui/shadps4gui.ui | 91 +++++++++++++++++++++++++++------ shadPS4/shadPS4.vcxproj.filters | 19 ++++--- 4 files changed, 94 insertions(+), 26 deletions(-) diff --git a/shadPS4/gui/shadps4gui.cpp b/shadPS4/gui/shadps4gui.cpp index 60157bb1..ba50e27b 100644 --- a/shadPS4/gui/shadps4gui.cpp +++ b/shadPS4/gui/shadps4gui.cpp @@ -1,5 +1,5 @@ #include "shadps4gui.h" - +#include shadps4gui::shadps4gui(QWidget *parent) : QMainWindow(parent) { @@ -8,3 +8,8 @@ shadps4gui::shadps4gui(QWidget *parent) shadps4gui::~shadps4gui() {} + +void shadps4gui::installPKG() +{ + QMessageBox::critical(this, "PKG ERROR", "Not yet", QMessageBox::Ok, 0); +} diff --git a/shadPS4/gui/shadps4gui.h b/shadPS4/gui/shadps4gui.h index aca95017..637f5e78 100644 --- a/shadPS4/gui/shadps4gui.h +++ b/shadPS4/gui/shadps4gui.h @@ -11,6 +11,9 @@ public: shadps4gui(QWidget *parent = nullptr); ~shadps4gui(); +public slots: + void installPKG(); + private: Ui::shadps4guiClass ui; }; diff --git a/shadPS4/gui/shadps4gui.ui b/shadPS4/gui/shadps4gui.ui index af43613b..e6f337bc 100644 --- a/shadPS4/gui/shadps4gui.ui +++ b/shadPS4/gui/shadps4gui.ui @@ -1,22 +1,79 @@ - + + shadps4guiClass - - - shadps4guiClass - - + + - 0 - 0 - 600 - 400 + 0 + 0 + 600 + 400 - - shadps4gui - + + shadPS4 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + 0 + 0 + 600 + 22 + + + + + Open + + + + + + + + Install PKG + + - - - - + + + + + actionInstall_PKG + triggered() + shadps4guiClass + installPKG() + + + -1 + -1 + + + 299 + 199 + + + + + + installPKG() + installFW() + + diff --git a/shadPS4/shadPS4.vcxproj.filters b/shadPS4/shadPS4.vcxproj.filters index d138719c..776371b6 100644 --- a/shadPS4/shadPS4.vcxproj.filters +++ b/shadPS4/shadPS4.vcxproj.filters @@ -21,23 +21,26 @@ {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} ts + + {29ee17bd-9ad4-44e8-b1cd-b4be13ec6509} + - - Source Files - Source Files - - - - Header Files - + + gui + Form Files + + + gui + + \ No newline at end of file