Commit Graph

21107 Commits

Author SHA1 Message Date
Daniel Molkentin
c86e81c362 Fix context help for examples
- createRightPaneContextViewer() needs to be called up-front. In the old
order, it would fail the first time.

- Queue opening of help, because we need the editor window to be drawn
  before it can be assessed wether to show the help in split mode

Change-Id: Ib2054285efb07ccbfaf3faf089085c16ba432be8
Reviewed-on: http://codereview.qt.nokia.com/22
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-19 17:44:19 +02:00
Christian Kandeler
ced48beb6f Maemo: Fix device configuration dialog for all OS types.
There could potentially be types other than GenericLinux that
don't use dpkg or rpm.

Change-Id: I62a03aa1f532a4f589be8e43e07410beb1370cb2
Reviewed-on: http://codereview.qt.nokia.com/26
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-05-19 17:39:32 +02:00
Leandro Melo
d4e5b81e43 Revert "C++ editor: Fix potential crash in completion"
This reverts commit a395022a84.

There are some undesired side effects...

Change-Id: I001ed375911a4ffda5bd25c804ce06f99be40e3c
Reviewed-on: http://codereview.qt.nokia.com/25
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-05-19 16:54:23 +02:00
Christian Kandeler
f7a4fceb3c Maemo: Fix package file watching.
Had been broken by 45c9cf7a12 ff.
This change uses the FileManager and thereby also improves interaction
with external editors that change the inode (e.g. emacs).

Change-Id: I6d889d435931eb0199de93610bea643e50e9f025
Reviewed-on: http://codereview.qt.nokia.com/24
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-19 16:39:55 +02:00
Leandro Melo
a395022a84 C++ editor: Fix potential crash in completion
Task-number: QTCREATORBUG-4940
Change-Id: If55c2ddc7949cbd31029eef8317b4d0a015f272e
Reviewed-on: http://codereview.qt.nokia.com/17
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-05-19 16:22:41 +02:00
Tobias Hunger
033cf46e51 MSVC: Fix parser
* Fix parser to handle error message send in by a user
 * Add unit test

Change-Id: I3b37ada49ef3737261211ac41ae80504b2a767fa
Reviewed-on: http://codereview.qt.nokia.com/23
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-05-19 16:19:27 +02:00
Daniel Molkentin
15ac4f0e21 Don't open files and help if someone chooses to cancel loading an example.
Task-Number: QTCREATORBUG-4414
Change-Id: I0272091d185fe6a9ac23022eb4efb723eb541494
Reviewed-on: http://codereview.qt.nokia.com/21
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2011-05-19 16:13:24 +02:00
Fawzi Mohamed
e54a959ef1 Editor: fix to always call forceReadOnly before activation
Move the call to force readOnly to before the activation for the editors
that had it after their activation call.
Not having signals, currently dynamic changes of the editor read only
state are not really supported, and on windows some actions remained
activated.

Task-number: QTCREATORBUG-4774
Change-Id: I09a84c6e558ddf61aeedb928f8688f6ed65e89c0
Reviewed-on: http://codereview.qt.nokia.com/20
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-19 15:53:16 +02:00
dt_
0262795c93 Fix importing builds
Change-Id: Idbd01ad4cd44e4e1ac168ae112bbe9f9d69eb583
Task-Nr: QTCREATORBUG-4935
Reviewed-on: http://codereview.qt.nokia.com/18
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-19 15:26:00 +02:00
dt_
c960be456d Make SettingsDialog robust against multiple accept()/rejects()
That can happen if the user clicks very fast due to the multiple
levels of event loops.

Task-Nr: QTCREATORBUG-4818

Change-Id: I9c00dbf957a587c6e5839afebdd71e84b8c4a3c8
Reviewed-on: http://codereview.qt.nokia.com/16
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-19 14:43:51 +02:00
Christian Kandeler
9f7fdc5551 Maemo: Make more forward-compatible.
Change-Id: I864cf2a82af538a7b8e41b8117546cb7710481c7
Reviewed-on: http://codereview.qt.nokia.com/10
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-19 14:14:03 +02:00
Christian Kandeler
782953513e Maemo: Don't unify packaging metadata between targets as rigorously.
This allows people to do external changes to their files without
Creator overwriting them.

Change-Id: I71fc7cf6dabb9a61762992b8c01f971f563e17ab
Reviewed-on: http://codereview.qt.nokia.com/12
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-19 14:13:01 +02:00
Fawzi Mohamed
ed0f9f678e Editor: fix disabling modifying actions for read-only editors
Now correctly disables all modifying actions and shortcuts of
texteditoractionhandler if the editor is readonly.

Task-number: QTCREATORBUG-4774
Change-Id: Ic212a2fe3b6dcc18e2fbc461d24bed031c67f6a2
Reviewed-on: http://codereview.qt.nokia.com/7
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-19 14:07:55 +02:00
hjk
9d72a6e7c8 analyzer: style
And test for *rr*.

Change-Id: I7905e5df8f981b683d9552fb7cc15f9b8f16624e
Reviewed-on: http://codereview.qt.nokia.com/15
Reviewed-by: hjk
2011-05-19 13:58:49 +02:00
Christian Kamm
c5ce20c5f7 C++ indenter: Treat extern "C" like namespace.
Change-Id: Ib0553d35fbd83aada2b8809aa008b1f75ca77c32
Done-with: Erik Verbruggen
Reviewed-on: http://codereview.qt.nokia.com/14
Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
2011-05-19 13:23:50 +02:00
Christian Kamm
86d5df063c C++ indenter: Fix extra specifier in return type of func decl.
Like
struct Foo bar() { }

Change-Id: I946937c23d1660909757952a5a3bd400c4781826
Reviewed-on: http://codereview.qt.nokia.com/13
Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
2011-05-19 13:14:07 +02:00
Friedemann Kleint
b0d093b0d7 Designer: Compilation with Qt 5.
Test the new Qt Designer integration interfaces.

Change-Id: I8364167d5be3e7c361b192318b0bba7fb70d0f2f
Reviewed-on: http://codereview.qt.nokia.com/9
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-05-19 11:48:55 +02:00
Tobias Hunger
0d3d38ecc1 CLang: Fix id
Change-Id: Icdac7eadd2f4323b884f6dd963a4716a93d00034
Reviewed-on: http://codereview.qt.nokia.com/8
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2011-05-19 11:29:16 +02:00
hjk
ca5c16a40a debugger: fix std::deque dumper
Task-number: QTCREATORBUG-4936
2011-05-19 10:37:53 +02:00
Tobias Hunger
b998cf8052 Clang: Really use monospaced font for position indicators
Change-Id: Ieabbe313ea5c508611355e23c41b174a2d253a4e
2011-05-19 10:06:04 +02:00
Friedemann Kleint
15ef6ad093 Designer: Use core settings instead of keeping QSettings instance. 2011-05-19 10:01:50 +02:00
Friedemann Kleint
5cfb194134 Fix exit crash in callgrind. 2011-05-19 09:59:13 +02:00
Thorbjørn Lindeijer
789cbfad6c Fixed crashes in Observer mode related to infinite bounding rects
Bug fixed by avoiding uniting or subtracting QPolygonF with potentially
infinite coordinates.

The LiveSelectionIndicator now uses a QGraphicsRectItem rather than a
QGraphicsPolygonItem and displays only the boundaries of selected
objects, not including their children.

The SubcomponentMaskLayerItem now works with rectangles and uses a
QRegion to determine the area around the current context, converting
this to a polygon only as a last step.

Reviewed-by: Kai Koehne
Task-number: QTCREATORBUG-4559
Change-Id: I266f5387fa67017fc50215282a95b4ee6498be6d
(cherry-picked from d03065da2999b8539d8c5160b58d56dd94373d6f in Qt 4.8)
2011-05-18 22:22:51 +02:00
hjk
77f8f94836 analyzer: simplify AnalyzerSubConfigFactory setup 2011-05-18 20:14:16 +02:00
hjk
68504ab8a8 analyzer: style and simplification 2011-05-18 18:49:03 +02:00
hjk
a130b98509 utils/detailwidget: style & make stuff private 2011-05-18 18:49:03 +02:00
Tobias Hunger
15bb1b0c4d Parser: Make parser test engine more strict
* Fix unit tests to work with this stricter version

Change-Id: Iaf6d333e4b4df54ddc340d261ce28538bfa1f3cf
2011-05-18 18:40:16 +02:00
Tobias Hunger
58dac308b9 Clang: Add parser for clang output
Change-Id: Ic5bb4742e07009172d64acb53c07659c3f4d640a
2011-05-18 18:40:15 +02:00
hjk
df91b0bbfb analyzer: cleanup 2011-05-18 16:37:19 +02:00
hjk
64eba7e1dd analyzer: make the callgrind "functions" view a dockwidget again 2011-05-18 16:37:19 +02:00
Leandro Melo
0dc449944d c++ editor: Fix automatic completion for includes
Reviewed-by: Roberto Raggi
2011-05-18 16:33:39 +02:00
Kai Koehne
21cfa5c6cc cdbext: Fix msvc warnings
Change-Id: Ib1604c2e36d2a4dbfb7edccb5be0e4c401b026c5
Reviewed-by: Friedemann Kleint
2011-05-18 15:25:50 +02:00
Kai Koehne
f4c818a59e MSVC: Fix compile warnings from botan header files
Change-Id: I802579ab51fb0e65578444df9603cd7721231a66
Reviewed-by: Friedemann Kleint
2011-05-18 15:25:32 +02:00
Leandro Melo
ab40e9c78e C++ editor: Remove scanning/caching of includes
With the completion now in a separate thread this should
no longer be necessary.

Reviewed-by: Roberto Raggi
2011-05-18 12:35:53 +02:00
Christiaan Janssen
2d41159dab QmlLivePreview: avoid compiler warnings on gcc on mac
Reviewed-by: Roberto Raggi
2011-05-18 12:30:37 +02:00
Tobias Hunger
2a59ef8372 Maemo: Fix possible assert
Treat invalid Qt versions as not registered at all. This stops
creator from looking for a toolchain which is not there as the qmake
path is wrong.

Change-Id: I49a2a74a466d20c4cd1c8f4f72d8dbbbcefc9559
2011-05-18 12:26:47 +02:00
Kai Koehne
a7426ca709 QmlDebugging: Enable linking the library automatically for debug builds
Change-Id: I31c6ce649ec5a106ac8d5a556659a26f584b1d09
Reviewed-by: dt
2011-05-18 11:47:49 +02:00
Kai Koehne
6a55021285 QmlDebugging: Enable QML Debugger language for Qt Quick Applications
Enable the QML debugger by default for run configurations generated for
a Qt Quick Application based project.  This is done by checking the file
list for a 'qmlapplicationviewer/qmlapplicationviewer.pri'.

Change-Id: Ia19d2022808b068c2e525aa28e938b7f7125c35d
Reviewed-by: dt
2011-05-18 11:47:21 +02:00
Leandro Melo
bec4f02495 New code assist API
This is a re-work of our completion engine. Primary goals are:

- Allow the computation to run in a separate thread so the GUI is not locked.
- Support a model-based approach. QStrings are still needed (filtering, etc), but
internal structures are free to use more efficient representations.
- Unifiy all kinds of *assist* into a more reusable and extensible framework.
- Remove unnecessary dependencies on the text editor so we have more generic
and easily "plugable" components (still things to be resolved).
2011-05-18 10:46:20 +02:00
Christiaan Janssen
d835b769c7 QmlProfiler: removed fixed height 2011-05-17 18:04:25 +02:00
Erik Verbruggen
7cb66c544b Fixed invalid parsing of boolean expression "x < y && z > this".
Task-number: QTCREATORBUG-4362
Reviewed-by: Roberto Raggi
(cherry picked from commit b83932708c)
2011-05-17 17:38:02 +02:00
Erik Verbruggen
b83932708c Fixed invalid parsing of boolean expression "x < y && z > this".
Task-number: QTCREATORBUG-4362
Reviewed-by: Roberto Raggi
2011-05-17 17:05:52 +02:00
Leena Miettinen
fa89d009d9 Doc: fix link 2011-05-17 17:01:27 +02:00
Thomas Hartmann
cc59873225 QmlDesigner: fix warnings 2011-05-17 16:56:12 +02:00
hjk
355871a1d9 fakevim: parse <Esc> from script files 2011-05-17 16:50:27 +02:00
hjk
752066d043 debugger: show something when editing 2011-05-17 16:47:35 +02:00
dt
5810335f55 QtVersion: Add support code for the sdk 2011-05-17 16:32:56 +02:00
Friedemann Kleint
00ccfc4ea9 Resource Editor: Do not link to Qt Designer.
yRemove unused dependency.
2011-05-17 16:18:22 +02:00
Christian Kandeler
7c6e2fc00f Toolchains: Small refactoring for better extensibility.
Reviewed-by: Tobias Hunger
2011-05-17 16:02:46 +02:00
dt_
cab874a2b0 Make pastebin.com a link in the options page
Task-Nr: QTCREATORBUG-4925
2011-05-17 16:00:51 +02:00