umbrello: umbrello/version.h Source File

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

- Main Page
- Related Pages
- Topics
- 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-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMBRELLO_VERSION_H
7#define UMBRELLO_VERSION_H
8
9 inline QByteArray umbrelloVersion()
10{
11#ifdef UMBRELLO_VERSION_STRING
12 QString versionStr = QString::fromLatin1(UMBRELLO_VERSION_STRING);
13#else
14 QString versionStr = QString::fromLatin1("%1.%2.%3")
15 .arg(KDE::versionMajor()-2)
16 .arg(KDE::versionMinor())
17 .arg(KDE::versionRelease());
18#endif
19#if defined(ENABLE_WIDGET_SHOW_DOC) || defined(ENABLE_XMIRESOLUTION)
20 versionStr.append(QStringLiteral(" (experimental)"));
21#endif
22#ifdef APPLICATIONS_VERSION_STRING
23 versionStr.append(QStringLiteral(" (Applications "));
24 versionStr.append(QString::fromLatin1(APPLICATIONS_VERSION_STRING));
25 versionStr.append(QStringLiteral(")"));
26 return versionStr.toLatin1();
27#endif
28}
29
30// Update this version and dtd's in doc/xml when changing the XMI file format
31#define XMI1_FILE_VERSION "1.7.6"
32#define XMI2_FILE_VERSION "2.0.4"
33
34#endif
umbrelloVersion
QByteArray umbrelloVersion()
Definition version.h:9