Commit Graph

47528 Commits

Author SHA1 Message Date
Eike Ziller
967b51d416 deployqtHelper: Assign names to command line arguments
Change-Id: I3870ce09c399743f30fa81ae3df51f65d47697b4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-08 08:51:24 +00:00
Christian Stenger
f3cb2ee761 AutoTest: Provide DebuggableTestConfiguration
Preparation for easier distinguishing arguments for performing
normal run versus debug run.

Change-Id: I41cfa7fca5730f721b5b6a980c82c015f9e7f914
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-08 05:58:25 +00:00
hjk
7efa4e8c9d Debugger: Add a comment to dumper README
... on the minimally needed interface for additional backends to
be used with the dumper infrastructure.

Change-Id: I4afb5b5bb16a0499311e70499a6d58e374fce3b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-07 13:46:46 +00:00
Nikolai Kosjar
985e4436f2 Clang: Rename TranslationUnitCore to TranslationUnit
Change-Id: I03a59ae5d5073c812ad40c7623cfb1fdb80aad80
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-07 13:36:43 +00:00
Nikolai Kosjar
14b27183ce Clang: Rename TranslationUnit(s) to Document(s)
The "TranslationUnit parts" moved already to TranslationUnitCore.

Change-Id: I2bea7847e2b3e84fbfacc3d2dc43f180873349ac
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-07 12:36:19 +00:00
Ulf Hermann
6a2e11940f QmlProfiler: Start connection timer before connection
The QmlDebugConnection might immediately signal a connection failure
on connectToHost() or startLocalServer(). If the timer is not running
then, we trigger the QTC_ASSERT in qmlDebugConnectionFailed(), which is
meant to make sure that we don't silently give up. In this case, we
haven't even given up, yet, as the timer is in fact started afterwards.

Change-Id: Ia2c107d9b511092eaf32380203a3b4628139d320
Reviewed-by: hjk <hjk@qt.io>
2016-09-07 08:26:39 +00:00
Orgad Shaneh
34baa3ec47 CppEditor: Add enclosing template on "Move Definition Outside"
The template id for the class name is missing, but it's better than
nothing.

For example:

template<class T>
class Foo
{
    void func() {} // Move Definition Outside Class
};

// The following lines are added
template<class T>
void Foo::func() {} // Should be Foo<T>::func

Task-number: QTCREATORBUG-16649
Change-Id: Icb560e0b87f563cbda18f4742f44bb8ef4d8a900
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-09-06 13:23:18 +00:00
Orgad Shaneh
d0d1f43e8f CppEditor: Add enclosing template on "Add Definition"
The template id for the class name is missing, but it's better than
nothing.

For example:

template<class T>
class Foo
{
  void func(); // Add Definition
};

// The following lines are added
template<class T>
void Foo::func() // Should be Foo<T>::func
{
}

Change-Id: I60a0cbd348985def3dfb7037067786e942278593
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-09-06 13:23:12 +00:00
Orgad Shaneh
39aff55d8a C++: Enable showEnclosingTemplate also for function type
Do not require directly passing the enclosing template.

Change-Id: Ie03bc58338fe003677a5f5311d86d70f499373ee
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-09-06 09:33:48 +00:00
David Schulz
50a6c47830 Use icons and default tool tips in text mark popup
Change-Id: I4487d642e066479e8e344ed77e539de92fbca651
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-09-06 09:12:36 +00:00
Eike Ziller
0e542a6a29 Fix build
Change-Id: Ie23ae9e462dff66206759bacda13876dce8264a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-06 08:18:11 +00:00
Christian Stenger
01f222bfdc ExtensionSystem: Fix compile on OSX
Using Qt5.6 and Xcode 5 or Xcode 6 results in compile
issues.

Change-Id: I33af400f51991e043672712b531869c6a79d6ffd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-06 06:06:44 +00:00
Marco Bubke
eac89b9a5f Clang: Remove unused library
Change-Id: Ia5031feee2be57bf5a0ac9d3f21e6010e5136afa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 15:01:16 +00:00
Thomas Hartmann
94fdf981bc QmlDesigner: Support for Qt Quick 2.8
Change-Id: I40c085538872df30224219d2b693d6868242fad1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 14:42:12 +00:00
Thomas Hartmann
76263a71fa QmlDesigner: Move expression editor to component
Change-Id: If569e3f22e2eee34b9033b3e139da597686498aa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 14:41:53 +00:00
Thomas Hartmann
1a8e5f5387 QmlDesigner: Implementing code completion for expression editor
Change-Id: If569e3f22e2eee34b9033b2e139da597686497ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 14:41:47 +00:00
Tim Jenssen
cf6c4c71a4 Sessions: call method at the model
Change-Id: Id10f0910e2408a579f6bb92719c93967afcc9bd9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-05 13:06:13 +00:00
Eike Ziller
f38531effb Add a menu entry for copying system information
Which outputs the information from qtdiag, installed plugins,
and general Qt Creator build information.

Task-number: QTCREATORBUG-16135
Change-Id: I618b9883369bae45006bb109f8757e89b091b882
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-05 13:00:54 +00:00
Thomas Hartmann
9a0a2a7d27 QmlDesigner: Some improve expression editor
* Double clickling outside of the editor does close the editor.
* Forcing active focus on TextField

Change-Id: If556eff22e2ee934b9043b2e139da597686497ff
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 12:55:45 +00:00
Thomas Hartmann
ca63002093 QmlDesigner: Expose auto completion to property editor
Change-Id: If569e3f22e2ee934b9043b2e139da597686497ff
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 12:53:04 +00:00
Thomas Hartmann
b12338b06d QmlDesigner: Add interface for code completion to QmlDesigner
Change-Id: If569e3f22e2ee934b9043b2e139da597686497aa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 12:52:54 +00:00
Christian Stenger
053f5bf3d3 AutoTest: Show results for debugging tests as well
At least display results for using gdb or lldb and inform
user that we are not able to do so when using cdb.

Task-number: QTCREATORBUG-16693
Change-Id: I1a98a79aaf76de47b5dcb58d4dca9247f1642d36
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-05 12:40:59 +00:00
Thomas Hartmann
e0e314427d QmlJSEditor: Expose helper function for auto completion
The function qmlJSAutoComplete() will be used by the QmlDesigner.

Change-Id: If569e3f22e2dd934b9043b2e139da597686496ae
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2016-09-05 12:21:45 +00:00
Marco Bubke
2e062552eb Clang: Report an error if the unit test are linked with LLVM without RTTI
We don't want to disable RTTI in unittest so we require to compile them
with RTTI. You can disable yourself RTTI if you don't want them for some
reasons.

Change-Id: I76d05a36442305f379ce3d88b3f6ed4372127002
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-09-05 10:01:14 +00:00
Christian Kandeler
e41eff5567 Fix qbs build on macOS
The linker does not understand the -fobjc-link-runtime option. Use the
cpp.driverFlags property as a workaround. Technically, it should use a
property that is only applicable when the toolchain driver acts as the
linker, but we don't have it (yet).

Change-Id: I0707e08726f54a329feb440f2d8a984c12de9f4f
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-05 09:17:16 +00:00
Eike Ziller
02f8572f8a SessionModel: Fix compilation issue with no-so-recent Clang
Which seems to have issue to construct a std::function<void(T)> from a
function pointer to a function that does not return void.

Change-Id: I10d79f328acb922dac298ec598eecff1d3b9f522
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-05 08:12:44 +00:00
Marco Benelli
11dea636a0 QmlJs code model test cases
Change-Id: If9ee9a946fc973a6dcc47625f5b26ca0a203be42
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-09-05 07:13:36 +00:00
Robert Loehning
b03c92a6ff AutoTest: Remove stray white space
Change-Id: Ic50dfc5549974641df08666152ed1a3b70d9b580
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-05 05:32:50 +00:00
Konstantin Shtepa
590971e898 Dark theme: fix selection color in help mode
Change selectedBackground color to color from flat-dark theme. Now
selected text in help mode is visible.

Task-number: QTCREATORBUG-16375
Change-Id: Ifed68617784f1303bc168e783e4a73bb9da55c8c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-03 20:50:07 +00:00
David Schulz
830a7c51dc Editor: Remove senseless assert
As this slot is triggered by a queued connection the document
can change between emitting the signal and the assert.

Task-number: QTCREATORBUG-16221
Change-Id: I29cb6cd8546e38863318393e2cc39fa791cf20d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-02 10:46:25 +00:00
Tim Jenssen
a53607a427 Sessions: prepare SessionModel for reuse
refactoring redundant code without a behavior change

Change-Id: I264ee28ebf9b2d01899ece3f01c424032bda56ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-01 14:47:42 +00:00
Tim Jenssen
dea29d5ed4 MSVC: don't set c++11 at all MSVC versions
This resulted in wrong cxx flags for the clangbackend, which couldn't
compile algorithm include file for example then.

Change-Id: Ida7bebf2435e1bc031b62204d169cf008a189f25
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-09-01 12:18:21 +00:00
Eike Ziller
1fe874e65e Todo: Avoid issues with screwing up or screwed settings
If for some reason the todo settings are borked, do not crash/assert.
Also, avoid overwriting existing settings with default settings, if
for some reason the todo plugin is never initialized (because a
dependency fails to load).

Change-Id: Id7815b799adaff3dcdf00fedb9ade3ced01e23b9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-09-01 11:25:47 +00:00
Andre Hartmann
a249f89020 Locator: Support moving to the first or last proposal
For macOS with keys Home and End, for the others with
Ctrl+Home and Ctrl+End.

Change-Id: I73cde89b57bc3cce89c6638d2692bcafbd4710af
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-01 11:11:51 +00:00
Eike Ziller
52fc5904e0 Fix that welcome mode was no longer shown at startup
Even though the tab was selected. Broke with
e440e344ca and
abcdadd40e .
We need to update the current index when tabs/modes are inserted before
it.

Change-Id: I26b5252d365c0108584534bcb0ee1aacc3eacce3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-09-01 10:16:37 +00:00
Alessandro Portale
4c197a6cca Cdb: qdoc data "\class" -> "\struct"
Change-Id: I8f8599704c71413055257fd5a54bd6efb17bc61c
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-01 07:58:44 +00:00
Nikolai Kosjar
435d631266 Clang: Fixes for unittest.pro
Change-Id: I356ccdec0eaa403e5ec7364fb54de39f24695b4b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-08-31 13:43:05 +00:00
Eike Ziller
e0281fcc84 Fix merge issue
Change-Id: I328720587d8a973fabcbd9c66a70185ba29cbbca
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-08-31 13:18:40 +00:00
Eike Ziller
c56aa52b80 Merge remote-tracking branch 'origin/4.1'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator.pri
	src/plugins/qmakeprojectmanager/makestep.cpp
	src/shared/qbs

Change-Id: If1787ed23afa786ed2cef57f53c1db642559cbe0
2016-08-31 14:40:38 +02:00
David Schulz
a4bf137a9f Cdb: Make extension parameters accessible again
Change-Id: I0796f7ac3cbb5c7af77b2db51bd75c9671b1a770
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-31 10:17:15 +00:00
Tim Jenssen
d4fe89a9dd Clang: test if the ipcClientProxy is set before sending an alive message
A crash can be happen if the back end is slow like a debug build on
windows.

Change-Id: I7352ef2732d29ac60bb0c6d9906c10b7ebefa262
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-08-31 10:07:51 +00:00
Tim Jenssen
3f8c622caa Sessions: comment the Connections state
Change-Id: I2b865c9679899e10b8cdc032f111bc0ba5149f4c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:06:21 +00:00
Tim Jenssen
fd556c85d0 Sessions: refactor SessionModel::data
no behavior change

Change-Id: Ib41af6b6b193dc88c02cdef44e8e46aac70d7dcd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:03:35 +00:00
Tim Jenssen
9121299138 Sessions: move sessionmodel to an extra file
Change-Id: I96084e925ce6a47533f9c87a988ceb0834fe4037
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:00:58 +00:00
Nikolai Kosjar
83ea1f4deb CppTools: Add UI for file size limit of indexer
Task-number: QTCREATORBUG-16712
Change-Id: I92db8cbcac9669cbd5e4ee5f7ef6f613797c753a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-08-31 07:47:27 +00:00
David Schulz
6c00095181 Cdb: Modernize cdb extension
Change-Id: I18b0c60108ffda6cd46db637c9de93eded7f8469
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-31 06:38:30 +00:00
David Schulz
89ff2c1db5 Editor: Collect indentation for a list of text blocks
Allows the indenter to reuse code formatter structures.

Task-number: QTCREATORBUG-16420
Change-Id: Ie906d7fdcb50798da02ef5b750fb03ae752aadc1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-08-31 05:33:56 +00:00
Christian Stenger
ca3bcd811e Debugger: Provide way to process debuggee output further
Output coming from the debuggee was limited to be printed inside
the DebuggerLog and the Application Output pane, but the output
might be useful to process differently or even additionally to
the default logging.
Provide functionality to be able to add an output processor.

Change-Id: I715b90b28c64d3cf95bcc2a047a5aba1a56d1058
Reviewed-by: hjk <hjk@qt.io>
2016-08-31 04:39:16 +00:00
Christian Kandeler
b97bc4016f qbs build: Fix more warnings on Windows
Change-Id: I2104d2889cff0fd6a2473e1e141936bb781041a9
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-08-30 13:57:15 +00:00
hjk
9ae90a102b Debugger: Do not use remote working dir for local processes
Task-number: QTCREATORBUG-16211
Change-Id: I55866bfb64bffb601afcafceb45934ac50b1c686
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-30 10:48:17 +00:00