Commit Graph

28 Commits

Author SHA1 Message Date
Kai Koehne
8eecf8fcd8 Qml: Fix more invalid NOTIFY signals
Remove unimplemented NOTIFY signals. Furthermore the signals must
be declared in the same class as the Q_PROPERTY (not in a base class):
Fix this in filefilteritems.h.
2010-08-23 10:09:28 +02:00
Kai Koehne
20f57fdd8a QmlProject: Remove not implemented NOTIFY method
Fixes compilation with Qt 4.7.1
2010-08-23 08:52:51 +02:00
Christian Kamm
0fd0e6a9d0 QmlJS: Make the project always return absolute import paths.
Task-number: QTCREATORBUG-1728
Reviewed-by: Kai Koehne
2010-06-24 11:08:32 +02:00
Kai Koehne
7f1f9e14af Fix crashes when loading large .qmlproject's (Mac OS X)
There is a hard limit on the number of file handles that can be open at one point per process on Mac OS X (e.g. it's 2560 on Mac OS X Snow Leopard Server, as shown by ulimit -a). Opening one or several .qmlproject's with a large number of directories to watch easily exceeds this. The results are crashes later on, e.g. when threads cannot be created any more.

This patch implements a heuristic that the file system watcher used for .qmlproject files never uses more than half the number of available file handles. It also increases the number from rlim_cur to rlim_max - the old code in main.cpp failed, see last section in

 http://developer.apple.com/maac/library/documentation/Darwin/Reference/ManPages/man2/setrlimit.2.html

for details.

Reviewed-by: ckamm
Task-number: QTCREATORBUG-1487
Task-number: QTCREATORBUG-1486
2010-05-28 14:14:42 +02:00
Erik Verbruggen
ef66bc98e2 Fixed QTCREATORBUG-1397.
When adding a new file, refreshing semantic errors in the open editor should
have worked. It now also works for removing existing files.

Done-with: Christian Kamm
2010-05-19 14:46:08 +02:00
hjk
b1aae1b65d qmlprojectmanager: compile fix 2010-03-29 17:23:40 +02:00
Kai Koehne
48d195969d QmlProjectFiles: Dramatically reduce number of watched fs entities
Only watch directories, and not single files. Also, share one
FileSystemWatcher between projects & FileFilter items.

This fixes the issue that the process runs out of file handles e.g.
when loading a .qmlproject file containing all of qt examples & demos.

Basic implementation of FileSystemWatcher was copied from
ProjectExplorer::FileWatcher - however the FileWatcher is only
for files (and not directories), and also monitors the last
change date etc.
2010-03-29 15:57:06 +02:00
Kai Koehne
3984c057b8 QmlProject file format: Let filters recurse by default
E.g. "QmlFiles {}" now also monitors subdirectories by default, while
"QmlFiles { paths : ["bla.qml"] } does not.

Task-number: BAUHAUS-503
2010-03-22 10:21:18 +01:00
Christian Kamm
a3187addc5 QmlProjectManager: more libraryPaths -> importPaths renames.
See c722282cf3.
2010-03-21 09:36:54 +01:00
Kai Koehne
c722282cf3 QmlProjectManager: Rename 'libraryPaths' property to 'importPaths'
Suggested by Erik Verbruggen
2010-03-19 15:15:36 +01:00
Roberto Raggi
7f2dea7c41 Get rid of QML_REGISTER_TYPE. 2010-03-11 14:01:00 +01:00
Roberto Raggi
afba921111 Fixed wrong usages of the Q_D() macro. 2010-03-03 14:11:45 +01:00
Kai Koehne
4c59f3f2ce QmlProjectManager: Fix compilation with latest changes of QDeclarative
All files have been renamed from Qml to QDeclarative.
Registration of types is now done in an initializer method.
2010-02-26 14:46:04 +01:00
hjk
f8004713a6 qml: compile fix with namespaces 2010-02-24 11:05:59 +01:00
Kai Koehne
3f18859252 Fix compilation for latest qt/master
QmlList has been replaced by QmlListProperty (33eb76f050b45718d87926).

Patch provided by Aaron Kennedy.

Reviewed-by: akennedy
2010-02-23 10:41:13 +01:00
Kai Koehne
481d7cd6db QmlProject files: Make "paths" property an array
Instead of letting the list of files being a (comma separated) string
it's now a full JavaScript array. E.g.

  paths: ["file1", "file2"]

This unifies it with e.g. the libraryPaths property
2010-02-22 13:47:11 +01:00
hjk
e5eff803a5 compile fix with namespaces until the qml staging branch is merged again 2010-02-17 17:21:37 +01:00
hjk
3d8b17aeb5 qml: compile fix with namespaces 2010-02-17 17:11:17 +01:00
Kai Koehne
b5646d35da Don't show error message if file added to qmlproject is picked up
Check for the case that a new file to be added to a .qmlproject
is also automatically covered e.g. by a wildcard filter. In this
case we don't have to do anything.
2010-02-17 11:22:37 +01:00
Christiaan Janssen
e073099c5b QmlDesigner.ProjectManager: Added filter for cascaded style sheets 2010-02-16 15:04:15 +01:00
Kai Koehne
8577347446 Add libraryPaths array to Project element (.qmlproject format)
Will be passed to qmlviewer with the "-L" option. Storing this in
the .qmlproject file format itself (and not in the .user file) is useful
in case the libraries are relative/part of the checkout that is shared
between users/computers.
2010-02-03 09:13:53 +01:00
Kai Koehne
bafe4468aa Add support for JavaScriptFiles and ImageFiles elements to .qmlproject 2010-01-29 12:15:47 +01:00
Kai Koehne
269506c99c Add new JavaScriptFiles & ImageFiles element to .qmlproject file format 2010-01-29 12:15:47 +01:00
Kai Koehne
10dc30fa13 Add support for 'paths' property in QmlFiles element 2010-01-29 12:13:12 +01:00
Kai Koehne
01c22d803b Also watch sub-directories for changes 2010-01-29 12:13:12 +01:00
Kai Koehne
2181a93a1b Let QmlProjectItem return always absolute paths
We're converting the path to absolute ones in QmlProject anyway ...
2010-01-29 12:13:11 +01:00
Kai Koehne
20801bee30 Update project tree if .qmlproject file / included directories change 2010-01-29 12:13:11 +01:00
Kai Koehne
47155f8518 New qml based .qmproject file format 2010-01-29 12:13:11 +01:00