Changeset d17dd78 for src


Ignore:
Timestamp:
06/27/11 22:39:29 (12 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.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.