umbrello 2.34.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

version.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMBRELLO_VERSION_H
7#define UMBRELLO_VERSION_H
8
9#if QT_VERSION < 0x050000
10#include <kdeversion.h>
11#endif
12
13 inline QByteArray umbrelloVersion()
14{
15#ifdef UMBRELLO_VERSION_STRING
16 QString versionStr = QString::fromLatin1(UMBRELLO_VERSION_STRING);
17#else
18 QString versionStr = QString::fromLatin1("%1.%2.%3")
19 .arg(KDE::versionMajor()-2)
20 .arg(KDE::versionMinor())
21 .arg(KDE::versionRelease());
22#endif
23#if defined(ENABLE_WIDGET_SHOW_DOC) || defined(ENABLE_XMIRESOLUTION)
24 versionStr.append(QLatin1String(" (experimental)"));
25#endif
26#ifdef APPLICATIONS_VERSION_STRING
27 versionStr.append(QLatin1String(" (Applications "));
28 versionStr.append(QString::fromLatin1(APPLICATIONS_VERSION_STRING));
29 versionStr.append(QLatin1String(")"));
30 return versionStr.toLatin1();
31#endif
32}
33
34// Update this version and dtd's in doc/xml when changing the XMI file format
35#define XMI1_FILE_VERSION "1.7.6"
36#define XMI2_FILE_VERSION "2.0.4"
37
38#endif
UMBRELLO_VERSION_STRING
#define UMBRELLO_VERSION_STRING
Definition: moc_predefs.h:409
APPLICATIONS_VERSION_STRING
#define APPLICATIONS_VERSION_STRING
Definition: moc_predefs.h:200
umbrelloVersion
QByteArray umbrelloVersion()
Definition: version.h:13