add current git hash to the app title

This commit is contained in:
Peinthor Rene
2012-07-31 18:51:30 +02:00
parent 00601b6f8d
commit 63461df6c4
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ int main( int argc, char ** argv )
{
QApplication a( argc, argv );
a.setOrganizationName("duckmansoftware");
a.setApplicationName("SQLite Database Browser");
a.setApplicationName("SQLite Database Browser " + QString(APP_VERSION));
MainWindow w;
#if defined(Q_WS_MAC)
AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments,
+3
View File
@@ -57,6 +57,9 @@ SOURCES += \
createtabledialog.cpp \
SQLLogDock.cpp \
sqlitesyntaxhighlighter.cpp
QMAKE_CXXFLAGS += -DAPP_VERSION=\\\"`git log -n1 --format=%h`\\\"
unix {
UI_DIR = .ui
MOC_DIR = .moc