Skip to content

Commit c6408eb

Browse files
Add SDK Version and Plugin API Version to Information Settings tab
1 parent 12166cb commit c6408eb

File tree

2 files changed

+83
-51
lines changed

2 files changed

+83
-51
lines changed

qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include "OpenRGBSoftwareInfoPage.h"
2+
#include "OpenRGBPluginInterface.h"
3+
#include "NetworkProtocol.h"
24

35
using namespace Ui;
46

@@ -9,6 +11,8 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) :
911
ui->setupUi(this);
1012

1113
ui->VersionValue->setText(VERSION_STRING);
14+
ui->SDKVersionValue->setText(QString::number(OPENRGB_SDK_PROTOCOL_VERSION));
15+
ui->PluginAPIVersionValue->setText(QString::number(OPENRGB_PLUGIN_API_VERSION));
1216
ui->BuildDateValue->setText(BUILDDATE_STRING);
1317
ui->GitCommitIDValue->setText(GIT_COMMIT_ID);
1418
ui->GitCommitDateValue->setText(GIT_COMMIT_DATE);

qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui

Lines changed: 79 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -35,116 +35,144 @@
3535
<enum>QFrame::Sunken</enum>
3636
</property>
3737
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1">
38-
<item row="0" column="0">
39-
<widget class="QLabel" name="VersionLabel">
38+
<item row="7" column="1">
39+
<widget class="QLabel" name="GitlabLinkValue">
4040
<property name="text">
41-
<string>Version:</string>
41+
<string>&lt;a href=&quot;https://gitlab.com/CalcProgrammer1/OpenRGB&quot;&gt;https://gitlab.com/CalcProgrammer1/OpenRGB&lt;/a&gt;</string>
42+
</property>
43+
<property name="textFormat">
44+
<enum>Qt::RichText</enum>
45+
</property>
46+
<property name="openExternalLinks">
47+
<bool>true</bool>
4248
</property>
4349
</widget>
4450
</item>
45-
<item row="0" column="1">
46-
<widget class="QLabel" name="VersionValue">
51+
<item row="4" column="1">
52+
<widget class="QLabel" name="GitCommitIDValue">
4753
<property name="text">
48-
<string notr="true">Version Value</string>
54+
<string notr="true">Git Commit ID Value</string>
55+
</property>
56+
<property name="textInteractionFlags">
57+
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
4958
</property>
5059
</widget>
5160
</item>
52-
<item row="1" column="0">
53-
<widget class="QLabel" name="BuildDateLabel">
61+
<item row="4" column="0">
62+
<widget class="QLabel" name="GitCommitIDLabel">
5463
<property name="text">
55-
<string>Build Date:</string>
64+
<string>Git Commit ID:</string>
5665
</property>
5766
</widget>
5867
</item>
59-
<item row="1" column="1">
60-
<widget class="QLabel" name="BuildDateValue">
68+
<item row="8" column="1">
69+
<widget class="QLabel" name="WebsiteLinkValue">
6170
<property name="text">
62-
<string notr="true">Build Date Value</string>
71+
<string>&lt;a href=&quot;https://openrgb.org&quot;&gt;https://openrgb.org&lt;/a&gt;</string>
72+
</property>
73+
<property name="textFormat">
74+
<enum>Qt::RichText</enum>
75+
</property>
76+
<property name="openExternalLinks">
77+
<bool>true</bool>
6378
</property>
6479
</widget>
6580
</item>
66-
<item row="2" column="0">
67-
<widget class="QLabel" name="GitCommitIDLabel">
81+
<item row="7" column="0">
82+
<widget class="QLabel" name="GitlabLinkLabel">
6883
<property name="text">
69-
<string>Git Commit ID:</string>
84+
<string>Gitlab page</string>
7085
</property>
7186
</widget>
7287
</item>
73-
<item row="2" column="1">
74-
<widget class="QLabel" name="GitCommitIDValue">
88+
<item row="6" column="0">
89+
<widget class="QLabel" name="GitBranchLabel">
7590
<property name="text">
76-
<string notr="true">Git Commit ID Value</string>
91+
<string>Git Branch:</string>
7792
</property>
78-
<property name="textInteractionFlags">
79-
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
93+
</widget>
94+
</item>
95+
<item row="3" column="1">
96+
<widget class="QLabel" name="BuildDateValue">
97+
<property name="text">
98+
<string notr="true">Build Date Value</string>
8099
</property>
81100
</widget>
82101
</item>
83-
<item row="3" column="0">
84-
<widget class="QLabel" name="GitCommitDateLabel">
102+
<item row="6" column="1">
103+
<widget class="QLabel" name="GitBranchValue">
85104
<property name="text">
86-
<string>Git Commit Date:</string>
105+
<string notr="true">Git Branch Value</string>
87106
</property>
88107
</widget>
89108
</item>
90-
<item row="3" column="1">
109+
<item row="8" column="0">
110+
<widget class="QLabel" name="WebsiteLinkLabel">
111+
<property name="text">
112+
<string>Website</string>
113+
</property>
114+
</widget>
115+
</item>
116+
<item row="5" column="1">
91117
<widget class="QLabel" name="GitCommitDateValue">
92118
<property name="text">
93119
<string notr="true">Git Commit Date Value</string>
94120
</property>
95121
</widget>
96122
</item>
97-
<item row="4" column="0">
98-
<widget class="QLabel" name="GitBranchLabel">
123+
<item row="1" column="0">
124+
<widget class="QLabel" name="SDKVersionLabel">
99125
<property name="text">
100-
<string>Git Branch:</string>
126+
<string>SDK Version:</string>
101127
</property>
102128
</widget>
103129
</item>
104-
<item row="4" column="1">
105-
<widget class="QLabel" name="GitBranchValue">
130+
<item row="0" column="0">
131+
<widget class="QLabel" name="VersionLabel">
106132
<property name="text">
107-
<string notr="true">Git Branch Value</string>
133+
<string>Version:</string>
108134
</property>
109135
</widget>
110136
</item>
111137
<item row="5" column="0">
112-
<widget class="QLabel" name="GitlabLinkLabel">
138+
<widget class="QLabel" name="GitCommitDateLabel">
113139
<property name="text">
114-
<string>Gitlab page</string>
140+
<string>Git Commit Date:</string>
115141
</property>
116142
</widget>
117143
</item>
118-
<item row="5" column="1">
119-
<widget class="QLabel" name="GitlabLinkValue">
144+
<item row="0" column="1">
145+
<widget class="QLabel" name="VersionValue">
120146
<property name="text">
121-
<string>&lt;a href=&quot;https://gitlab.com/CalcProgrammer1/OpenRGB&quot;&gt;https://gitlab.com/CalcProgrammer1/OpenRGB&lt;/a&gt;</string>
122-
</property>
123-
<property name="textFormat">
124-
<enum>Qt::RichText</enum>
125-
</property>
126-
<property name="openExternalLinks">
127-
<bool>true</bool>
147+
<string notr="true">Version Value</string>
128148
</property>
129149
</widget>
130150
</item>
131-
<item row="6" column="0">
132-
<widget class="QLabel" name="WebsiteLinkLabel">
151+
<item row="3" column="0">
152+
<widget class="QLabel" name="BuildDateLabel">
133153
<property name="text">
134-
<string>Website</string>
154+
<string>Build Date:</string>
135155
</property>
136156
</widget>
137157
</item>
138-
<item row="6" column="1">
139-
<widget class="QLabel" name="WebsiteLinkValue">
158+
<item row="2" column="0">
159+
<widget class="QLabel" name="PluginAPIVersionLabel">
140160
<property name="text">
141-
<string>&lt;a href=&quot;https://openrgb.org&quot;&gt;https://openrgb.org&lt;/a&gt;</string>
161+
<string>Plugin API Version:</string>
142162
</property>
143-
<property name="textFormat">
144-
<enum>Qt::RichText</enum>
163+
</widget>
164+
</item>
165+
<item row="1" column="1">
166+
<widget class="QLabel" name="SDKVersionValue">
167+
<property name="text">
168+
<string>SDK Version Value</string>
145169
</property>
146-
<property name="openExternalLinks">
147-
<bool>true</bool>
170+
</widget>
171+
</item>
172+
<item row="2" column="1">
173+
<widget class="QLabel" name="PluginAPIVersionValue">
174+
<property name="text">
175+
<string>Plugin API Version Value</string>
148176
</property>
149177
</widget>
150178
</item>

0 commit comments

Comments
 (0)