summaryrefslogtreecommitdiff
path: root/src/plugins/designer
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Wizards: Add file extension as text overlay to some wizardsAlessandro Portale2017-07-241-0/+1
| | | | | Change-Id: Ibfd1144271c4381c7125db80713cbde431a54cf7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Introduce and use Utils::stripAcceleratorOrgad Shaneh2017-07-071-1/+3
| | | | | Change-Id: I8c37728ca5de20e2b68e6d0ac7fc120baa696040 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Reduce usage of qApp in favor of static function callsAlessandro Portale2017-04-242-3/+3
| | | | | | | | | | | | Q*Application classes have unusually many static functions. In many cases in our code, these functions are unnecessarily called as instance functions, using the qApp helper. This patch replaces many occurencies of qApp with the according Q*Application classname. Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124 Reviewed-by: hjk <hjk@qt.io>
* Designer: De-slotOrgad Shaneh2017-03-209-26/+12
| | | | | Change-Id: I6e4a80187646afe342a03ed31c3404fdc27cccc7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Use visitor-by-lambda for project treehjk2017-03-081-1/+0
| | | | | | | | And inline it into user code. Less code in total and no intermediate node lists. Change-Id: I3724883408bfaa868266110aee27bbffd4d96bd8 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Revert "CppTools: Do not put configuration document into global snapshot and ↵Nikolai Kosjar2017-03-071-1/+4
| | | | | | | | | | working copy" This reverts commit 05942b63f8bad6d6787fea10c31f10458cdccd06 because it breaks refactoring, e.g. Q_PROPERTY generators. Change-Id: I9a14b912ba72663f08ea99e7e066d824b18da4b0 Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Wrap MimeDatabase into static functionshjk2017-03-033-12/+6
| | | | | | | | To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* SessionManager: Clean up methods around projectsTim Jenssen2017-03-021-1/+1
| | | | | | | | Clean up methods around projects() and update its usages to modern language standards. Change-Id: Ia0a4574d014ce41e0d511a392e4eed4680981d0e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ProjectExplorer: Remove some unneeded declarationshjk2017-03-011-2/+0
| | | | | Change-Id: Ie5bab9205692748f7913c58b5478b2e6d072df4b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-223-16/+16
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* ResourceHandler: Replace traditional visitor by lambdahjk2017-02-151-35/+8
| | | | | | | | Less code, closer to the place where it is used, and avoiding the need to have the temporary fileNode lists. Change-Id: I47b831aef7583b73a69276da4a301d812de75c69 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Replace some more occurrences of QStringList() << patternChristian Stenger2017-02-082-32/+14
| | | | | Change-Id: Ic7193ac3a741763479a9ef129ed05cb7ca64f1e9 Reviewed-by: hjk <hjk@qt.io>
* Replace a few occurrences of QStringList() << ...hjk2017-02-081-1/+1
| | | | | | | ... by something shorter. Change-Id: I363b4e509adb07997517b2d233246a333aea4aea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppTools: Do not put configuration document into global snapshot and working ↵Nikolai Kosjar2016-12-081-4/+1
| | | | | | | | | | copy These are remnants of the time when we had only one snapshot. Change-Id: I6ff4db645d1065a0ef195834890e0774e2e2c60e Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Designer: Remove dead codeTobias Hunger2016-12-061-6/+3
| | | | | Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Designer: Avoid some useless type casts from unsigned to int and backTobias Hunger2016-12-051-2/+2
| | | | | Change-Id: Ia3b270f8ad4f3857085f1e42155972d909713c16 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Remove files not used in the buildTobias Hunger2016-11-251-5/+0
| | | | | Change-Id: Ia5410c32bc002b21b63e12709bced4f90fcde61f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Merge remote-tracking branch 'origin/4.2'Orgad Shaneh2016-11-211-6/+9
|\ | | | | | | Change-Id: I957c22020fbacb2f631220b0cdc7fa16a782798b
| * Fix updating ui resources after creating new formJarek Kobus2016-11-171-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we have tried to update resources, however it was done too early and ui file, which has been created, was not inserted to any project yet. We were connected to ProjectTree::filesAdded signal and apparently whenever it is sent the added ui file is still not inserted to the project, thought the signal informs about that fact. Now we connect to every project's fileListChanged() signal instead. Task-number: QTCREATORBUG-15560 Change-Id: I11883a0d87fdc7c46897cef68466c1038dbaefb8 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Merge remote-tracking branch 'origin/4.2'Orgad Shaneh2016-11-141-1/+4
|\ \ | |/ | | | | Change-Id: Ia98031eb87f1859c3736faa0cdd8b655e8a50689
| * qbs build: Fix the names of some Qt modules in Depends itemsChristian Kandeler2016-11-101-1/+4
| | | | | | | | | | | | | | | | It's "testlib", not "test". And "designercomponents" is actually a private module. Change-Id: I1a14d107bb5568b4f3807558ec6ed11937ac816a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | ProjectExplorer: Shorten space needed to store a FileTypeTobias Hunger2016-11-031-1/+1
|/ | | | | | | | Use class enum to shorten the FileType to quint16. This frees up a couple of bytes per FileNode and we can have many of those. Change-Id: I3a9ae25059690fefa15305a4268269647d6dc1c9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Fix marking files modified externally as modifiedJarek Kobus2016-10-212-1/+18
| | | | | | | | | It replaces 59c90e00c1e8b18d120f5b5c15b331b1ee427ace and d0c537ca759aa7facfdd0efedac5f5385d16ddb9 Task-number: QTCREATORBUG-17048 Change-Id: Ief4b1b72f2e5e7b1711be05d4ea8c03bbbf48fdf Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Revert "Replace virtual isModified method with a getter/setter/notifier"Jarek Kobus2016-10-212-4/+11
| | | | | | | | | | This doesn't fix the issue with cleaning the clear state of undo stack. This introduced the issue when ui file is opened it's marked as modified. It reverts 59c90e00c1e8b18d120f5b5c15b331b1ee427ace and d0c537ca759aa7facfdd0efedac5f5385d16ddb9 Change-Id: Ifd4ff8483d6c297461632de500a4502b1fd0871f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Replace virtual isModified method with a getter/setter/notifierJarek Kobus2016-10-172-11/+4
| | | | | | | We have lacked the setter and dedicated notifier before. Change-Id: I58845a48259d260c5cc90ae94b173c79cddcfef9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Core: Make IOptionsPage::categoryIcon a Utils::IconAlessandro Portale2016-09-201-1/+1
| | | | | | | This is necessary for themable + HighDPI icons in the options dialog. Change-Id: I8e3ff87a24591af40bb76b39cd970443d7678fae Reviewed-by: hjk <hjk@qt.io>
* Remove use of deprecated Qt algorithmsOrgad Shaneh2016-08-091-3/+5
| | | | | Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Designer: Replace QSignalMapper with a lambdaOrgad Shaneh2016-07-201-17/+6
| | | | | Change-Id: I0bf3b1e33188b98525cf717f799466994c494c11 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* qbs build: Introduce new module "qtc".Christian Kandeler2016-06-081-1/+1
| | | | | | | | | The qtc module gathers properties that used to live in the top-level project file. This is the first step towards making it possible to build plugins against an installed Qt Creator ("out of source build"). Change-Id: Ia1514cc9c888e80be01b308e908de48980fcbdb8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-254-4/+2
|\ | | | | | | Change-Id: If0ba896a083392a532f76bb26bec3540a7c17667
| * New file overlay iconsAlessandro Portale2016-04-254-4/+2
| | | | | | | | | | Change-Id: Icba67a1404b6e4604aef56def00bfe2098b8c8fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Use Core::Id in ModeManager interfacehjk2016-04-083-10/+9
| | | | | | | | | | | | | | | | Makes it more uniform to use and allows placeholder widget creation to be independent of mode creations. Change-Id: I4021bc9db7f8c78f0374c0cc3b3331506959afe4 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Wholesale conversion to #pragma oncehjk2016-03-3022-88/+22
|/ | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Remove duplicate mime type constants from CppEditorTobias Hunger2016-03-151-3/+3
| | | | | | | Use those in its dependency CppTools instead. Change-Id: I376782863784a878e84ce2cd5d0c6da68b05ab61 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Generalize support for extra compilersUlf Hermann2016-02-161-1/+3
| | | | | | | | | | | | | | | | Allow for different extra compilers which may get called to generate additional code for the code model. The build system is expected to know what files are generated from which source file and the extra compilers know how to generate the content of those files, without touching the build directory. the uic adapter is refactored to be the first such extra compiler. The extra compiler is run when an editor for its source document loses focus, or after a timeout of 1s when the source document has been changed. Change-Id: I13c110c61120c812f02639a3684144daf8979b37 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-1943-717/+507
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Wizard: Make wizards report which type of projects they can supportTobias Hunger2016-01-191-1/+0
| | | | | | | Use that information to decide whether the wizard is a File or ProjectWizard Change-Id: Ie630e206317c7e01e77c811819cb95b360a04e09 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Add support for contents() to designer documentsUlf Hermann2016-01-192-0/+8
| | | | | Change-Id: Ie8c65c7a692d752bac3b6427f66116282b486576 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Add default implementation for IDocument::fallbackSaveAs(Path|FileName)Eike Ziller2016-01-192-6/+0
| | | | | | | | | The methods are only relevant for documents without a filePath, and there was a mix of different irrelevant implementations present in subclasses. Change-Id: I4f57d306e5ddd913974cfe6ed0b4db062eb907a1 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* IDocument: Rename defaultPath and suggestedFileNameEike Ziller2016-01-142-6/+6
| | | | | | | | To fallbackSaveAsPath and fallbackSaveAsFileName. That makes it clearer what they are for, and that they actually belong to each other. Change-Id: Ie5b83b9db77d39a7fe9e979cc8f22b7f5b9101a3 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Designer: Remove a redundant separator transformationOrgad Shaneh2016-01-061-2/+1
| | | | | | | FileName::fromUserInput uses QDir::cleanPath, which transforms the separators. Change-Id: I951140e38957f0f3dd5b2ef125e76ffdb04a2da2 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* FeatureProvider: Remove Feature and FeatureSetTobias Hunger2015-12-021-1/+1
| | | | | | | | Use Core::Id for Feature and QSet<Core::Id> for FeatureSet. Change-Id: I12341036bd9eaa82589d92bd3f7d21f2e6b737bd Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* ProjectNode: Rename path() to filePath()Tobias Hunger2015-11-031-3/+3
| | | | | Change-Id: I78bb73f8c9457fd74c470eacbf54eb9195ac9681 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* C++: Fix crash after triggering completion and closing editorNikolai Kosjar2015-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | Fix use-after-free for the following case: 1. Open an editor 2. Trigger a long processing completion (e.g. simulate with QThread::msleep in CppCompletionAssistInterface::getCppSpecifics) 3. ...and immediately close the editor (e.g. with Ctrl+W) 4. Wait until it crashes. The completion thread relied on the BuiltinEditorDocumentParser object, which is deleted once the editor is closed. Fixed by sharing the ownership of that object between the *EditorDocumentProcessor and the completion assist interface. This case came up when doing tests for the bug report below. Task-number: QTCREATORBUG-14991 Change-Id: I0b009229e68fc6b7838740858cdc41a32403fe6f Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* PNG: Run pngcrush on images with iCCP or sRGB profilesTobias Hunger2015-07-031-0/+0
| | | | | | | | This quietens warnings from libPNG during startup and shrinks the image sizes. Change-Id: Ieb4cb5e8ba30b99653896e283c2fb2cc267257f2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Make Id and Feature more separateTobias Hunger2015-06-251-1/+1
| | | | | | | | Remove Id from the public interfaces of Feature and FeatureSet and disallow implicit conversions from Id to Feature. Change-Id: I33ba692ce82552f0c2b867c6c57b9c8547264243 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* Fix crash in Form class wizardTobias Hunger2015-06-231-1/+1
| | | | | | | | Run parents initializePage, not the one from our grandparent. Task-number: QTCREATORBUG-14620 Change-Id: I1ec2d424c0e6fd6d7dea1050d5d8f6b8f00d27d5 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Editor manager: Abort with a single message if file is not readable.Eike Ziller2015-06-102-10/+15
| | | | | | | | | | | | | | We show a dialog that offers opening a file in a different editor type if opening a file fails, but we should not do that if opening the file fails because it is not readable. With this change, documents now specify if they failed to open a file because reading failed, or because they could not handle the file contents. Task-number: QTCREATORBUG-14495 Change-Id: I5d4b7cfa74b87ef21b9b55bc30b3ebe2f8238dfa Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Move "open" from IEditor to IDocumentEike Ziller2015-06-103-8/+2
| | | | | | | | | | For non-editor documents it currently is not used, but for editors it makes more sense to have that on the document instead of the editor. Most actual implementations of "open" were done in the documents already anyhow, because it is needed for reloading. Change-Id: I29d4df2078995cbe80172b51a9bebeecb3afad3c Reviewed-by: David Schulz <david.schulz@theqtcompany.com>