aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/winutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Fix detection of DLL or EXE file/product version on WindowsDenis Shienkov2019-11-051-2/+8
| | | | | | | | | | We need to handle not only the most significant bits of the file's binary version, but also the least significant bits. Otherwise a returning file/product version is not a complete. Change-Id: I2372731ed4e6740c09785fc74c80dad6ecfe9fbe Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Windows: Remove explicit usage of _WIN32_WINNT and WINVER macrosCristian Adam2019-10-311-3/+0
| | | | | | | | | The are set in a central place, in the precompile header file. Or as DEFAULT_DEFINES when the precompile header file is not used. Change-Id: Ie020f916b64eabcd5a8153f4be5474986f5afed5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Avoid warning on empty expressionshjk2019-07-231-4/+4
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: ModernizeAlessandro Portale2018-07-201-7/+7
| | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I8d44d9405011a1878353baf9325f7af90b89db02 Reviewed-by: hjk <hjk@qt.io>
* Revert "Windows: Match the name case of included files"Orgad Shaneh2018-07-191-1/+1
| | | | | | | | | It breaks cross-compilation on linux/mingw. This reverts commit 1c014ed3d9256df0330338b34f1c710efa962cf8. Change-Id: I3e8183ec318541a4393ad242eefbdeaa78b7be44 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Windows: Match the name case of included filesAlessandro Portale2018-07-121-1/+1
| | | | | | | | | | | Although Windows is case insensitive, and lower case always works, Clang complains: Lexical or Preprocessor Issue: warning: non-portable path to file '<FooBar.h>'; specified path differs in case from file name on disk Change-Id: I8f94e9fb62f6afec8aa6b9d08a7c78f6ba8a4435 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Utils: Fix compiler warning on unix hostsChristian Kandeler2018-02-081-0/+2
| | | | | Change-Id: Iaac91d22f4df8ab15fb1ba232475bf8661d4f97b Reviewed-by: hjk <hjk@qt.io>
* Fix MinGW valgrind buildOliver Wolff2018-02-061-2/+19
| | | | | | | | | | QueryFullProcessImageName is only available on Windows >= Vista. iSetting _WIN32_WINNT fixes availability on MinGW and moving the functionality to winutils avoids code duplication. Change-Id: I0ff1a12a1c092b1ad9cde75b636b52c5b959ce7d Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Prevent 'qmake -query' from bringing up modal message dialog on startupKai Koehne2014-04-071-0/+18
| | | | | | | | | | | | | | Temporarily set the ErrorMode so that no Windows error message box will show up in case qmake fails to run (e.g. because of missing .dll's). The error mode will automatically be inherited by child processes. This fixes an issue that actually became virulent by another bug fix ( cbb053068ccc6399dc7a39 ). Task-number: QTCREATORBUG-11962 Change-Id: I5baccf52baee46f3d45b69ea0a13d77e4e113fbd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* winutils: Fix warning about unused functions on non windowsTobias Hunger2014-02-281-0/+2
| | | | | Change-Id: Ied8a26009de64ce8b6f285d41609e801f82e61e3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Utils: Compile winutils on all platformhjk2014-02-201-2/+16
| | | | | | | ... and simplify "user" code. Change-Id: I2dfa402f25ab83f1ab80adc0ac508e8383c69641 Reviewed-by: David Schulz <david.schulz@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Crossify normalizePathNameOrgad Shaneh2013-10-241-48/+0
| | | | | | | | | | | | Denoise usages get{Short|Long}PathName are now static. They're not used anywhere except in normalizePathName. Change-Id: Ief277b6d828faadd98ec7faa39dd682bfaa8805f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Utils: Rename winQPidToPid to qPidToPidhjk2013-07-121-6/+0
| | | | | | | ... and make it a no-op on non-Windows. Saves #ifdefs. Change-Id: Ie791f7b9f1a425325d0b889e73758c5f7f7e6ad2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* MinGW: Fix warning about _WIN32_WINNT being redefinedKai Koehne2013-04-241-0/+1
| | | | | Change-Id: Ia097316b1eb16fbb0868f8b3f42e0ad5892f4573 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* qtcassert: move actual printing to separate function and enforce stylehjk2012-04-171-1/+1
| | | | | | | This also allows simple setting of breakpoints on failed asserts. Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-6/+6
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Debugger[CDB]: Use file normalization function from utils.Friedemann Kleint2011-04-281-0/+3
| | | | | | | Remove complicated/expensive function in dbgwinutils in favour of the utils one (improved to upper case the drive letter) as it is sufficient now with the improved checking in editor manager/location mark.
* Fix "File name case mismatch" error when debugging QML apps (Win)Kai Koehne2011-04-201-0/+13
| | | | | | | | | Work around QTBUG-17529 by normalizing the capitalization of the working directory (which we do already for launching apps without debugging). Task-number: QTCREATORBUG-4592 Reviewed-by: Friedemann Kleint
* Update license.hjk2011-04-131-14/+13
|
* dispose of dynamic resolution of GetLongPathNameW and GetShortPathNameWOswald Buddenhagen2011-03-211-38/+6
| | | | everything links to kernel32 anyway
* don't include zero terminator into the stringOswald Buddenhagen2011-03-211-2/+2
| | | | | | fixes "run in terminal" and potentially numerous other bugs. Task-number: QTCREATORBUG-4012
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* WinUtils: Use scoped array pointerKai Koehne2011-01-051-8/+6
| | | | Requested by Friedemann
* QmlProject: Fix compilation on cygwinKai Koehne2011-01-051-0/+33
| | | | Move use of windows API to winutils.
* Merge branch '2.1'con2010-12-171-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/basemode.cpp src/plugins/coreplugin/basemode.h src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/debuggeruiswitcher.cpp src/plugins/debugger/debuggeruiswitcher.h src/plugins/projectexplorer/buildconfigdialog.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.h src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h src/plugins/qmldesigner/designercore/include/modelutilities.h src/plugins/qmldesigner/designercore/include/nodeinstance.h src/plugins/qmldesigner/designercore/include/propertymetainfo.h src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp src/plugins/qmldesigner/designercore/model/modelutilities.cpp src/plugins/snippets/inputwidget.cpp src/plugins/snippets/snippetscompletion.cpp src/plugins/snippets/snippetscompletion.h src/plugins/snippets/snippetspec.cpp src/plugins/snippets/snippetsplugin.cpp src/plugins/snippets/snippetswindow.cpp src/plugins/snippets/snippetswindow.h src/plugins/texteditor/snippetsparser.cpp src/tools/qml/qmldom/main.cpp tests/manual/trk/runner.cpp tests/manual/trk/trkolddevice.cpp tests/manual/trk/trkolddevice.h tests/manual/trk/trkserver.cpp
| * License headers.con2010-12-171-7/+11
| |
* | Qt4ProjectManager: Do not include windows.h in qtversionmanager.Friedemann Kleint2010-11-031-0/+21
| | | | | | | | Move 64bit-binary detection into Utils library.
* | Winutils: define Windows version correctly. Fix gcc warning.Friedemann Kleint2010-11-011-6/+5
| |
* | Add helper to find out about Windows 32/64bit for Debuggers.Friedemann Kleint2010-10-291-1/+14
|/
* Debugger: Move some windows functionality around.Friedemann Kleint2010-09-101-0/+6
|
* Long live the king!hjk2010-03-051-1/+1
|
* Merge remote branch 'origin/1.3'Oswald Buddenhagen2010-01-291-1/+1
|\ | | | | | | Trailing whitespace removal re-applied manually.
| * remove trailing whitespaceOswald Buddenhagen2010-01-291-1/+1
| | | | | | | | doing it in 1.3 as well to avoid possible later conflicts
* | Mercurial: Work on Windows using Tortoise Hg, polishing.Friedemann Kleint2009-11-051-2/+46
|/ | | | | | | Do not use "cmd /c hg" on Windows as this will fail randomly depending on arguments with blanks, such as "-U 8". Output log messages about synchronous commands, format author correctly, label menus correctly.
* CDB: Add nagging about old version of Debugging Tools.Friedemann Kleint2009-10-091-0/+60
| | | | Add utility to figure out DLL/Product versions.
* Rename namespace Core::Utils into UtilsFriedemann Kleint2009-10-051-2/+0
| | | | | Also move Designer::Internal::FormWindowEditor -> Designer::FormWindowEditor.
* long live the kinghjk2009-08-141-1/+1
|
* Update license headers and sales contact details.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* Rename QWORKBENCH_UTILS_EXPORT to QTCREATOR_UTILS_EXPORTAlessandro Portale2009-05-081-1/+1
| | | | Rename QWORKBENCH_UTILS_LIBRARY to QTCREATOR_UTILS_LIBRARY
* m.txtFriedemann Kleint2009-03-031-0/+56