aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
Commit message (Collapse)AuthorAgeFilesLines
* CMake build: Set LSMinimumSystemVersion on macOSEike Ziller2020-06-191-0/+3
| | | | | | | | | | Setting it to CMAKE_OSX_DEPLOYMENT_TARGET if that is set (either via cmake directly, or, as we do for the packages, by setting the MACOSX_DEPLOYMENT_TARGET environment variable). Fixes: QTCREATORBUG-22466 Change-Id: I7378bc32be6d66cf4e4b1eac1530c89159e74804 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* App: Restrict use of Qt::AA_DisableWindowContextHelpButton to Qt 5hjk2020-06-191-0/+2
| | | | | | | Gone afterwards. Change-Id: I8c7009658844a5979b144c108736055ed11bec05 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Linux: Force release of unused memoryChristian Kandeler2020-05-111-0/+31
| | | | | | | | | | | | Apparently, glibc uses an overly aggressive caching strategy, causing Creator to accumulate an unreasonable amount of resident memory over time. We deal with this by manually forcing glibc to free unused memory once a minute, provided the application is actually in use. Fixes: QTCREATORBUG-22832 Change-Id: I300eafd8714eb7e49774129758998db32ca1a1de Reviewed-by: hjk <hjk@qt.io>
* App: Add mechanism to not propagate LD_PRELOADhjk2020-04-301-0/+5
| | | | | | | | | | | LD_PRELOAD is useful e.g. to preload custom malloc implementations for profiling purposes. At times, it makes sense to not propagate that to spawned child processes. This here allows to prevent that by setting another variable, QTC_DO_NOT_PROPAGATE_LD_PRELOAD, in the environment. Change-Id: Ib8944685488a18a651d351b8a64dd8d7a7e48837 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix link on commit sha in about dialogEike Ziller2020-03-232-6/+2
| | | | | | | | | | Passing a URL via defines breaks when trying to "stringify" it. It would always stop at the first slash. Instead use a qmake variable directly. That has the additional advantage that the value isn't passed on each and every compiler command line. Change-Id: I97a297fbcdee5ea03eb6fa08181c95b1ad2de767 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Take compatibility version into account for user pluginsEike Ziller2020-03-064-1/+10
| | | | | | | | | | | | When loading user-local plugins, do not load plugins for all patch versions starting from .0 unconditionally. Take the compatibility version into account. That fixes that prereleases x.y.82 etc should not try loading plugins for any actual x.y.z release. Change-Id: Ide0931bbdef4f48e08dcc3213f7c193c8889fb0f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Globally disable WindowContextHelpButtonHintKai Koehne2020-02-251-0/+1
| | | | | | | | | | | Do set the global application flag AA_DisableWindowContextHelpButton to avoid having to unset the default WindowContextHelpButtonHint in every single dialog. AA_DisableWindowContextHelpButton was added in Qt 5.10. Change-Id: I21fe8bc5ddfa4c01ec7a799b04bfb6ff1c9d6d86 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* App/aggregation: Some modernizationhjk2020-02-141-15/+13
| | | | | Change-Id: I390e81122453d20a646af4a5bf08edf9de0d9db5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Turn the IDE revision link in VersionDialog to be Opt-inAlessandro Portale2020-02-101-1/+1
| | | | | | | | | If IDE_REVISION is set, don't default to some hardcoded string for IDE_REVISION_IDE_STR. Task-number: QTCREATORBUG-23524 Change-Id: Icc6aa6a4a0fb24178c5c1bd5feaa96b6a5b07115 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Let the clickable link in VersionDialog jump to git logAlessandro Portale2020-01-241-1/+1
| | | | | | | ...instead to just one commit. Change-Id: I8bb53ba3e7f4fcfb2fb306afe2a06a2b63dc89d8 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Core: Fix non-CMake compilation with IDE_REVISIONAlessandro Portale2020-01-242-1/+7
| | | | | | | amends ae9fbd04dd932707e8538676343ec6c6d5bcd250 Change-Id: I746a89b21ee07aecad525b7b91fe1f360ad1e853 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: Make the revision sha in VersionDialog a clickable linkAlessandro Portale2020-01-231-0/+1
| | | | | | | | | The base URL can be defined via the IDE branding mechanism. If omitted, the revision is plain text, like before this change. Change-Id: If1a74707a10c76e15d3d25b8e6b0c302219fb91d Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Guard against crashing pluginsEike Ziller2020-01-201-0/+1
| | | | | | | | | | | | | | If a plugin crashes, ask the user if that plugin should be disabled. For this track which plugin currently is changing its state. Remove that information if the state change was successful. At startup check if there is a plugin for which we wrote, but not removed that information. This is especially interesting if the user installed 3rdparty plugins. Change-Id: I5729aa5c786b653d5bd53304f4fbeaca35ec9e71 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CMake build system: Allow configuration without main appAlessandro Portale2020-01-161-0/+4
| | | | | | | Quite handy when working only with tetst. Change-Id: I018e703c3d4d47618b99ef183d930f8d015eeed8 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* App: Use char array instead of pointers for string literalshjk2020-01-141-10/+10
| | | | | | | Less symbols, and less surprises when assigning to QString. Change-Id: Ic1112c107d22e090d98bafc4027d70d68e474d00 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* App: Make compilehjk2020-01-141-2/+2
| | | | | | | | Amends 7c35c447e1c. Change-Id: I92af20bb4d9e23c91fc43a0c3388a6cf1cdec5a5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Set application details earlierEike Ziller2020-01-141-0/+5
| | | | | | | | The application details (name, organization, etc) were only set during Core plugin startup, but that is too late for e.g. the plugin manager. Change-Id: Id47d79e38dec9e586ab7b91a3080101e5fecb20d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Provide "Restart Now" functionalityEike Ziller2020-01-071-1/+54
| | | | | | | | And use it for the plugin dialog and when changing the UI language. Change-Id: Ic767837d2526409f7ec46d7e4612a1499f19459e Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Work around high DPI issues on WindowsEike Ziller2020-01-031-0/+5
| | | | | | Task-number: QTBUG-80934 Change-Id: I4b7dbe7157145db3a9feee83f32be3babaca5ab9 Reviewed-by: David Schulz <david.schulz@qt.io>
* Simplify RPATHs for qmake buildEike Ziller2019-11-041-0/+2
| | | | | | | | | | | | | | Use central rpath.pri for setting RPATHs and qttestrpath.pri for tests. Simplify install names of plugins and libraries on macOS to be just @rpath/libName, which follows convention better and makes setting up RPATHs easier. Preparation for moving tools one directory level down on macOS, to be able to add a qt.conf for the tools generically. Task-number: QTCREATORBUG-23120 Change-Id: I16625d48904abd3a7f4c2ad7bbba5916cdc400cd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Main: Remove unused includeOrgad Shaneh2019-10-221-1/+0
| | | | | Change-Id: Ifeef80bfc6465c5544118a74e774a5442c4f8374 Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/4.10' into 4.11Eike Ziller2019-10-021-0/+2
|\ | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/projectnodes.h Change-Id: I10a749cca38c2d0929cf4d2b74ab089e14b6157b
| * Show application icon in Plasma Wayland sessionsElvis Angelaccio2019-10-011-0/+2
| | | | | | | | | | | | | | | | | | kwin_wayland fetches application icons from .desktop files, so we need to set the desktop filename on the QGuiApplication instance (otherwise kwin will set a generic wayland icon as fallback). Change-Id: I89921ace4a5a4ff2a2387111e51a8914f58e44a8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CMake Build: Add app_version.h to Devel packageCristian Adam2019-09-181-0/+6
| | | | | | | | | | | | Fixes: QTCREATORBUG-22802 Change-Id: I7616eab534127c806093240de430fe060d8bd0df Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Some clang-tidy -use-modernize-nullptrhjk2019-08-011-4/+4
| | | | | | | | | | Change-Id: I1bed5e85a5b7948d08502a72a10f80baa075c204 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Let users disable environment entriesChristian Kandeler2019-07-221-1/+1
|/ | | | | | | | | It's helpful to be able to temporarily disable environment variables, as opposed to having to remove (and then re-add) them entirely. Fixes: QTCREATORBUG-20984 Change-Id: Ib0d287035b9357507c4c19faaf3a1517382506b5 Reviewed-by: hjk <hjk@qt.io>
* improve installsettingspath error messageTim Jenssen2019-07-171-1/+1
| | | | | Change-Id: Iefd301009faad8a15e9a1b99b0a52bce34eae654 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* try only show MessageBoxes if that is possibleTim Jenssen2019-07-171-3/+3
| | | | | Change-Id: I70f41b7a2936d6797895559530050e8de54b2913 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix warnings in qbs build on macOSChristian Kandeler2019-06-071-1/+7
| | | | | | | Amends fc04ec1c3e. Change-Id: I17f41ad1dc02727da8431b55cb3b14d4594fe1af Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Add a custom target to copy share/qtcreator into build folderTobias Hunger2019-06-031-5/+0
| | | | | | Change-Id: Iae78b8a154c80f26f08d5512c089f7eb802d3662 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-1/+1
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ExtensionSystem: Move away from QListEike Ziller2019-05-271-1/+1
| | | | | | | | Qt 6 API will move away from it. Use QVector for API and some std container for internal things. Change-Id: Iff14d48a47d5ac52ade875d9c8c84ad8a4f577d8 Reviewed-by: hjk <hjk@qt.io>
* CMake build/macOS: Generate app and project iconsEike Ziller2019-05-241-0/+22
| | | | | | Fixes: QTCREATORBUG-22473 Change-Id: Ice1d01569e320cac51a741e911a08a036702bc31 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Revert "Work around OpenGL issue in macOS 10.14.4"Eike Ziller2019-05-231-0/+2
| | | | | | | | | | Fixed in macOS 10.14.5 This reverts commit 4bdfaafc4246771bf1cbc87968287f5af5098362. Task-number: QTCREATORBUG-22215 Change-Id: I33c0965e22d61a9a745ed05dd330f6e938ceb3e1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CMake build: Visual C++ rc fixCristian Adam2019-05-201-6/+6
| | | | | Change-Id: I12a12ed984647baf8751ed53a63e0876171ef536 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CMake build / macOS: Fix Info.plistEike Ziller2019-05-203-9/+17
| | | | | | Change-Id: I160c9efd10e62b7e17957117daed376d2ce70601 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* CMake build / Win32: Add rc file to qtcreator.exeCristian Adam2019-05-201-0/+20
| | | | | Change-Id: I47580f0357866d7931d0deb4daa02f601537722e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Qt Creator CMake portCristian Adam2019-05-172-0/+72
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-05-171-2/+6
|\ | | | | | | | | | | | | Conflicts: src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp Change-Id: I473084232ab99c18e2316154656de0035af02628
| * Load user-plugins from earlier patch releasesEike Ziller2019-05-131-2/+6
| | | | | | | | | | | | | | | | | | Qt Creator X.Y.Z is binary compatible with X.Y.(Z-1) so load plugins from these user plugin directories too. Change-Id: Ibed7f54e84864337a69a4745fb1ecd2f78907486 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | add brand QtCreator to something else featureTim Jenssen2019-05-022-3/+6
|/ | | | | | | | | | | | | | - this patch enables branding QtCreator to something else excluding the logo icons which will follow in a later patch - qtcreator_ide_branding.pri is always included, so only need to write the values we want to override in a IDE_BRANDING_PRI file - if there is no BINARY_ARTIFACTS_BRANCH it won't checkout that repository Task-number: QTCREATORBUG-22226 Change-Id: I592b40025cc53988224770b704622874f2174593 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Work around OpenGL issue in macOS 10.14.4Eike Ziller2019-04-091-2/+0
| | | | | | | | | | Looks like any OpenGL usage crashes on GPU switches, so temporarily turn it off. Task-number: QTCREATORBUG-22215 Change-Id: I26f370f4d94a00fa56da75a32b3ff485ad771864 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* App: Fix typo in the -temporarycleansettings descriptionhjk2019-03-181-1/+1
| | | | | | | | | And mention the option in the ChangeLog. Change-Id: I7cce04ec1ad8b3f89b4a4f6c24f2a8d2da9381a0 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* App: Add a -temporarycleansettings (-tcs) command line optionhjk2019-03-181-1/+7
| | | | | | | | For people that are too lazy to think about currently unused throw-away temporary directory names. Change-Id: I0c52f3ea2b0dac4ef6cf3f9db646fd5107fa7977 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Windows: Fix missing debug info for qtcreator executableEike Ziller2019-03-111-1/+2
| | | | | | | | | | | When we set a VERSION, there is QTBUG-74265 which leads to wrong rules for the pdb file. On Windows we do not really need the VERSION for the qtcreator executable (we create an .rc file for the executable details for Windows), so unset the VERSION that is set in qtcreator.pri on Windows. Change-Id: I1e0289fe027b48560ec71f6df70522174770fe84 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Application icons refresh: Qt Creator == "QC"Alessandro Portale2019-02-1521-0/+0
| | | | | | | | | This change replaces the existing application icons with the newly designed ones. Task-number: QTBUG-70826 Change-Id: I379ac8b5f64c4394c45c95fc4f8d7feb8bdfac69 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.8' into 4.9Eike Ziller2019-02-081-0/+2
|\ | | | | | | | | | | | | Conflicts: qtcreator.pri Change-Id: I84dc8b9c7a029f2f40c4fa3ef78eef338247a6c0
| * macOS: Fix broken Info.plistEike Ziller2019-02-081-0/+2
| | | | | | | | | | | | | | | | | | Fixup of dd0156d1facc5422464dc1b430696a0b63db605f For some reason Xcode removed the closing tags when editing the Info.plist file in its editor... Change-Id: Ib9e53dce0be13ad0bb03ae46386c632b448b6a9a Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* | Make deployqt target recursiveEike Ziller2019-02-071-0/+2
| | | | | | | | | | | | | | So perfparser's deploy target is triggered too Change-Id: I131a23b46127130967767fd7fee629ac5a97b17a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Merge remote-tracking branch 'origin/4.8' into 4.9Eike Ziller2019-02-071-2/+20
|\| | | | | | | Change-Id: I216c7dcbef1e840751332e7a6558c9d633444af3