diff --git a/OpenRGB.pro b/OpenRGB.pro index d31abd185..222fb8f38 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -53,6 +53,7 @@ SOURCES += \ net_port/net_port.cpp \ qt/OpenRGBDialog2.cpp \ qt/OpenRGBProfileSaveDialog.cpp \ + qt/OpenRGBSoftwareInfoPage.cpp \ qt/OpenRGBSystemInfoPage.cpp \ qt/hsv.cpp \ serial_port/serial_port.cpp \ @@ -140,6 +141,7 @@ HEADERS += \ net_port/net_port.h \ qt/OpenRGBDialog2.h \ qt/OpenRGBProfileSaveDialog.h \ + qt/OpenRGBSoftwareInfoPage.h \ qt/OpenRGBSystemInfoPage.h \ serial_port/find_usb_serial_port.h \ serial_port/serial_port.h \ @@ -202,6 +204,7 @@ FORMS += \ qt/OpenRGBDialog.ui \ qt/OpenRGBDialog2.ui \ qt/OpenRGBProfileSaveDialog.ui \ + qt/OpenRGBSoftwareInfoPage.ui \ qt/OpenRGBSystemInfoPage.ui #----------------------------------------------- diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index bc05e3a7b..351803b1a 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -2,6 +2,7 @@ #include "OpenRGBDialog2.h" #include "OpenRGBDevicePage.h" #include "OpenRGBDeviceInfoPage.h" +#include "OpenRGBSoftwareInfoPage.h" #include "OpenRGBSystemInfoPage.h" #include "OpenRGBProfileSaveDialog.h" #include "RGBController_Dummy.h" @@ -258,6 +259,25 @@ OpenRGBDialog2::OpenRGBDialog2(std::vector& bus, std::vec SystemTabLabel->setGeometry(0, 0, 200, 20); InformationTabBar->setTabButton(control.size(), QTabBar::LeftSide, SystemTabLabel); + + OpenRGBSoftwareInfoPage *SoftInfoPage = new OpenRGBSoftwareInfoPage(); + ui->InformationTabBar->addTab(SoftInfoPage, ""); + + /*-----------------------------------------------------*\ + | Use Qt's HTML capabilities to display both icon and | + | text in the tab label. Choose icon based on device | + | type and append device name string. | + \*-----------------------------------------------------*/ + QString SoftwareLabelString = "
Software
"; + + QLabel *SoftwareTabLabel = new QLabel(); + SoftwareTabLabel->setText(SoftwareLabelString); + SoftwareTabLabel->setIndent(20); + SoftwareTabLabel->setGeometry(0, 0, 200, 20); + + InformationTabBar->setTabButton(control.size() + 1, QTabBar::LeftSide, SoftwareTabLabel); } OpenRGBDialog2::~OpenRGBDialog2() diff --git a/qt/OpenRGBSoftwareInfoPage.cpp b/qt/OpenRGBSoftwareInfoPage.cpp new file mode 100644 index 000000000..3c6df921f --- /dev/null +++ b/qt/OpenRGBSoftwareInfoPage.cpp @@ -0,0 +1,15 @@ +#include "OpenRGBSoftwareInfoPage.h" + +using namespace Ui; + +OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) : + QFrame(parent), + ui(new Ui::OpenRGBSoftwareInfoPageUi) +{ + ui->setupUi(this); +} + +OpenRGBSoftwareInfoPage::~OpenRGBSoftwareInfoPage() +{ + delete ui; +} diff --git a/qt/OpenRGBSoftwareInfoPage.h b/qt/OpenRGBSoftwareInfoPage.h new file mode 100644 index 000000000..31f7b8a89 --- /dev/null +++ b/qt/OpenRGBSoftwareInfoPage.h @@ -0,0 +1,23 @@ +#ifndef OPENRGBSOFTWAREINFOPAGE_H +#define OPENRGBSOFTWAREINFOPAGE_H + +#include +#include "ui_OpenRGBSoftwareInfoPage.h" + +namespace Ui { +class OpenRGBSoftwareInfoPage; +} + +class Ui::OpenRGBSoftwareInfoPage : public QFrame +{ + Q_OBJECT + +public: + explicit OpenRGBSoftwareInfoPage(QWidget *parent = nullptr); + ~OpenRGBSoftwareInfoPage(); + +private: + Ui::OpenRGBSoftwareInfoPageUi *ui; +}; + +#endif // OPENRGBSOFTWAREINFOPAGE_H diff --git a/qt/OpenRGBSoftwareInfoPage.ui b/qt/OpenRGBSoftwareInfoPage.ui new file mode 100644 index 000000000..bfcd10d8e --- /dev/null +++ b/qt/OpenRGBSoftwareInfoPage.ui @@ -0,0 +1,91 @@ + + + OpenRGBSoftwareInfoPageUi + + + + 0 + 0 + 500 + 300 + + + + Frame + + + + + + Git Branch: + + + + + + + Git Commit ID Value + + + + + + + Version: + + + + + + + Build Date: + + + + + + + Git Commit Date: + + + + + + + Git Commit ID: + + + + + + + Build Date Value + + + + + + + Git Branch Value + + + + + + + Git Commit Date Value + + + + + + + Version Value + + + + + + + +