umbrello: umbrello/version.h Source File

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

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 return versionStr.toLatin1();
27 }
28
29 // Update this version and dtd's in doc/xml when changing the XMI file format
30 #define XMI_FILE_VERSION "1.7.3"
31
32 #endif
umbrelloVersion
QByteArray umbrelloVersion()
Definition: version.h:13