The mkspec setting function checks whether the value is the same as the
default, but the default depends on the toolchain.
Change-Id: I2ff55efbf365617b117301224e23d616dc7db25e
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
It's a CMakeProject, it must be a CMakeBuildConfiguration
Change-Id: Ibd0907112661a89f7ca84ffdf62a1dbcbd436ed8
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
CMakeBuildConfigurations can only exist on CMakeProjects
Change-Id: I8501e39f133fea854b953f9739e001cae1f2c0ea
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
All the methods are static now, so there's no need to instanciate the
class.
Change-Id: Ibb615f1f863ed1ad8e27dfb44d69998ea1061550
Reviewed-by: BogDan Vatra <bog_dan_ro@yahoo.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
And then use that knowledge to simply do a static_cast
Change-Id: Ia145468235ed0b75ed243d6ae2d76ab824df2958
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
It's the same as RunConfiguration::activeBuildConfiguration
Change-Id: I117edbe2347dd40b183ba7e9d2f6ace08645db7e
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
We must delete private class which delete m_ui too.
OTherwise we will leak here
Change-Id: I39239ce2fdddd4fe4e4e748673e271bba976c712
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Append the function return type in outline (after arguments), consistently with
variable type indication.
Change-Id: I1cc6d69634fc83227eb7fc9e3a0ee2ad6ca6ace8
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
The type highlighting change part of the recent patch
4a2a17af8a didn't seem to
please much from a visual point of view. It's a better
idea to keep the type highlighting as it was for now
and in the future try again the approach with an explicit
option and perhaps a more restrictive context.
The other patch is not reverted entirely because it does
fix a couple of bugs.
Change-Id: I806afa3d8c1c4b241080b8704255d737f61ee12c
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
It contained only two pointers. Not worth the overhead.
Change-Id: I512ddfe588b8d072072b8155b4418a2b8e8c4da0
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
- Fix issues with virtual/non-virtual destructors. They were not
being correctly identified in some cases - in particular on certain
uses in derived classes.
- Since now we do have a highlighting item for regular functions,
constructors and destructors are now highlighted as such. This is
more semantically correct and actually makes navigation and readiblity
more distinguishable, since it cleary differentiates the type itself
from its uses in expressions and declarators. (This seems to be what
other IDEs like Eclipse, Visual Studio, KDevelop are doing.)
NOTE: There's a switch to disable this item in the case it doesn't
get good acceptance. Actually, the switch can be made a user
setting...?
- Change the default color scheme so regular and virtual functions
have the same color (virtuals continue to be italic). This makes
sense given the above mentioned changes in constructors/destructors
highlighting behavior. (In other schemes virtual funcions don't have
different color, so this shouldn't be necessary in those.)
- Small renaming: "members" are now "fields" - consistent, since
they apply for data and it's the term used in the UI.
Change-Id: Ib1aa9c0bbf28a31d09f5696460b0095fbe29de80
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Since it creates a console app also create a bundle-less app on Mac.
Task-number: QTCREATORBUG-7304
Change-Id: I00749f0d8a4c02bd80d4e7468b3abea552db23dc
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
In case the qmake-line does not contain a mkspec argument,
use the mkspec of the Qt version found by matching the
qmake binary.
This reduces the duplication of targets/profiles when opening
new projects.
Change-Id: I647e166ae0322fd093967abea760197cf4c7eedd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
When Qt Versions and Profiles are removed simultaneously, the profiles
cannot be updated anymore.
Change-Id: I2022fb701d4d9f0704dda6a83c8f53b8add61c14
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
The active target is then null, thus calling target->project() crashes
Task-number: QTCREATORBUG-7633
Change-Id: Ia0804b9293b184528d5d949fa30b35877622e65d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
That can happen, since the default profile is now manual and can be
deleted.
Change-Id: Id9274351e800ba88d7050ca7cd036cfc227a899a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>