Commit Graph

248 Commits

Author SHA1 Message Date
Kai Koehne
cdda5c775d Revert "QtQuickApp wizard: Add option for QtQuick 1.1 module"
This reverts commit 31904563bb.
The option in the UI might actually confuse users: For the time being
we'll just keep 1.0 as the namespace.

Change-Id: Ifc7b46227d57ec8d246c8f7818d5a619ef0cd3bd
Reviewed-on: http://codereview.qt.nokia.com/699
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-06-24 15:36:28 +02:00
Oswald Buddenhagen
1d78e594d8 Merge branch '2.2'
Conflicts:
	qtcreator.pri
	share/qtcreator/qml/qmlpuppet/instances/objectnodeinstance.cpp
	src/libs/qmljs/qmljsdocument.cpp
	src/libs/qmljs/qmljsinterpreter.cpp
	src/libs/qmljs/qmljsinterpreter.h
	src/libs/qmljs/qmljslink.cpp
	src/plugins/cppeditor/cppquickfixes.cpp
	src/plugins/qmldesigner/extrasplugin/extrasplugin.cpp
	src/plugins/qmldesigner/qmldesigner.pro
	src/plugins/qmldesigner/symbianplugin/symbian.metainfo
	src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h

Change-Id: Id5f754e2837a3bb3e0687ed09f1dda45fd0c5617
2011-06-23 19:47:50 +02:00
Kai Koehne
31904563bb QtQuickApp wizard: Add option for QtQuick 1.1 module
Technically it's just one line in the generated file, but might
avoid people be confused on why there is only QtQuick 1.0 as an option.

Change-Id: I61fb4e82d8ee71fe6fddcd6845b4b48e78004e81
Reviewed-on: http://codereview.qt.nokia.com/625
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-06-23 14:36:52 +02:00
Kai Koehne
8ec524910a QtQuickApp wizard: Use qsTr() for string
Change-Id: Ie2f40065c000b5bf588a0cd5470ec42091080c97
Reviewed-on: http://codereview.qt.nokia.com/621
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-06-22 18:05:36 +02:00
Feetu Nyrhinen
2964f7a9fa Qt Quick Components Wizard
Selection of Qt Quick component set
and use of specific QML template files (Qt Quick 1.0 and
com.nokia.symbian 1.0) based on the user selections.

Change-Id: I93cfa8735dcf285c76ff04a6186a4eca1f90a361
Reviewed-on: http://codereview.qt.nokia.com/567
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-06-22 15:26:55 +02:00
Kai Koehne
fa3976b3f1 Add TARGET.EPOCALLOWDLLDATA=1 to Qml Plugin Wizard
Needed for Symbian.

Task-number: QTCREATORBUG-3507
Reviewed-by: Tim Jenssen
Reviewed-by: Alessandro Portale
Change-Id: I35799cd388e44353d6890fe79a411fbed2fb2ef3x
Reviewed-on: http://codereview.qt.nokia.com/394
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
2011-06-08 16:32:11 +02:00
Christian Kandeler
84f60e5fda Maemo: Use different desktop files for Fremantle and Harmattan.
So far, we desperately tried not to duplicate the desktop file,
resorting to all kinds of "clever" heuristics in the process.
This is, however, somewhat limiting and confusing to users,
because we do magic stuff behind their backs.
So it seems better to "give up" and use two desktop files.

Change-Id: Idf969eb3ad365f080e5a9c1608149ea6de629d5c
Reviewed-on: http://codereview.qt.nokia.com/31
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-05-23 13:10:56 +02:00
Thorbjørn Lindeijer
2b0266d0ee Disable observer and jsdebugger services when they're already part of Qt
As of Qt 4.8 the observer and jsdebugger services are part of Qt. This
means the following changes are necessary in Qt Creator:

* Do not link to the QmlJSDebugger library.
* Do not create JSDebuggerAgent and QDeclarativeViewObserver instances
  in the QmlApplicationViewer and use the new declarative_debug CONFIG
  option to enable those services in Qt. This is done automatically
  for debug builds.
* Point out the QML Debugging Library and the QML Observer are "Not
  needed" in the Qt options page.
* Change the label in qmake options from "Link QML debugging library" to
  "Enable QML debugging". It still remains as a way to enable this
  functionality in release builds or for QtQuick applications not based
  on Qt Creator's template.
* Rely on qmlviewer for debugging QML UI projects rather than the
  observer, which is no longer necessary.

Reviewed-by: Kai Koehne
2011-05-12 15:56:05 +02:00
Daniel Molkentin
8dd71a9199 Let the ListModel wizard generate a valid model. 2011-05-02 17:24:20 +02:00
Christian Kandeler
12b2a5fff0 Maemo: Harmattan application icons are now 80x80 pixels big.
Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=250237
2011-04-29 09:45:35 +02:00
Alessandro Portale
3970f60814 Include touchnavigation.pri from main .pro file
And have that entry removed by the wizard. REMOVE_NEXT_LINE
is now the keyword for line removal. INCLUDE_DEPLOYMENT_PRI
was replaced by REMOVE_NEXT_LINE.
2011-04-17 09:55:17 +02:00
Keith Kyzivat
28843faa1c Split out touch navigation into separate files.
Make the html5applicationviewer class much less cluttered by splitting out all
the touch navigation classes into separate files in a subdirectory.

This should make it much more maintainable.
2011-04-16 21:13:06 +02:00
hjk
4cced614dc fix script executable flags after license header changes 2011-04-13 18:00:50 +02:00
hjk
8397663964 Update license. 2011-04-13 11:49:28 +02:00
Alessandro Portale
f1033737c7 Another fix for shadow build deployment with sh.exe in path
The "isEmpty(QMAKE_SH)" test is nonsense in the case of an msvc
build, because for msvc, sh.exe is never executed (although QMAKE_SH
is set.

"isEqual(QMAKE_DIR_SEP, \\)" is now the ultimate test. QMAKE_DIR_SEP
will only be "/" if sh.exe is in the path AND win32-g++ is used.

Task-Number: QTCREATORBUG-4455
2011-04-11 13:29:24 +02:00
Christian Kandeler
11974a1449 Mobile wizards: Don't show orientation options for Harmattan & Meego. 2011-04-07 17:26:19 +02:00
Christian Kandeler
01bc7e7ca9 Mobile wizard: The Mainwindow sources are not versioned.
Task-number: QTCREATORBUG-4363
Reviewed-by: Alessandro Portale
2011-04-04 15:53:59 +02:00
Alessandro Portale
a6213ba901 Double escaping backslashes for regular expression
The first parameter of qmake's replace function is a regular
expression. So it needs to be escaped once for the qmake parser,
and then for the regular expression.
2011-03-30 19:23:27 +02:00
Alessandro Portale
3b9438f7d5 Fix deployment with MinGW and sh.exe in path
When building with MinGW and sh.exe is in the path, we should/can
not use xcopy in our deployment code. This patch detects the
presence of sh.exe and adjusts the behavior accordingly.

'cp -r' is used directly instead of $(COPY_DIR), because the fix
for QTBUG-17315 is not yet in a released Qt version.

'mkdir -p' is used directly instead of $(MKDIR), because the
QMAKE_MKDIR for win32-g++ (in case of QMAKE_SH) does not have
the '-p'. A least not til Qt 4.7.3.

Task-Number: QTCREATORBUG-3094
Reviewed-by: Oswald Buddenhagen
2011-03-30 19:23:27 +02:00
Christian Kandeler
b38a256ed6 QML plugin wizard: Fix deprecated use of backslash in project file.
Task-number: QTCREATORBUG-4091
2011-03-30 11:39:40 +02:00
Christian Kandeler
ad6a66ce20 Mobile app wizard: Fix desktop file contents.
The "Exec" value was not consistent with the installation prefix in the
.pri file.
2011-03-29 14:41:41 +02:00
Alessandro Portale
dece4dccc7 Added (optional) touch optimized navigation of HTML5 apps
Code provided by the Bostoner Browser team.

The HTML5 wizard shows a checkbox "Enable touch optimized navigation"
which enables flicking and enlarged click areas. By default, the
option is turned off.

Task-Number: QTCREATORBUG-3284
2011-03-18 17:34:09 +01:00
Kai Koehne
304b3c881c QtQuickApp: Remove QMLJSDEBUGGER define from custom .pro file
The qmljsdebugger-lib.pri is only included in 2.2 if the user explicitly
selected it in the Project Settings.

Reviewed-by: Christiaan Janssen
2011-03-07 16:35:27 +01:00
Kai Koehne
f1ca025076 QmlExtensionPlugin: Require objectname, URI
Make sure 'next' button is disabled if fields are empty.

Task-number: QTCREATORGBUG-3921
2011-03-02 11:40:00 +01:00
Thorbjørn Lindeijer
3383a204cc Specify the right parent for the QDeclarativeViewObserver
This makes sure it gets deleted together with the QmlApplicationViewer,
rather than probably not at all when no parent is specified for the
viewer (which is the default).

Reviewed-by: Alessandro Portale
Reviewed-by: Christiaan Janssen
2011-02-22 16:38:20 +01:00
Kai Koehne
3fef120d59 QmlJSDebug: Move qmljsdebug into a static library
Reviewed-by: dt
2011-02-18 12:57:45 +01:00
Leena Miettinen
a6fc7e8857 Doc: fix capitalization
Reviewed-by: Alessandro Portale
2011-02-15 15:57:48 +01:00
Christian Kandeler
d6aa31a1fb QML extension plugin wizard: Make deployable on Maemo.
Task-number: QTCREATORBUG-3229
Reviewed-by: Alessandro Portale
2011-02-10 15:17:37 +01:00
Alessandro Portale
91e04fbadc Change the path lookup from Linux style to Maemo style.
Reviewed-By: Christian Kandeler
2011-02-09 16:37:49 +01:00
Alessandro Portale
aa453c8062 Implemented "import" and "Url" options for html5 app wizard 2011-02-09 16:23:45 +01:00
Christian Kandeler
08aaad92ac Maemo: Fix default deployment paths.
Applications must live in /opt/<project name> on Harmattan & Meego.

Reviewed-by: Alessandro Portale
2011-02-08 18:09:06 +01:00
Alessandro Portale
4eefeccfd7 ..actually, it was needed
/me stops hacking html
2011-02-08 15:21:37 +01:00
Alessandro Portale
fd4e6e1ad4 Remove unneeded semicolon 2011-02-08 15:20:38 +01:00
Alessandro Portale
6fc21c3416 More "qml[standalone]app" -> "qtquickapp" renaming 2011-02-07 12:47:07 +01:00
con
b69ab309cd Merge remote branch 'origin/2.1'
Conflicts:
	share/qtcreator/templates/mobileapp/app.pro
	share/qtcreator/templates/qmlapp/app.pro
	src/plugins/debugger/debuggeractions.cpp
2011-02-04 11:46:30 +01:00
Alessandro Portale
427ea67a85 Moved Content-Type http-equiv inside the head 2011-02-03 15:51:39 +01:00
Alessandro Portale
3624311697 Adding a Content-Type http-equiv 2011-02-03 15:50:23 +01:00
Alessandro Portale
d4e5890286 Removing the usage of Avkon to lock the screen orientation
Locking the screen orientation was not a Qt feature of the Symbian
port till Qt 4.7.2. Therefore, client applications had to do the
locking themselves. That locking is right now only achievable by
using Avkon Api. The template code of the Qt Quick App wizard did
exactly that.
Now, Qt 4.7.2 has the screen orientation lock built in. That
implementation was done for QTBUG-11785. No need to do that in the
application code, anymore.

This patch removes Avkon usage from the templates, using new enum keys
and setting QWidget flags, just like Maemo5 does.

Two Qt version checks/fixes:
1) If the application tries to lock the orientation on Qt < 4.7.2,
   a warning is given that this won't work
2) If Qt < 4.7.2 is used to build the application, the enum keys are
   not used directly but casted from constants

Task-Number: QTCREATORBUG-3598
Reviewed-by: ck
2011-02-03 12:50:01 +01:00
Alessandro Portale
7e5fd30daf Fix CSS. first-child and nth-child selectors not supported
(by QtWebkit)
2011-02-02 20:50:27 +01:00
Alessandro Portale
7296cd0fa0 Removed Avkon from html5 template 2011-02-02 16:25:33 +01:00
Alessandro Portale
1da6186979 App wizard template: Move Network capability into main .pro
Removes the "DEFINES += NETWORKACCESS" from the main .pro file
replacing it by "symbian:TARGET.CAPABILITY += NetworkServices".

Task-Number: QTCREATORBUG-3594
reviewed-by: con
2011-02-02 09:22:42 +01:00
Alessandro Portale
13ee1dd2d0 Dummy template for Html5 app wizards
The template code is similar to the Qt Quick App wizard
template code. It has a Viewer class +.pri which wrap the "dirty
stuff", a main .pro file and main.cpp file. In this case, there
is also a "Hello World" index.html file.

The "dirty stuff" code exposes a quit() function to the JavaScript
in the webview, which can be triggerd via the index.html.

As the 1-line-summary of this commit states, it is a dummy. Some-
one with proper knowlede about QtWebkit please provide better
template code.

Task-Number: QTCREATORBUG-3284
2011-01-26 16:37:48 +01:00
Alessandro Portale
b2389a16ff Un-messing the comment text layout. And removing trailing WS. 2011-01-25 21:13:45 +01:00
dt
6c61ea2251 Project Wizards: Make the categorie names reflect the contents
Also reorder the contents to have Qt Quick on top. Move Console Qt
to Other Projects.

Qt QWidget project isn't the best name, but the new structure is a
improvement so using it for now.

Task-Nr: QTCREATORBUG-3513

Ack-By: con
Ack-By: kkoehne
2011-01-24 17:30:31 +01:00
Friedemann Kleint
4b8ad4d31f Wizards: Fix include style. 2011-01-24 15:32:06 +01:00
con
34f28a87ab Merge remote branch 'origin/2.1' 2011-01-24 14:01:04 +01:00
Christian Kandeler
30b036502b Maemo: Don't use Q_WS_MAEMO_6.
This symbol does not exist.

Task-number: QTCREATORBUG-3485
2011-01-14 15:45:53 +01:00
dt
2de93e9b96 QML template: Do not override user settings for icon and epocheapsize
Task-Nr: QTCREATORBUG-3454
Reviewed-By: Alessandro Portale
2011-01-12 15:40:20 +01:00
con
54f4fba003 It's 2011 now. 2011-01-12 15:34:06 +01:00
hjk
bd8ad9e0f5 customwizard: implement modifiers to create safer include guards and class names 2011-01-12 11:28:42 +01:00