Changeset d17dd78


Ignore:
Timestamp:
06/27/11 22:39:29 (10 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
4fe29d6
Parents:
3686b97
Message:

Included application version in the about dialog. This closes ticket #9.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • confclerk.pro

    r3686b97 rd17dd78  
    44ISQT4 = $$find(QMAKEVERSION, ^[2-9])
    55isEmpty( ISQT4 ) {
    6 error("Use the qmake include with Qt4.4 or greater, on Debian that is
    7 qmake-qt4");
     6        error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
    87}
    98
     
    1110SUBDIRS = src
    1211
    13 VERSION = 0.5.0
     12# The global.pri defines the VERSION of the project
     13include(src/global.pri)
     14
    1415
    1516QMAKE_DISTCLEAN += src/bin/*.a
  • src/app/main.cpp

    r3686b97 rd17dd78  
    4444    QCoreApplication::setOrganizationName("Toastfreeware");
    4545    QCoreApplication::setApplicationName("ConfClerk");
     46    QCoreApplication::setApplicationVersion(VERSION);
    4647 
    4748    SqlEngine::initialize(); // creates "SQLITE" DB connection
  • src/global.pri

    r3686b97 rd17dd78  
    33# include this file in each "*.pro" file, where it's needed
    44# USAGE: include(./global.pri)
     5
     6# VERSION
     7VERSION = 0.5.0
     8DEFINES += VERSION=\\\"$$VERSION\\\"
    59
    610# Define 'MAEMO' specific CONFIG/DEFINE
  • src/gui/about.ui

    r3686b97 rd17dd78  
    190190                <property name="text">
    191191                 <string>(Successor of FOSDEM schedule)</string>
     192                </property>
     193               </widget>
     194              </item>
     195              <item>
     196               <widget class="QLabel" name="labelVersion">
     197                <property name="text">
     198                 <string>Version %1</string>
    192199                </property>
    193200               </widget>
  • src/gui/mainwindow.cpp

    r3686b97 rd17dd78  
    134134    Ui::AboutDialog ui;
    135135    ui.setupUi(&dialog);
     136    ui.labelVersion->setText(ui.labelVersion->text().arg(qApp->applicationVersion()));
    136137#ifdef N810
    137138    dialog.setFixedWidth(width());
Note: See TracChangeset for help on using the changeset viewer.