QMAKEVERSION = $$[QMAKE_VERSION]
ISQT4 = $$find(QMAKEVERSION, ^[2-9])
isEmpty( ISQT4 ) {
-error("Use the qmake include with Qt4.4 or greater, on Debian that is
-qmake-qt4");
+ error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
}
TEMPLATE = subdirs
SUBDIRS = src
-VERSION = 0.5.0
+# The global.pri defines the VERSION of the project
+include(src/global.pri)
+
QMAKE_DISTCLEAN += src/bin/*.a
QMAKE_EXTRA_TARGETS += changelog icon man release tarball
// needed by QDesktopServices
QCoreApplication::setOrganizationName("Toastfreeware");
QCoreApplication::setApplicationName("ConfClerk");
+ QCoreApplication::setApplicationVersion(VERSION);
SqlEngine::initialize(); // creates "SQLITE" DB connection
# include this file in each "*.pro" file, where it's needed
# USAGE: include(./global.pri)
+# VERSION
+VERSION = 0.5.0
+DEFINES += VERSION=\\\"$$VERSION\\\"
+
# Define 'MAEMO' specific CONFIG/DEFINE
# To handle 'MAEMO' specific soruces/code
DISTRO = $$system(cat /etc/issue)
</property>
</widget>
</item>
+ <item>
+ <widget class="QLabel" name="labelVersion">
+ <property name="text">
+ <string>Version %1</string>
+ </property>
+ </widget>
+ </item>
<item>
<widget class="QLabel" name="spacer">
<property name="text">
QDialog dialog(this);
Ui::AboutDialog ui;
ui.setupUi(&dialog);
+ ui.labelVersion->setText(ui.labelVersion->text().arg(qApp->applicationVersion()));
#ifdef N810
dialog.setFixedWidth(width());
#endif