From: Joel Holdsworth Date: Fri, 11 May 2012 08:40:27 +0000 (+0100) Subject: Added application metadata X-Git-Tag: pulseview-0.1.0~362 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=640e55655b7b0bd473e0e42046c681df5785f9ee;p=pulseview.git Added application metadata --- diff --git a/main.cpp b/main.cpp index af815367..80b9ec93 100644 --- a/main.cpp +++ b/main.cpp @@ -27,5 +27,10 @@ int main(int argc, char *argv[]) MainWindow w; w.show(); + /* Set some application metadata. */ + QApplication::setApplicationVersion(APP_VERSION); + QApplication::setApplicationName("sigrok-qt"); + QApplication::setOrganizationDomain("http://www.sigrok.org"); + return a.exec(); } diff --git a/sigrok-qt2.pro b/sigrok-qt2.pro index ad1d4312..a93b9bc3 100644 --- a/sigrok-qt2.pro +++ b/sigrok-qt2.pro @@ -9,6 +9,9 @@ QT += core gui TARGET = sigrok-qt2 TEMPLATE = app +# The sigrok-qt version number. Define APP_VERSION macro for use in the code. +VERSION = 0.1.0 +DEFINES += APP_VERSION=\\\"$$VERSION\\\" SOURCES += main.cpp\ mainwindow.cpp