From c6408eb7527085e3599cb58d809dce0ace847d47 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 26 Sep 2023 21:14:27 -0500 Subject: [PATCH] Add SDK Version and Plugin API Version to Information Settings tab --- .../OpenRGBSoftwareInfoPage.cpp | 4 + .../OpenRGBSoftwareInfoPage.ui | 198 ++++++++++-------- 2 files changed, 117 insertions(+), 85 deletions(-) diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp index dfc845c3..f9866ec4 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp @@ -1,4 +1,6 @@ #include "OpenRGBSoftwareInfoPage.h" +#include "OpenRGBPluginInterface.h" +#include "NetworkProtocol.h" using namespace Ui; @@ -9,6 +11,8 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) : ui->setupUi(this); ui->VersionValue->setText(VERSION_STRING); + ui->SDKVersionValue->setText(QString::number(OPENRGB_SDK_PROTOCOL_VERSION)); + ui->PluginAPIVersionValue->setText(QString::number(OPENRGB_PLUGIN_API_VERSION)); ui->BuildDateValue->setText(BUILDDATE_STRING); ui->GitCommitIDValue->setText(GIT_COMMIT_ID); ui->GitCommitDateValue->setText(GIT_COMMIT_DATE); diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui index 82f952d5..06589aba 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui @@ -35,87 +35,7 @@ QFrame::Sunken - - - - Version: - - - - - - - Version Value - - - - - - - Build Date: - - - - - - - Build Date Value - - - - - - - Git Commit ID: - - - - - - - Git Commit ID Value - - - Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - - - - Git Commit Date: - - - - - - - Git Commit Date Value - - - - - - - Git Branch: - - - - - - - Git Branch Value - - - - - - - Gitlab page - - - - + <a href="https://gitlab.com/CalcProgrammer1/OpenRGB">https://gitlab.com/CalcProgrammer1/OpenRGB</a> @@ -128,14 +48,24 @@ - - + + - Website + Git Commit ID Value + + + Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - + + + + Git Commit ID: + + + + <a href="https://openrgb.org">https://openrgb.org</a> @@ -148,6 +78,104 @@ + + + + Gitlab page + + + + + + + Git Branch: + + + + + + + Build Date Value + + + + + + + Git Branch Value + + + + + + + Website + + + + + + + Git Commit Date Value + + + + + + + SDK Version: + + + + + + + Version: + + + + + + + Git Commit Date: + + + + + + + Version Value + + + + + + + Build Date: + + + + + + + Plugin API Version: + + + + + + + SDK Version Value + + + + + + + Plugin API Version Value + + +