umbrello  2.32.2
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  return versionStr.toLatin1();
29 }
30 
31 // Update this version and dtd's in doc/xml when changing the XMI file format
32 #if defined(ENABLE_WIDGET_SHOW_DOC) || defined(ENABLE_XMIRESOLUTION)
33 #define XMI_FILE_VERSION "1.6.19"
34 #else
35 #define XMI_FILE_VERSION "1.6.18"
36 #endif
37 
38 #endif
umbrelloVersion
QByteArray umbrelloVersion()
Definition: version.h:18