Commit Graph

7508 Commits

Author SHA1 Message Date
Roberto Raggi
84d721078e Added some basic support for the attached Keys property. 2010-01-26 11:06:28 +01:00
Roberto Raggi
2512a684d5 Show the argument names from the method's signature. 2010-01-26 10:50:55 +01:00
con
3294fbf8bf Add missing image resource. 2010-01-26 10:47:51 +01:00
Friedemann Kleint
001602c2a4 Foldernavigationwidget: Use QFileSystemModel instead of QDirModel.
hoping for better performance. On this occasion, add context menu
containing "Open" and "Choose folder" enabling drive changes on
Windows. Purge remains of QDirModel elsewhere.
Task-number: QTCREATORBUG-62
2010-01-26 10:33:39 +01:00
Roberto Raggi
bf8c0b8a22 Complete signals, slots and generate slots of QML items. 2010-01-26 10:19:42 +01:00
Roberto Raggi
2a5506b1d0 Show auto generated slots (e.g. onClicked) only when performing a global completion. 2010-01-26 10:10:11 +01:00
Roberto Raggi
c65a028f74 Added the user components to the global completion and fixed completion for the `parent' property. 2010-01-26 09:54:02 +01:00
Marco Bubke
aec314b276 Mouse event positions are adjusted to the graphics view rect
Task-number: BAUHAUS-120
2010-01-25 17:16:20 +01:00
Roberto Raggi
0969f3b85f Resolve the `import' directives.
Yet another quick and dirty hack while waiting for the real binding pass.
2010-01-25 17:14:23 +01:00
Oswald Buddenhagen
45cc9df8a2 eliminate duplicates from qmake spec and feature paths
potentially reduces the number of file::exists() calls
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
567d7ed397 add minimal test program for profileevaluator 2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
b5fd00955f get rid of lots of qfileinfo and qfile calls
partly by removing unnecessary calls, partly by providing minimalistic
reimplementations.
this gives a quite incredible performance boost ...
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
18a515652a drastically cut down qregexp use
this gives a rather impressive speed boost.
if qmake wasn't trying to be so clever, we could get even more
out of this.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
bf10b04f7f don't guess .pro file names for SUBDIRS targets
qmake doesn't, either
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
3cdecdd9e1 integrate function argument splitting into expandVariableReferences()
that way we save the creation of a temporary stringlist
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
9b8a09b881 get rid of m_proitem
now that we know the size of the entire file, we can use a single fixed
buffer instead of growing one on-demand - in the case where we just read
the file, we can even re-use the file buffer itself.
this should improve performance for files with very many line
continuations, but the practical impact drowns in the noise.
anyway, the code is nicer, as we don't abuse qstring that obviously any
more.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
cac522b761 read file at once instead of line-wise
again several percent faster ...
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
cc635e2642 avoid QChar::unicode() calls in debug builds
in release mode they expand to nothing ... not so in debug mode.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
714e981c69 optimize expandVariableReferences()
- nest conditionals properly to avoid unnecessary tests
- avoid usage of QString::append(QChar) to save allocations
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
48d15b8a66 don't split value list right before expanding variables
the latter will do it anyway.
this eradicates the performance penalty from the previous commit at its
root.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
9c7d803aec don't pre-split RHS of variable assignments
creating tons of items is a tad allocation-intensive and thus slow.

this is probably slower for often-included files, as now the splitting
is done in every evaluation pass.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
61772da250 omit comments from the "AST"
now that the tree will not be written out any more, we can save some
cpu and memory by not recording the information.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
6c7b2d1c87 actually edit pro files instead of rewriting them from the "AST"
that way the file formatting is better preserved.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
93b6820e8c paths in .pri files are still relative to the .pro file's directory 2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
95a9b64c4a don't mess up report about failures when removing multiple files 2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
69028643b2 remove evaluation of pro file before changing it
just parsing it (once ...) ought to be sufficient. we don't need to
validate the syntax beyond that anyway.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
ea9c5efa15 save possible modifications to pro file *before* re-reading it ... 2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
cc709e963e purge unused "modified" flag from ProFile 2010-01-25 16:53:55 +01:00
Oswald Buddenhagen
aaf296ca21 remove forgotten proxmlreader test 2010-01-25 16:53:55 +01:00
Roberto Raggi
c9b80ae370 Activate the function-like completion only when the character at the left of the text cursor is a `('. 2010-01-25 16:52:10 +01:00
Roberto Raggi
6c9dd09587 Added support for QFont based properties. 2010-01-25 16:43:23 +01:00
Marco Bubke
a1d6786d7c Show the selection indicator for resizing 2010-01-25 16:17:03 +01:00
Roberto Raggi
4d0502f414 Just a temporary hack to get completion for user-defined components. It should go away as soon as we have a decent binding pass. 2010-01-25 15:50:21 +01:00
Roberto Raggi
327893d7fd Call the base implementation of ObjectValue::process() 2010-01-25 15:50:21 +01:00
Marco Bubke
666b454295 Add "Select All" menu item to the design mode 2010-01-25 15:29:45 +01:00
Friedemann Kleint
b4c6ecee58 ProjectExplorer include file cleaning spree. 2010-01-25 15:10:12 +01:00
Roberto Raggi
cca9910287 Added support for properties of type point, rect, and borders. 2010-01-25 15:06:23 +01:00
Kai Koehne
b37dededbc Fix duplicated copyright notice 2010-01-25 15:01:40 +01:00
Roberto Raggi
a8f0971a0b Show the auto-created slots in the completion box (e.g. MouseRegion's onClicked). 2010-01-25 14:48:44 +01:00
Thorbjørn Lindeijer
ab3d3cf413 Don't draw the right margin border on top of the text
Better to draw it explicitly under the text, together with the
associated background color.
2010-01-25 14:25:00 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Thorbjørn Lindeijer
0ddfcdff43 Fixed performance issue with scrolling when using X11 graphics system
Depending on the XRender driver (probably), drawing a short straight
line can take quite a while when this line is transparent. On my
laptop's onboard ATI card, this meant that scrolling was unusably slow
when this transparent line was being drawn.

Fixed by avoiding the issue, since there is no actual need to use
transparency here. We can calculate the resulting color in advance
instead.
2010-01-25 13:59:01 +01:00
Marco Bubke
fbdd4fbf49 Disable the write locker in the model attach and detach functions
And activate them in all other write functions.
2010-01-25 12:58:02 +01:00
Thiago Macieira
8dca852b35 Fix compilation: #include your headers properly.
std::swap is defined in <algorithm>.

Reviewed-By: TrustMe
2010-01-25 10:45:30 +01:00
Friedemann Kleint
253f8c6010 Mime database: Fix potential memory leak.
Uncovered by code scanning.
2010-01-25 10:09:38 +01:00
Roberto Raggi
971e4b596c Return a normal plain Object value when Qt/Declaritive is not available. 2010-01-25 09:40:37 +01:00
Friedemann Kleint
d82c10921d CDB: Fix location marker not shown at first breakpoint in file.
Return value glitch in file name normalization.
2010-01-25 09:37:32 +01:00
Friedemann Kleint
eeb3107983 CDB: Fix location marker not shown at first breakpoint in file.
Return value glitch in file name normalization.
2010-01-25 09:36:05 +01:00
Roberto Raggi
6db71d185b Try to get the item under cursor. 2010-01-25 09:31:36 +01:00
Roberto Raggi
24f5a9c0e4 Set up the scope chain. 2010-01-25 09:31:36 +01:00