umbrello  2.32.0
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  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef UMBRELLO_VERSION_H
12 #define UMBRELLO_VERSION_H
13 
14 #if QT_VERSION < 0x050000
15 #include <kdeversion.h>
16 #endif
17 
18 inline QByteArray umbrelloVersion()
19 {
20 #ifdef UMBRELLO_VERSION_STRING
21  QString versionStr = QString::fromLatin1(UMBRELLO_VERSION_STRING);
22 #else
23  QString versionStr = QString::fromLatin1("%1.%2.%3")
24  .arg(KDE::versionMajor()-2)
25  .arg(KDE::versionMinor())
26  .arg(KDE::versionRelease());
27 #endif
28 #if defined(ENABLE_WIDGET_SHOW_DOC) || defined(ENABLE_XMIRESOLUTION)
29  versionStr.append(QLatin1String(" (experimental)"));
30 #endif
31  return versionStr.toLatin1();
32 }
33 
34 // Update this version and dtd's in doc/xml when changing the XMI file format
35 #define XMI_FILE_VERSION "1.7.3"
36 
37 #endif
#define UMBRELLO_VERSION_STRING
Definition: moc_predefs.h:378
QByteArray umbrelloVersion()
Definition: version.h:18