Skip to content

Commit 60daac6

Browse files
Update version to 4.00 and move version definition to QMake project
1 parent 47f2a72 commit 60daac6

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

KeyboardVisualizer.pro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,26 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
1616
#-----------------------------------------------------------------------#
1717
# Application Configuration #
1818
#-----------------------------------------------------------------------#
19+
VERSION = 4.00
1920
TARGET = KeyboardVisualizer
2021
TEMPLATE = app
2122

23+
#-----------------------------------------------------------------------#
24+
# Automatically generated build information #
25+
#-----------------------------------------------------------------------#
26+
win32:BUILDDATE = $$system(date /t)
27+
unix:BUILDDATE = $$system(date -R)
28+
GIT_COMMIT_ID = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD)
29+
GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD)
30+
GIT_BRANCH = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD)
31+
32+
DEFINES += \
33+
VERSION_STRING=\\"\"\"$$VERSION\\"\"\" \
34+
BUILDDATE_STRING=\\"\"\"$$BUILDDATE\\"\"\" \
35+
GIT_COMMIT_ID=\\"\"\"$$GIT_COMMIT_ID\\"\"\" \
36+
GIT_COMMIT_DATE=\\"\"\"$$GIT_COMMIT_DATE\\"\"\" \
37+
GIT_BRANCH=\\"\"\"$$GIT_BRANCH\\"\"\" \
38+
2239
#-----------------------------------------------------------------------#
2340
# Keyboard Visualizer #
2441
#-----------------------------------------------------------------------#

KeyboardVisualizerQT/KeyboardVisDlg.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ KeyboardVisDlg::KeyboardVisDlg(QWidget *parent) : QMainWindow(parent), ui(new Ke
2525
firstrun = true;
2626

2727
ui->setupUi(this);
28+
29+
std::string titleString = "Keyboard Visualizer ";
30+
titleString.append(VERSION_STRING);
31+
setWindowTitle(titleString.c_str());
32+
2833
QIcon icon(":Icon.png");
2934
setWindowIcon(icon);
3035

KeyboardVisualizerQT/keyboardvisualizer.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
14-
<string>Keyboard Visualizer - OpenRGB SDK Dev Build</string>
14+
<string>Keyboard Visualizer</string>
1515
</property>
1616
<widget class="QWidget" name="centralWidget">
1717
<layout class="QGridLayout" name="gridLayout">

KeyboardVisualizerQT/main.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,6 @@ bool parse_command_line(int argc, char *argv[])
230230
printf(" client - Configure this instance as a client for synchronization\r\n");
231231
printf(" - Takes the IP/hostname of the server and port as arguments,\r\n");
232232
printf(" - i.e. client=192.168.1.100,1234\r\n");
233-
printf(" ledstrip - LED config strings :\r\n");
234-
printf(" - Serial : ledstrip=port,baud,num_leds\r\n");
235-
printf(" - (ex.ledstrip=COM1,115200,30)\r\n");
236-
printf(" - UDP : ledstrip=udp:client,port,num_leds\r\n");
237-
printf(" - (ex.ledstrip=udp:192.168.1.5,1234,30)\r\n");
238-
printf(" xmas - COM port, ex. xmas=COM2\r\n");
239-
printf(" hueplus - HUE+ config:\r\n");
240-
printf(" - hueplus=port,channel,num_leds\r\n");
241-
printf(" - channel: 0 -> both channels, 1 -> channel 1, 2 -> channel 2\r\n");
242-
printf(" - num_leds: Fans * 8 ex. 3 Fans -> 24\r\n");
243-
printf(" - Important for Fans: If you have connected fans on both channels only count the fans on the channel with the most fans\r\n");
244-
printf(" ex. 3 Fans on Ch. 1 4 Fans on CH. 2: num_leds 32 for the 4 Fans\r\n");
245-
printf(" For best Visualizer results don`t connect on one channel 3 fans more than on the other channel\r\n");
246-
printf(" - (ex. hueplus=COM4,1,24\r\n");
247233
return false;
248234
}
249235

0 commit comments

Comments
 (0)