Commit Graph

21 Commits

Author SHA1 Message Date
Markus Reitböck
a72a0d6405 Gui: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:03 +02:00
wmayer
fa8978ce99 Gui: modernize C++: return braced init list 2023-08-18 00:36:24 +02:00
wmayer
e09d8aaba6 Gui: modernize C++: use range-based for loop 2023-08-14 19:42:18 +02:00
wmayer
8d42b6f93c Gui: move to new style connect() 2023-02-01 13:49:35 +01:00
wmayer
fac648fff5 Qt6 port:
* Explicitly include some missing headers
* Use 'static const char*' for XPM icon
* Skip template parameters for qMakePair
* Constructor of QFileInfo is marked as 'explicit' now
* QString::fromLatin1() also accepts a QByteArray
* QDateTime::fromTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::fromSecsSinceEpoch()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QApplication::globalStrut() is deprecated. Don't use it any more.
* QWidget::isTopLevel() is deprecated, use QWidget::isWindow()
2022-11-02 15:16:41 +01:00
berniev
ae53c9b0a4 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
Uwe
f04d77db59 [Gui] Document and Download: remove unused includes 2022-03-04 04:37:36 +01:00
Chris Hennes
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
luz.paz
168bc9bb46 Source typo fix
minor typo in function saveIfNeccessary() to saveIfNecessary()
2018-07-13 18:49:48 -04:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
ab61f66716 optimize download manager 2016-08-31 16:22:21 +02:00
wmayer
7a5bfaef70 + fix minor issue with url redirection
+ remove const reference
2016-03-14 18:04:31 +01:00
Alexander Golubev
9578f1d86d Gui: fix constructor arguments due to prototype change
Warning message was:
src/Gui/DownloadManager.cpp|295 col 54| warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
2015-08-29 18:35:55 +02:00
Yorik van Havre
bf9854e17a Arch: added bimserver and git utilities 2015-03-21 12:08:05 -03:00
wmayer
9ff69dd6dc + fixes #0001705: Download manager does not follow redirect (HTTP status 302) 2015-01-04 23:15:58 +01:00
wmayer
d9657d1c01 + issue #0001705: Download manager does not follow redirect (HTTP status 302) 2015-01-04 18:15:20 +01:00
wmayer
3fe720f3bc + Replace math.h with cmath 2014-01-05 11:25:40 +01:00
wmayer
62944cea4d + allow to close download dialog 2013-12-01 16:36:21 +01:00
wmayer
effdd7dca8 0000952: Download manager 2013-05-28 18:14:58 +02:00