Commit Graph

202 Commits

Author SHA1 Message Date
hjk
83e573f2ec use new id comparison operators to reduce line noise and save cycles
Change-Id: I2e7d81a4efb75877901d29964df4f71314e951b4
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-08-06 10:37:43 +02:00
Friedemann Kleint
455b677f8e tr()-fixes for 2.6
- 'profile' -> 'target'.
- 'qt version' -> 'Qt version'. Fix occurrences in comments as
  well to make grepping easier.
- Placeholders.

Change-Id: I451eae2f0571bccf1e75cf0def425a09fa80855b
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-26 16:14:42 +02:00
Eike Ziller
e0e8cf3ada Contact -> qt-project.org
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-07-19 13:23:21 +02:00
Oswald Buddenhagen
5e596e89d0 introduce qmakeProperty(), use instead of versionInfo() where applicable
the idea is to encapsulate accesses to specific variables.

Change-Id: Icafd2c85de6178db1a492a5dd36dde7f1925ea21
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-07-09 21:15:30 +02:00
Oswald Buddenhagen
705afed75d make calculations of baseMkspecDir sane
no point in having strange fallback paths

Change-Id: Ic19daeeebe5a473e8242c6b69f55cf853def6bb5
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-07-04 14:14:39 +02:00
Tobias Hunger
2f34671e99 More direct comparison of Core::Ids
Change-Id: I8bd29d64bad6a30927ef73845c5bd8cb5337700c
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-06-29 13:58:14 +02:00
hjk
344e11c81e qt4buildconfiguration: more direct comparision of ids
Change-Id: I051bf309974092a5c1430b5bf237d2074736e143
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-29 08:56:24 +02:00
Tobias Hunger
2431456216 Profile introduction
Introduce Profiles to store sets of values that describe a system/device.

These profiles are held by a target, getting rid of much of the information
stored in the Build-/Run-/DeployConfigurations, greatly simplifying those.

This is a squash of the wip/profile branch which has been on gerrit for a
while, rebased to current master.

Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-06-21 12:08:12 +02:00
Tobias Hunger
9739375255 Qt4BC: Get a better Qt version when the old one is deleted
Explicitly select a a new Qt version when the one in use gets
deleted. Do not rely on the UI doing the right thing anymore.

Change-Id: Ia78b56ae15a1aa81d11227d1f07ce43bff19b0f2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-05-09 13:44:08 +02:00
Orgad Shaneh
72bf41b40f Qt4PM: Build current file
Task-number: QTCREATORBUG-106

Change-Id: I3511f57b9128073104f6691a469f9c54d64138c3
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-05-07 16:39:18 +02:00
Daniel Teske
1a9b436cc1 Qt4ProjectManager: Cleanup TODOs
Change-Id: I3c274c5b9aa37e14d74da3276d7012983f14fc89
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-05-03 16:27:55 +02:00
Tobias Hunger
cfb9c26c30 Fix build failure with Qt 4.7
Change-Id: I81c6d6914bd87682c77e81f96065bfc586061b37
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-25 16:29:59 +02:00
Tobias Hunger
df5dab6382 Use Core::Id in project-related objects
Use Core::Id for all the project related objects in favor of plain
QStrings.

Change-Id: I790ab40cb29899efdb49c413a77609486f52e683
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-04-25 11:49:19 +02:00
Daniel Teske
6630857deb Fix add buildconfiguration not respecting default qmake build
Change-Id: Ic20b2842b10bf97c721df6d90b2306a813c9ba2a
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-18 11:32:20 +02:00
Tobias Hunger
1079f5a1bf Symbian: Remove support for S60 emulator
The Qt SDK never supported this, so remove it from Qt Creator.

Change-Id: I1da9d658195083aa1b6f5d8119cc03c4984e8d77
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-17 12:36:31 +02:00
Friedemann Kleint
eb802c2b38 Fix QML debugging in QMakeStep.
- Use 'qml_debug' or 'declarative_debug' depending on Qt major
  version.

Change-Id: I10d1973b34994675b07b1d06d5e81b584d132fb4
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-04-11 08:40:15 +02:00
Daniel Teske
71d5e838a4 Fix sorting of Add Buildconfiguration menu
Also make the code simpler.

Change-Id: I75ff5937d89760f83a23214806ee257e8a3bc7da
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-05 11:58:58 +02:00
Daniel Teske
713762e108 QtVersionManager::qtVersionsChanged() split list into add/remove/change
Makes it easier to do the right thing.

Change-Id: Id6c6754033b3310c6b8c68a4aacc22cbaef268ee
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-03-06 11:10:59 +01:00
Daniel Teske
08786b09a0 Remove unused method
Change-Id: If20e212123a353505002c16b4c39bd3cc316143b
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-02-23 15:22:26 +01:00
Eike Ziller
d66acb51d0 Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively.

Change-Id: I1e04e555409be09242db6890f9e013396f83aeed
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-20 13:32:49 +01:00
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
Tobias Hunger
52b47364de Use QUuids to identify tool chains
Save/Restore has been updated to reflect this:

We now save manual as well as auto-detected tool chains into the user
toolChains.xml file.

When loading we load the SDK as well as the user toolChains.xml files.
We then do a autodetection run. All the tool chains restored that are
marked up as auto-detected are then checked again:
 * the tool chain was autodetected again: Throw away the newly auto-
   detected tool chain and reuse the saved one. This makes sure we
   keep the QUuid that is now part of the tool chains id.
 * the tool chain was not autodetected again: Throw away the saved
   tool chain.
 * the tool chain was newly autodetected: Add the new tool chain

We keep the old id around in the legacyId() method. It is used when
loading old .user files only. So there is no need to implement this
method for new tool chains.

Task-number: QTCREATORBUG-6702

Change-Id: Ifc0a216e5351a8a57db03615ba329e355e7d5f59
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-30 12:25:40 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
Friedemann Kleint
80d3f73319 Compile Qt4ProjectManager with QT_NO_CAST_FROM_ASCII.
Change-Id: If9fd111032975d2a313084f5fedf20561806e268
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-14 21:13:41 +01:00
Daniel Teske
f8a1b94381 Don't react to profileUpdated on failure or while still in progress
Change-Id: I88fa7b7e3165d3b89af4e68a1b1c17082f29510a
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-12-08 12:30:18 +01:00
Daniel Teske
f5d4287123 Use Utils::FileName for various bits in QtVersion
Change-Id: I3afc3a4f2e0dd2671279c2d071779f1d7b277849
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-12-07 15:05:31 +01:00
hjk
31600758de all: s/info@qt.nokia.com/qt-info@nokia.com/
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-11-03 10:33:19 +01:00
Daniel Teske
8be83a173a Make sure we pass -after arguments after user arguments
Otherwise the user can't pass on normal arguments

Task-number: QTCREATORBUG-6346
Change-Id: I986563a75113a6d5acf601b5ccb63d6a35570bad
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-10-21 11:49:59 +02:00
Kai Koehne
b8ed8f493f Actually delete CONFIG+=declarative from list of user arguments
Fix incorrect merge in b0efd44d20 .

Change-Id: I7b007cdaf89732336463685a1af7000584a46e6e
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-10-13 15:28:54 +02:00
Daniel Teske
bd32f47269 Fix setToolchain, ups
Change-Id: Ie300f6786336a663e12e52a2546e8ebf0458e080
Reviewed-by: pending
Reviewed-on: http://codereview.qt-project.org/5728
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-09-28 15:42:25 +02:00
Daniel Teske
c4f7b0c7b4 Fix endless evaluate loop for invalid qts
Change-Id: Id4ba165f95876cc0b986f5db7e6a788c3fdb2dc0
Reviewed-on: http://codereview.qt-project.org/5709
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-09-28 12:11:14 +02:00
Tobias Hunger
ffa88df344 Toolchain: Allow all tool chains
Allow all tool chains if either the Qt version is invalid or
no Qt modules are not selected.

Change-Id: I9842c30aca0a8752915548dc258f257c3fd39e4d
Reviewed-on: http://codereview.qt-project.org/4990
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-09-23 14:02:59 +02:00
Eike Ziller
b0efd44d20 Merge remote-tracking branch 'origin/2.3'
Conflicts:
	qtcreator.pri
	qtcreator.pro
	share/qtcreator/templates/qtquickapp/qmlapplicationviewer/qmlapplicationviewer.cpp
	src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp
	src/plugins/qt4projectmanager/qt4buildconfiguration.cpp
	src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
	src/plugins/remotelinux/remotelinuxruncontrol.cpp

Change-Id: I9c89ba9fa2928e14e148041f9001856dce47a20b
2011-09-15 11:50:29 +02:00
Kai Koehne
a4a05aef2b QMakeStep: Honor declarative_debug configuration for imported builds
Honor the qmake line that is imported: If it contains declarative_debug
or QMLJSDEBUGGER_PATH, also set the option in the qmake step, if not
not.

Change-Id: Ibc524ff8d39b66f76cc79807264db0dd3534e2d7
Reviewed-on: http://codereview.qt-project.org/4090
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-09-14 11:25:00 +02:00
Tobias Hunger
b96b560634 Qt4: Fix initializiation of tool chain
Change-Id: I0a37cf56ee3b609c9cabd4926b8a13b962491124
Reviewed-on: http://codereview.qt.nokia.com/4087
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
2011-09-05 11:21:38 +02:00
Kai Koehne
14ee91dc54 Remove CONFIG+=declarative_debug from imported build line
Prevent CONFIG+=declarative_debug to show up in "custom arguments"
of an imported build.

Change-Id: Ib598addcb31b65853eea430a086f614c6dd498fd
Reviewed-on: http://codereview.qt.nokia.com/4044
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-09-01 12:55:41 +02:00
Friedemann Kleint
d4e1d7c6ad Header cleanup in Qt4ProjectManager.
Disentangle the covariant returns and introduce
convenience accessors.
Move internal classes away from Qt4Project.

Change-Id: I6c3158988824d2a159b1b3f8ecdf8432c32be2bc
Reviewed-on: http://codereview.qt.nokia.com/3216
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-18 16:50:01 +02:00
Tobias Hunger
f28dc88e7a Qt4: Find complete arguments passed to qmake
Change-Id: If49183f2d8ed4ad3086dbdbfc20272127be22c25
Reviewed-on: http://codereview.qt.nokia.com/370
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-06-07 18:21:54 +02:00
Tobias Hunger
499a49b686 qmake: Skip running qmake when using non-default tool chains
Do not rerun qmake when using a tool chain which requires a
non-standard mkspec to be used.

Change-Id: I6171790805743251a7867111faa46bd4d4cc890d
Reviewed-on: http://codereview.qt.nokia.com/314
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-06-07 16:21:41 +02:00
Kai Koehne
be1dee195f Qt4BuildConfiguration: Fix naming of slot
Change-Id: I8b739afadd19e0f7c3503a11eb250a0662671958
Reviewed-on: http://codereview.qt.nokia.com/309
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-06-06 15:36:41 +02:00
dt_
8b2cebd703 Minor include fix
Change-Id: I50ba5ceb01a76ccf40ad6920060cbe986084b938
Reviewed-on: http://codereview.qt.nokia.com/245
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-31 14:29:58 +02:00
dt_
a078f71872 Add BuildConfiguration::disabledReason()
Not yet used.

Change-Id: I1f8763163e5f19e41d8e98517cf13d9bbb1e6ff8
Reviewed-on: http://codereview.qt.nokia.com/189
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-05-27 15:16:21 +02:00
Christian Kandeler
64ba06e221 Maemo: Create dedicated plugin.
No change in functionality for now. More support for generic remote
Linux support is planned to be added.

The changes in decreasing order of magnitude:
1) Move contents of qt4projectmanager/qt-maemo to new "RemoteLinux" plugin.
2) Make some classes in qt4nodes public for now. More decoupling
in that area will follow.
3) Fix some minor problems uncovered by the move.

Change-Id: I51d0c7977c10019eb6080cd6620bc28ecebad3c4
Reviewed-on: http://codereview.qt.nokia.com/106
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-26 13:31:05 +02:00
dt_
0d2313c555 Revert "Fix import of existing builds"
This reverts commit 8cd3b54949.

Conflicts:

	src/plugins/qt4projectmanager/qmakestep.cpp
	src/plugins/qt4projectmanager/qmakestep.ui
	src/plugins/qt4projectmanager/qt4buildconfiguration.cpp
	src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp

Change-Id: I63af95b8dd7010c50318f276ef524c00a58995bb
Reviewed-on: http://codereview.qt.nokia.com/117
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-25 15:45:46 +02:00
Kai Koehne
8147973965 BuildConfiguration: Adapt name if Qt version changes
Change-Id: I1a34cb51f73af9779d6bdb07324d5dadcb5585b3
2011-05-25 13:22:55 +02:00
dt
754be1bcfc Move a lot of qmake independent classes to a new plugin qtsupport
Also adjust qmldumptool to remove the dependency on qt4project/qmlproject, by
passing in the qtversion instead of figuring it out in qmldumptool.

Change-Id: Ie6ac582d36bfef290313c0716b33b62fcf42630c
Reviewed-on: http://codereview.qt.nokia.com/70
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-24 18:35:11 +02:00
Pawel Polanski
2d80383db1 Now it's looking better
Change-Id: Ic6cbc95feb121f09eb2e14c08a9ab680018dc760
Reviewed-on: http://codereview.qt.nokia.com/39
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-05-20 15:15:15 +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
8e171e0be0 Qt Version refactoring
Split up target specific code into subclasses. Also change
Qt4BuildConfiguration to allow a null qtversion.

Remove code that relied on always having a qt version.
Also make it possible to remove all qt versions.

Completly change the qt in path autodetection to be only
a fall back if no configuration was found.

Note: For now the old settings are not removed, as such 2.2 and master
can coexist.

Reviewed-By: hunger
2011-05-12 12:23:06 +02:00
Tobias Hunger
aa2acec14c Fix/add copyright headers
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00