Remove useless includes and comments related to the old Qt::escape().
Change-Id: Ice44317e5440c0dd41e770da6f1443ce687735f1
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This is more reliable than choosing the first platform (whichever
that happens to be).
Change-Id: Ic2b33de96af295bdaa0955014853e1a5cf7605e3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This information is only available via pluginFeatures() now.
Change-Id: I4945933288e492578dafc2600eb8f77f0ee43cb3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Looks like the orginal users in the debugger views context menus
prefer to create their entries on the fly nowadays.
Change-Id: Ice3ba358b0d746e03e64c3c8b872c69c18bcaba3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This doesn't change anything until we replace the used project.
main.cpp or utility.cpp may get the tempFiletype "Headers" and
then the test will crash because the file can't be opened.
In addition, only files with filetype "Headers" are included in
other files, so verifying including of other files is
pointless.
Change-Id: I30b20269a800eca5ef51de3af209e674da5189bd
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Was used in blackberrydebugtokenreader.cpp, but is not
used anymore.
Change-Id: Ie55b2ab08773d0f541efb1a22e0c21c36f4ba7b3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
The bugreport I wrote about this was rated invalid
so now this is the expected behavior.
Change-Id: Ia187062552ad9d4857b5078d4c9c5dde4c8b7521
Task-number: QTCREATORBUG-14469
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
In addition to causing an unhelpful error message, we would also create
directories at unwanted places. For instance, deploying to a directory
called "/tmp/test dir" would result in this:
mkdir -p /tmp/test dir
Which created two unwanted directories, one of them at a completely
unrelated place.
Task-number: QTCREATORBUG-14518
Change-Id: Ie1c287ca73d0815b9bed335141adb901e361e3e6
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Karsten Sperling Opdal
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Use 'struct' keyword in forward declaration to avoid compiler warning.
Change-Id: I5a10eabea806ce138aed31e8b1a99567afe92e77
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This needs the patch that splits features and plugins in the json wizard
and makes sure that the requiredFeatures are ignored by the "All templates"
selector in the NewDialog while the "enabled" statement of the JSON
wizard still takes effect.
Change-Id: I76fd5d72a73af064cf5047a6a43aec6598f675bf
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
That is closer to what a user expects than the "0" and "1" used
before.
Change-Id: I08b3a7b0361dd54b75ee7b2213b3d120fb016bf5
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Now that we have the infrastructure to handle both separately it makes
no more sense to merge them.
Change-Id: Ia2694eef60c0fe17b025e4d6766c7a8f775513f5
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Now it can be toggled based on platform selected.
Change-Id: I663e8cff149da8df55baab4ab4f61c2c2e06f837
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
The platform is empty when "all templates" is selected in the
NewDialog. In that case I expect all possible features to be
reported.
Change-Id: I2ad4ba6df217b39ffa44b7001875e46c04712bb5
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Wizards have a "disabled" flag, everything else can be "enabled". Make
that more consistent by having the "enabled" for the wizard, too.
Wizards default to "enabled" now, just as they did default to "not
disabled" before.
Change-Id: Ic91f60196137daf353f7995b10ade19673d66f4e
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Instead of initializing it when opening the file, which has nothing to do
with it.
Change-Id: I5270d424c26dde7a66c0916281f718f779b1b2ac
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
The editor was not updating the UI part if that is active when external
changes happen. Switching to XML Source would then overwrite the
external change.
Change-Id: Ib63257e75e065d151cb2a078443dc2afc8392ab8
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
If it didn't find a project corresponding to an android manifest, it
crashed when trying to update that non-existing project.
Change-Id: I27ccaab14c0de8845a161d16becf73eb59c1d9c3
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Makes much more sense than plain 0.
Fixes Git interactive rebase that should have no timeout.
Change-Id: I48b4d4dc35c8e5ed13e074d431d05d6795eb8797
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
We may not use native path separators for internal data.
Task-number: QTCREATORBUG-14249
Change-Id: I0f00db235608e81cfefdd2359378020c7376768f
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Right now, DebuggerStartParameter is part of the debugger plugin
external interface. Better not make it fatter than necessary.
Change-Id: I3b9205089f971dd314ccba1335b5ca2d4d9fe7c6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This patch allows a plugin to insert custom imports. These imports are
used by QtC for syntax highlighting and code completion. This way a
plugin can register types and objects that are available only at
runtime.
This is an example of an imports function implementation:
QList<Import> MyPlugin::imports(ValueOwner *valueOwner, const Document
*context) const
{
// context is needed to know from which project is the opened document
// in this example we don't care about multiple projects
Import import;
import.object = new QmlJS::ObjectValue(valueOwner, "<defaults>");
import.valid = true;
const ComponentVersion version(1, 0);
import.info = ImportInfo::moduleImport("MyPlugin", version,
QString());
auto myType = valueOwner->newObject(nullptr)
myType->setMember("myProperty", valueOwner->valueOwner->intValue());
// add more properties & methods/signals to myType
import.object->setMember("MyType", myType);
// in this example we return only one, but you care return more than
one
return QList<Import>(import);
}
Change-Id: I395c273c7b15a9e4ed5a89a81d70ff92db2b7c0c
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
When a file is part of a project, but fails to open in an editor, the
editor configuration would still keep a reference to the "created" editor
that in the end was not "opened".
Remove editors from the configured editors list when they are destroyed,
instead of when they are "closed".
Change-Id: Ib9680d56b737214c09f935f0088a77959ca7e8ba
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
It currently doesn't contain the code it displays.
Change-Id: Iae6752d4f6feed3c231dcb4529e16110defb14fc
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Without it, Qt creator complains that the XML file is invalid and
it could not be parsed. Made a language edit as well based on the
sanity bot's recommendation.
Change-Id: I04acd60d9ee4f5f29f443fa56beed6ecfbdbef64
Task-number: QTBUG-41996
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This detour existed to ensure that the V8 model and the events model are
done processing before we call complete.
Change-Id: I89b3ec7935e63e8cbcdeaff74d407064456c07be
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>