Commit Graph

32683 Commits

Author SHA1 Message Date
hjk
ad7e12447c Debugger: Add 64 bit int extraction for LLDB
Fixes QDateTime dumper

Change-Id: I1c408e30ee0cdc22610e3037f94de5f7d246accf
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-23 12:31:47 +02:00
hjk
d13a8c1ada Debugger: Add dumper for QByteArrayData
Change-Id: Ia13be75a6466b710ddfe66665b124b1e2335a72c
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-23 12:31:23 +02:00
Daniel Teske
7bf1c64df9 Generic Project: Use relative paths for importing
Task-number: QTCREATORBUG-10387
Change-Id: I75746491dc7dee358748aa89829ba2d6f12c0e1b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-23 12:17:06 +02:00
Daniel Teske
15c8bdeba6 QtVersionManger: Save one save()
We are saving anyway in extensionsInitialized()

Task-number: QTCREATORBUG-10455
Change-Id: I6cdc0f11a3f0f9db5061ef1c00646de4c3251d05
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-23 12:16:50 +02:00
Daniel Teske
26b989b0ce GenericProject: Simnplfy code handling includes
Change-Id: I42ee45920907d3d55a3adf77901b37fbf45bb70b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-23 12:15:51 +02:00
Daniel Teske
f18eb67276 Generic Project: Change order of includes
Task-number: QTCREATORBUG-10198

Change-Id: Iff86f5ea19a4e4730b1bb1d21381d689369efea1
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-23 12:15:38 +02:00
Thomas Hartmann
957f09a2f0 QmlDesigner.PropertyEditor: adjusting Section
Removing the light border so it blends better with the rest.

Change-Id: I7fe5647b46fc20b960ae66fef5ade1ce7e4a2311
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 11:25:58 +02:00
Thomas Hartmann
e0ecb9c797 QmlDesigner.PropertyEditor: adjusting RoundedPanel
Getting rid of the ugly shading

Change-Id: Ib2fa68028533ad6af7cbbc29c07ab43a5b5b4f69
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 11:25:50 +02:00
Thomas Hartmann
be8cee36bb QmlDesigner.PropertyEditor: fixing the layout for StandardTextSection
Change-Id: Iea1a30b8718ccaafec3388aa793119443b1fe38c
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 11:25:40 +02:00
Thomas Hartmann
bfb1f31c47 QmlDesigner.PropertyEditor: adjustment to the CustomSpinBoxStyle
Moving the controls slighlt to the right.

Change-Id: I09a3599d88830367abd9caa6c1b62504c573b813
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 11:25:32 +02:00
Nikolai Kosjar
c06004b4ab CppEditor: Extract VirtualFunctionProposalItem into separate files
...for tests.

Change-Id: Idc408e30ee0cdc22610e3037f94de5f7d246accf
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-10-23 10:47:11 +02:00
Nikolai Kosjar
1a5c7d8ef5 C++: Safe accessing of elements of TranslationUnit::_tokens
Until now std::vector::at() was used to access the elements. This is
handy for debugging since an exception is thrown for invalid indices,
but it does not stop Qt Creator from crashing because exceptions are not
caught.

This is especially a problem for the parser, which has to look ahead via
LA(n), which accesses TranslationUnit::_tokens.

With this patch, explicit bounds checking is done before accessing the
elements and thus calls to

  std::vector::at() // bounds checking, throwing out_of_range

were replaced by calls to

  std::vector::operator[]() // no bounds checking, not throwing out_of_range

Measuring the parse time for the Qt Creator project shows that there is
no slowdown. In both cases, with and without the patch, about 15s are
needed on the authors machine.

Task-number: QTCREATORBUG-10453

Change-Id: I32b12a526ff7199bcadfc21a3deb5354063a3e3b
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-10-23 10:46:14 +02:00
Thomas Hartmann
2448cab1c4 QmlDesigner.PropertyEditor: fully qualify property
Change-Id: I2a2a6f1908fa96bdaca4e3128bf9bfe54ab67d53
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:21:42 +02:00
Thomas Hartmann
067c789c09 QmlDesigner.PropertyEditor: adjusting combobox sizes
Using Layout.fillWidth: true.

Task-Number: QTCREATORBUG-10413
Change-Id: Ia2771fa6e8a4cbb3acc3c2893fccbcb23fa78f6f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:21:01 +02:00
Thomas Hartmann
62b0f4372b QmlDesigner.PropertyEditor: adding functionality to SpinBox
* Adding blue highlight for modified values

Change-Id: I8d68dc2e23a7c1c3d2055a5be13d7f57e94860ed
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:17:04 +02:00
Thomas Hartmann
d510167e4a QmlDesigner.PropertyEditor: adding functionality to LineEdit
* Adding the ExtendedFunctionButton
* Adding blue highlight for modified values

Change-Id: I44f7d3bfbf58f0fe60321b5c696d3e3ba9c6578f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:16:55 +02:00
Thomas Hartmann
4a8a33179a QmlDesigner.PropertyEditor: adding functionality to ComboBox
* Adding the ExtendedFunctionButton
* Adding blue highlight for modified values

Change-Id: I2035ebba61b27ec5c75f02abc3a435709cc69f43
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:16:46 +02:00
Thomas Hartmann
d60f87d925 QmlDesigner.PropertyEditor: adding color constants
Change-Id: Iced7b432da397485015a4ea4a3e742f0ab475b6a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 10:16:37 +02:00
David Schulz
d597d79515 CdbExt: version bump
Change-Id: I3912bb9da93acd4474a15a6f6a8736e547e84ea1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-10-23 09:55:22 +02:00
David Schulz
03dbb665b7 Fix build on windows in debuggerkitinformation.
Change-Id: I45137f08147d073f8c111c94a6303a90085183ef
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-10-23 09:39:13 +02:00
Friedemann Kleint
719c87e599 Remove setting of Qt::AA_DontCreateNativeWidgetSiblings .
Change qtbase 72a7882cec07a9ad187c9e1772fb08f59a4b9519
avoids unnecessary creation of native siblings in Qt 5.

Task-number: QTBUG-34138
Change-Id: Ie6b847f57a40d56028c771628f31acb182179066
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
2013-10-23 08:10:19 +02:00
Fawzi Mohamed
eed81ea871 qmljs: simple tracking of used modules
Change-Id: Idc977a8c5a6c6caa3749599cb6f4a236046f53d7
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
2013-10-23 00:35:52 +02:00
Fawzi Mohamed
0a4310d314 qmljs: added qmljsconstants.h
Moved Document::Language, Import::Type and StaticAnalysis::Severity
enums to qmljsconstants.h and renamed values removing the redundant
part.
Thus the effective length changed little or improved
(Document::QmlLanguage => Language::Qml).

The separate file allows better reuse of enum values without introducing
circular dependencies.

Change-Id: I5186d7c04f5d3f6c289068b919be5ff1ff118326
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
2013-10-23 00:35:16 +02:00
Petar Perisin
ab71755326 Git: Fix popup message for merge
Change-Id: Ie3ef79343b84d615255b70b786347c57511c3309
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-22 20:42:50 +02:00
El Mehdi Fekari
36e6a70505 Debugger: Fix the way to register/add new debuggers
DebuggerItemManager::registerDebugger() should return the id
of the added debugger in order to use it when setting a kit's debugger
(addDebugger() creates and adds a copy of the passed
debugger object with a unique id).

The DebuggerKitInformation::setDebugger() method should set only already
existing and registered debuggers.

Task-number: QTCREATORBUG-10436

Change-Id: Icdcd1ed92aafe9eda44abf831aa9983dd6801980
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-10-22 20:14:14 +02:00
hjk
9f66b6384a Debugger: Fix QVariant{Map,Hash} dumper with Qt 5
Change-Id: I5be3b960a7a3091dc77555883d93e3d89b17381d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:14:33 +02:00
hjk
4c35310cec Debugger: Adjust QDateTime dumper after Qt 5.2 changes
Task-number: QTCREATORBUG-10232
Change-Id: I10551a258edb9456c4a9f93a3bfb374a8f07fc7d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:12:31 +02:00
hjk
a6c060cc65 Debugger: Try to extract Qt version from QtCore
This won't work without inferior calls (e.g. when loading core files),
so the old code is needed as fallback.

Change-Id: I1c9efc06374b00bc391bf55528546ccefc60349b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:12:22 +02:00
hjk
6851f019e4 Debugger: Some autotest cosmetics
Change-Id: Ib174e84f97511b28cd7649c219a62fe606186bf2
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:11:30 +02:00
hjk
4497d136ce Debugger: Leave GDB default setting for 'set overload resolution'
... and work around the pecularities on the dumper side instead.

Change-Id: I0c2703aae13dabc0f3f45efb46bd556c8741a15f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:11:02 +02:00
hjk
363c9c87b2 Debugger: Work around strange GDB behavior with overload resolution
Contrary to the documention, using the default (i.e. 'on') it seems to _require_
xplicit casting of function pointers:
 (gdb) p &Myns::QMetaType::typeName
    -> $1 = (const char *(*)(int)) 0xb7cf73b0 <Myns::QMetaType::typeName(int)>
 (gdb) p Myns::QMetaType::typeName(1024)
     -> 31^error,msg="Couldn't find method Myns::QMetaType::typeName"
But we can work around on the dumper side. So let's use the default from now on.

Change-Id: I3e2a87df797c6abab6183b4c121b843e5035cd47
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:10:47 +02:00
Tobias Hunger
eb944974ac Debugger: Have 64bit debuggers handle 32bit targets, too
Prefer 32bit debuggers if possible though. In the setup Robert
used there is only a 64bit CDB and thus the debugger of his
64bit Qt was unset.

Add unit tests to make sure changes will not effect currently
working setups.

Task-number: QTCREATORBUG-10463
Change-Id: I4afae314bc75d4465dbc8de5b2a4267a521a4ea1
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-10-22 19:03:47 +02:00
Daniel Teske
04ea1898b5 Android: Search for a suitable emulator before starting a new avd
Note, that we don't know the names of the started avds, so we look
for a avd that has the same abi and apiLevel.

Task-number: QTCREATORBUG-10411
Change-Id: I5f6ff3ee0dddcf2bb8fca981ccedf437e32da677
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-10-22 17:48:38 +02:00
hjk
3e789de36d Debugger: Fix Qt 5 QHostAddress autotest
Dumper was working, but the default constructor doesn't do
the parsing already nowadays.

Change-Id: I098b0a03ad7d994b5746f3a4a6c39d29133509b0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 17:18:18 +02:00
hjk
e643f3bf74 Debugger: Avoid Gui dependency of dumper autotest
Change-Id: Ie51554216ad7b132839c2779c2f647ad6222db5f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-10-22 17:13:16 +02:00
Thomas Hartmann
cde0a8828d QmlDesigner.PropertyEditor: fix combobox for anchor targets
Change-Id: Ib66e19ad2d70cb8c5fd295288a625af06104d40e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-22 17:05:12 +02:00
Thomas Hartmann
92baa15ed0 QmlDesigner.PropertyEditor: fixing combo box for font
Change-Id: If1a72549568bfddac3e02151ff9a13be4b578e40
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-22 17:02:16 +02:00
Thomas Hartmann
4c42a8ee95 QmlDesigner.PropertyEditor: fix for CheckBox
Change-Id: I8ca2642b50c8f1b529db77ffb4e91f34a0a3b2bf
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-22 17:02:06 +02:00
Thomas Hartmann
50c9661ca3 QmlDesigner.PropertyEditor: fix for ComboBox
Change-Id: I766cdf7831509fa7d4e6c6b98f304b814f2f4e76
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-22 17:01:58 +02:00
Thomas Hartmann
2f64fecd45 QmlDesigner.PropertyEditor: fix warnings about missing NOTIFIER
Change-Id: I7386bead0b1f8d4c577c318dae5873491885901b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-22 17:01:47 +02:00
Christian Stenger
328daa9c5a Qnx: Fix compile with Qt4
Change-Id: Ida16ba9b16cb7c2cd590d8f82e4359b44a9c68d2
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 17:00:14 +02:00
Daniel Teske
ac627bb770 CMake: Don't expect the version in --help output
Since we don't actually need it anymore, just remove the code.

Task-number: QTCREATORBUG-10452
Change-Id: I59f55f3a319240826569de308491cac697c4f045
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-10-22 16:40:07 +02:00
Friedemann Kleint
3716791d0b Library wizard: Don't use base class unless it is a plugin.
Task-number: QTCREATORBUG-10444
Change-Id: Iae6559e27573dcdfdde70292f637eb820bf99c93
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
2013-10-22 16:31:33 +02:00
hjk
5e9f67bf48 Debugger: Make namedemangler test run without X
Change-Id: Ia04d6b7999eaa2de6471031100fa4143549185d7
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 16:12:00 +02:00
Nikolai Kosjar
e79d4ed2e1 CppEditor: Follow Symbol Under Cursor opens the preprocessor dialog
... when invoked on a macro that is defined inside that dialog.

Change-Id: I419c6675d70cfb8dd174f6a33f502b4c584baa3a
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-10-22 15:58:54 +02:00
David Schulz
f5fa022de5 CppEditor: Adjust Title in preprocessor dialog.
Now its more consistent with the other text in this dialog.

Change-Id: I424428a6fb892a2f0be2a3c6b11ae652ea39c679
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
v3.0.0-beta
2013-10-22 14:52:02 +02:00
Leena Miettinen
f1750ba4f7 Doc: new filters in the Issues output pane
The Debug Information, Debugger Runtime, and Deployment
filters were added.

Change-Id: Ifc22e1dfb1d1a9b0b72e371bfa7963c646d3ff2f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 14:02:47 +02:00
Leena Miettinen
668849cad6 Doc: replace Qt GUI Application with Qt Widgets Application
Qt GUI application could also be a Qt Quick application.
Update screenshots.

Task-number: QTCREATORBUG-10263

Change-Id: I8c0dd34e1222c3b42fddaf3f562e402490ce1037
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-10-22 13:50:50 +02:00
Leena Miettinen
964d42850d Doc: the Welcome screen was updated
Task-number: QTCREATORBUG-10446

Change-Id: I1bfda7119ebd541d4dbfa1b7a65c3155221b3c6d
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-10-22 13:41:40 +02:00
Tobias Hunger
ceba333683 RunSettings: Do not needlessly recreate RunConfiguartionConfigWidgets
Change-Id: I0b8afe05b12123117959eec6f7465ebd4950e197
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-10-22 13:28:14 +02:00