Commit Graph

50929 Commits

Author SHA1 Message Date
Tobias Hunger
6ef5a36b39 AbstractProcessStep: Make init fail if a process is still running
This should not happen, but better save than sorry.

Task-number: QTCREATORBUG-17984
Change-Id: I3efa8fb38a915ae29366f3ab715077b762d53828
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-25 09:22:49 +00:00
Tobias Hunger
b5ab98dfd5 CMake: Simplify code
Use defined helper method instead of duplicating code.

Change-Id: I1eec61f99875ccd28e6e64bd5ad2bfd7e6e21eb3
Reviewed-by: hjk <hjk@qt.io>
2017-04-25 09:22:33 +00:00
Tobias Hunger
79f5a27568 CMake: Use RCs buildSystemTarget when deciding what to build
Use the RCs buildSystemTarget property when deciding what to build
with the "build current executable only" property set. This makes
the selection more robust.

Change-Id: I0dbcd764a06428b441084e6e4dc680e106c6d3bd
Reviewed-by: hjk <hjk@qt.io>
2017-04-25 09:22:17 +00:00
Tobias Hunger
cad16c4bee CMake: Fix up file group information in server-mode
Server-mode reports a filegroup for all the listed headers and will
provide that without any information on the files (no language, include
paths, etc.).

Fix up file groups like these by using the best (with that being the
settings that effect the most other files) possible information for
these files.

CMake has no idea what headers are, so it has no way to provide any
better information, so Creator has to fix things up again:-/

Task-number: QTCREATORBUG-17971
Change-Id: Ib5ddab23cf725c7e03717b577cc9f9edc5bbfc61
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-25 09:21:16 +00:00
Tobias Hunger
ff46e67971 CMake: Use for instead of foreach
Change-Id: I4e2c929414cf1f7b052ae9f6846f43ae20fcee4c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-25 09:20:38 +00:00
Tobias Hunger
7a388e7b4b CMake: Improve emission of enabledChanged signals of build configurations
Change-Id: I542b93512466727ac4ee66a8ca41e503106ebdcb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2017-04-25 09:20:16 +00:00
scootergrisen
e5cf97f409 Add danish (da) translation for Qt Creator 4.0
Change-Id: Ie3d5f2f418d462df68ad3c646fcbebe225f0c6f6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2017-04-25 08:16:48 +00:00
hjk
758e50fa45 Debugger: Catch some exceptions related to optimized out values
These could be triggered by declared but undefined and unused
static data members.

Task-number: QTCREATORBUG-18030
Change-Id: I941e8cbe8ce18dca737e59472ed0ee19ace44072
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-04-25 07:58:13 +00:00
Thomas Hartmann
893d4407eb ProjectExplorer: Ensure the FlatModel is build initially
If the FlatModel is created after a project is opened,
no update was triggered.

This was already fixed, but 8d1f4834b6fe79f992b3a44f8973d32dbc0dddb3
removed the update again.

Task-number: QTCREATORBUG-17690
Change-Id: Ide9499a6579a363f43d6cde2f1a865eddc816d9c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-04-24 14:57:31 +00:00
hjk
ede80222da ProjectExplorer: Let the container node inherit the project icon
Task-number: QTCREATORBUG-17924
Change-Id: I774ad0ed19ca7f8cbcafe7b704e3e5c62137f4a7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-04-24 13:25:12 +00:00
Thomas Hartmann
2e0e0539b3 QmlDesigner: Turn Q_ASSERT into QTC_ASSERT
I had this a couple of times and this does not seem fatal.

Change-Id: Id6d2101a5dc1bdc652e6ca8557c7dd8450399be4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-24 13:19:22 +00:00
hjk
d63abf5567 Debugger: Fix snapshot view icon size
Do what the other views do.

Change-Id: I27a12715806b5d5f73aaa0b756bb08ef1a66a021
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-24 12:25:24 +00:00
Eike Ziller
4d6e33031b Fix that help bookmarks could get lost
When closing Qt Creator before the help bookmark model was set up, it
would write an empty list of bookmarks.

Task-number: QTCREATORBUG-17537
Change-Id: I638312f21dfa201a617a4eeafb7fa161726a36ff
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-04-24 11:44:26 +00:00
Tobias Hunger
a1ae4affc2 Project: Remove duplicates from file list
Remove duplicate entries from list of project files. The duplicate
entries used to be visible in e.g. the locator.

Change-Id: I4a58ff11bd37ff39f4c9186ae89a2d384894bc1e
Reviewed-by: hjk <hjk@qt.io>
2017-04-24 11:41:41 +00:00
Laurent Montel
2b80f9b89e Don't use return keyword when method doesn't return anything
Change-Id: Ia9757be7cb51fb946557d40134a93acd1aec0a94
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-04-24 09:38:50 +00:00
Tim Jenssen
ff7e757ddd QmlDesigner: use default initializer where possible
Change-Id: I9bde2421a5cc99b1c815b568fa2a4a2e722b852d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-04-24 09:19:49 +00:00
Tim Jenssen
19e1eacfb2 QmlDesigner: white space only changes
Change-Id: I8df6b1f53fce79fdf9eed022bc189754e668589b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-24 09:17:47 +00:00
David Schulz
bd9a80717e Debugger: cdb extension version bump
Change-Id: Ie4460e5d0fafd1f599b24c4a5860510df86dcebe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-24 08:42:55 +00:00
David Schulz
41954de06e Debugger: Fix dumper tests in wow64 env
Change-Id: Iac874ccb0c498065e1f46ebcc66a48ef721f6fff
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-24 08:42:50 +00:00
Tobias Hunger
8793d0f0fa QmlProject: List .qmlproject file in project tree
Task-number: QTCREATORBUG-18057
Change-Id: I6a38093d1b6fdaeac7920746395cfbebc595d062
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-04-24 07:48:35 +00:00
Christian Kandeler
438ff54ad6 Update qbs submodule
To HEAD of 1.8 branch.

Change-Id: I87bfceca8e425284b63644d9d1e541b33a8dcfca
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-04-21 14:29:33 +00:00
Eike Ziller
1891af4b07 Specify Qt Creator's "display version" in qtcreator.pri/qtc.qbs
Currently it is set by passing defines to qmake, which complicates
package build setups.
Set the display version where the numerical version is defined. This
also makes it available to developer builds. Also switch around the
display version and numerical version in the about dialog, since e.g.
"4.3.0-rc1" is more descriptive than "4.2.83".

Change-Id: I26dda427975acdc6cc169f8d625f57918167cf19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-21 13:28:54 +00:00
Tobias Hunger
0dfd08b00e AbstractProcessStep: WS only change
Change-Id: I0b218298aeae9730b74c66e6bf7b2c96048a8b93
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-20 14:02:42 +00:00
Tim Jenssen
e21843e309 QmlDesigner: set splitter handle zero again
Was broken since 6f1d23711d which sets
css only at widgets where it is necessary.

Change-Id: Ia60672136ad8c73791806c920051918dbb23748c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-04-20 13:39:04 +00:00
Robert Loehning
843f310dde Squish: Update "Do Not Save" button
Change-Id: I84ccb2ad012a9dceb4bc27838bfe726ea4d9a127
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-20 13:06:12 +00:00
Leena Miettinen
b41e7d0fd3 Doc: Describe selecting installation location for Qbs builds
A new check box for using the default location and a field for
specifying another location were added.

Updated the screenshot.

Change-Id: I5401df6b022c524a376f85e6b6b2db2b2c0f6cb7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-20 12:24:31 +00:00
Leena Miettinen
500623ac48 Doc: Describe setting parse context
Update screenshot.

Change-Id: I5dc0f839872a7bdec7ae19b2e244d82c2c818701
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-04-20 12:12:38 +00:00
Leena Miettinen
aa58fc7492 Doc: Update information about sidebars
You can toggle both the left and right sidebar. The
sidebaricon.png file was renamed as leftsidebaricon.png,
because a rightsidebaricon.png was added.

Change-Id: I9e00917dc26acc1284c51398606194b982e9234e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-20 11:39:13 +00:00
Thomas Hartmann
3d8f131d67 QmlDesigner: Crash fix
This is a nasty one. The text item that
triggers the crash is part of a delegate and therefore,
does not have an item in the scene.
The rewriter is now setting the id again, when reading the file after
the Rectangle is removed. we get a crash.
Since delegates are currently not shown in the navigator, this crash
could not happen before we introduced the integrated text editor.


Task-number: QTCREATORBUG-17970
Change-Id: Ica16dec5bb2f852324de179c4a2b4d43dcf27aa9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-20 09:53:13 +00:00
hjk
53ff0e1ca1 Debugger: Add a workaround for bad gcc debug info generation
Gcc does not write out full type names with 'using template ...', see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80466

This is in most cases harmless for Creator as dumpers are triggered
independently of template arguments. However, if the dumper takes
different code path based on the template argument type, as is
e.g. needed for std::vector<bool>, wrong results are produced,
as the type cache only used the template base name as type id.

Work around by mangling the id of the un-typedef-ed type into
the type id of a typedef, which, in case of templates contain
the full parameter list.

Change-Id: I63c59cccdc186b09ff780e9dfd57b0ad668ae98f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-20 09:15:59 +00:00
Thomas Hartmann
e2be021cba Fix dead store
Change-Id: Ia7547803a379cd0518fdf3d707717f1bc9976dd1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-04-20 08:01:12 +00:00
David Schulz
7fa9316a96 Debugger: Disable break on warning/fatal for cdb
This seems to cause more trouble than benefit. Additionally this option
is on the _gdb_ extended settings site.

Task-number: QTCREATORBUG-17902
Change-Id: Ie548f68f84bffee670559b48f6a2ba259f8b8757
Reviewed-by: hjk <hjk@qt.io>
2017-04-20 08:00:21 +00:00
David Schulz
1397d1750c Debugger: Fix assigning std::string
Task-number: QTCREATORBUG-17267
Change-Id: If195fe801964a809363b68f09aa6ac8e1ba6e686
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-20 07:41:45 +00:00
Thomas Hartmann
cbf8e0b2d6 Fix Shortcut for right sidebar
Ctrl+0 was confliciting with "Reset Font Size".

Task-number: QTCREATORBUG-17857
Change-Id: I280c65446fd1f8ce3af66b06760ed7b9b210e8c3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-19 14:51:36 +00:00
Nikolai Kosjar
2ed089ba7f Clang: Fix path to intrinsics dir
...which got lost in

    commit 1e3f2eec8d
    Clang: Consolidate all ClangCompilerOptionsBuilder into one implementation

This will fix

    SOFT ASSERT: "!resourceDir.isEmpty()" in file
        C:\work\build\qt-creator\src\plugins\cpptools\clangcompileroptionsbuilder.cpp,
        line 119

Change-Id: Ie0301517eca580b4907bbcd8f524775f2b0bedb8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-04-19 13:23:55 +00:00
Thomas Hartmann
38bf6aed8a QmlDesigner.PropertyEditor: Disable line edit if color is transparent
Change-Id: Ifbb08473e12404f355f1498087dbbb60bc7e7ac9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-19 12:45:41 +00:00
Thomas Hartmann
591191f1e5 QmlDesigner: Show expression in UrlChooser
If an Url is an expression we show the expression.

Task-number: QTCREATORBUG-13328
Change-Id: Id615a701f540082ac25a898e6d3a104b833b7eec
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-19 12:45:31 +00:00
Thomas Hartmann
8f828fc9a2 QmlDesigner: Add assert
Change-Id: Ic7cb2dd1e6d1bfb7c21722cd42ab6443b9ee5fc3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-19 11:49:17 +00:00
Tobias Hunger
5162596fe8 ProjectExplorer: Fix listing of project nodes in the wizard's summary page
The wizards summary page did no longer list existing project nodes. Wire up that logic
so that projects and files can finally get added to existing qmake projects again.

Task-number: QTCREATORBUG-17994
Change-Id: Icc019bdf0f569440eaa01c55fc69b17e7f831b20
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-04-19 10:50:58 +00:00
Leena Miettinen
da831abb6c Doc: Make text in Search Results more generic
...so that the image does not have to contain specific text.

Add a link to the main topic about finding and replacing.

Update screenshots.

Change-Id: I562c482fd7dd498d87f4c0f3f92c1c395ae12d39
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-19 09:57:40 +00:00
Christian Stenger
45a5f47e01 QmlJSTools: Test: Fix used qml file
Former welcomescreen.qml is gone. Use another qml file to perform
the test.

Change-Id: Ibb6a143eab96202e152c799dc394a305f9db405d
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-04-19 09:52:12 +00:00
Leena Miettinen
078b8bbf4d Doc: Text files wizard has been renamed "Empty files"
Change-Id: I1b6b0a56ec5bc39771dc537dd2577999985b524c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-19 09:26:28 +00:00
Leena Miettinen
a4588ae63a Doc: Fix changed Qt Quick UI Prototype wizard name
Change-Id: I86f3991536d9daab38a45a7502176df1dfce6715
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-04-19 09:25:18 +00:00
Leena Miettinen
43c25f8dd7 Doc: Remove info about Qt Quick Extension Plugin wizard
The wizard has been removed from Qt Creator.

Change-Id: I5f5b4e89a5bd11d766292e7fc7766ed160d7bc67
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-04-19 09:25:06 +00:00
Eike Ziller
5a6390c544 Version bump for RC
Change-Id: I75dde3f981e3b7d72c181a5f0b582c7261d38e32
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-19 08:56:54 +00:00
Montel Laurent
d29396b164 Use qEnvironmentVariableIsEmpty or qEnvironmentVariableIsSet directly
Change-Id: I4f2e61e4bade9e7b4518d144db8163e596ab6264
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-04-19 08:00:14 +00:00
Orgad Shaneh
2f8c2d8864 C++: Use Utils::transform() in BackwardsScanner
Change-Id: Iec2c2db7afd8e5fe463a32c6b5167592cdd7617c
Reviewed-by: Laurent Montel <laurent.montel@kdab.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-04-19 07:45:53 +00:00
David Schulz
01b2ed7904 Auto Tests: Fix extensionsystem tests
Change-Id: Iaed08ddf5f4f93cae395bfdec1e8bff87fd8e618
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-19 06:39:37 +00:00
hjk
283bce7343 Debugger: Add a qfloat16 dumper
Change-Id: Ibc43da06c195d916296f09740a1111a2586443b8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-04-19 06:01:18 +00:00
Jake Petroules
b377130509 Specify absolute path to macdeployqt
This script receives the QT_INSTALL_BINS directory as an input argument,
so make use of it so that the caller does not need to have that path in
the PATH in order to find macdeployqt.

Change-Id: I5e5197104119a19ecda83c3bbc256f3fe492c0a6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-04-19 01:44:38 +00:00