Mon, 27 Jun 2022 02:00:49 +0300
Fix qrc path in mainwindow.ui
1 | 1 | /* |
2 | * LDForge: LDraw parts authoring CAD | |
24 | 3 | * Copyright (C) 2013 - 2020 Teemu Piippo |
1 | 4 | * |
5 | * This program is free software: you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License as published by | |
7 | * the Free Software Foundation, either version 3 of the License, or | |
8 | * (at your option) any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | #pragma once | |
20 | #include <QString> | |
21 | ||
268
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
22 | constexpr char appName[] = APPNAME; |
1 | 23 | |
268
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
24 | constexpr struct { |
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
25 | int major = VERSION_MAJOR; |
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
26 | int minor = VERSION_MINOR; |
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
27 | int patch = VERSION_PATCH; |
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
28 | } APPVERSION; |
1 | 29 | |
30 | enum BuildType {InternalBuild, ReleaseBuild}; | |
250
2837b549e616
I felt that the compiler was too kind to me, so I enabled a big pile of warnings
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
24
diff
changeset
|
31 | constexpr BuildType BUILD_TYPE = InternalBuild; |
1 | 32 | |
33 | #ifdef DEBUG | |
34 | # undef RELEASE | |
35 | #endif // DEBUG | |
36 | ||
37 | #ifdef RELEASE | |
38 | # undef DEBUG | |
39 | #endif // RELEASE | |
40 | ||
268
fb319526ba6c
Define application name and version in CMakeLists
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
250
diff
changeset
|
41 | const char *fullVersionString(); |
1 | 42 | const QString& commitTimeString(); |