aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/welcome
Commit message (Collapse)AuthorAgeFilesLines
* Core: Make InfoBar::GlobalSuppressionMode an enum classAndre Hartmann2019-09-121-1/+1
| | | | | Change-Id: I859a727196a887f7699a667fbe07e1bfead4cb2b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove usages of deprecated APIsSona Kurazyan2019-09-032-5/+4
| | | | | | | | | | | | Replaced: QPalette::ColorRole::Background -> QPalette::ColorRole::Window QPalette::ColorRole::Foreground -> QPalette::ColorRole::WindowText Qt::ItemDataRole::TextColorRole -> Qt::ItemDataRole::ForegroundRole QFontMetrics::width() -> QFontMetrics::horizontalAdvance() Task-number: QTBUG-76491 Change-Id: I1302e6b569e725daa6f7be1428ffe055657fc644 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove usages of deprecated APIs of QLayoutSona Kurazyan2019-09-021-1/+1
| | | | | | | | | | Replaced: QLayout::setMargin() -> QLayout::setContentsMargins() QLayout::margin() -> QLayout::getContentsMargins() Task-number: QTBUG-76491 Change-Id: If28ef6910b3afe5d04e4746b74f9362a3e3b3c8e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add global notification area and use for UI Tour infoEike Ziller2019-08-121-21/+18
| | | | | | | | | | | | Adds a global info bar display above the main window's status bar that can be accessed via ICore::infoBar(). Replace the blocking "Take UI Tour" dialog by a notification there. Fixes: QTCREATORBUG-22819 Change-Id: I733f1bfd2d1db0295754ed2e28bb202f927d0edb Reviewed-by: hjk <hjk@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Qt Creator CMake portCristian Adam2019-05-171-0/+8
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Doc: Simplify the text that invites a developer to take a UI tourKavindra Palaraja2019-04-021-3/+3
| | | | | | Change-Id: Ib8ee635bf6eba8d4a80a0b0b5e0dfa9c6d04fe7e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Add a -notour argumenthjk2019-03-182-10/+22
| | | | | | | | Helpful for a quick startup, e.g. in cases of forced clean settings. Change-Id: I5b247d77e1157448187453c71b6c2a07b77f3889 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove icon from UI Tour dialogEike Ziller2019-03-181-1/+0
| | | | | | | | Not needed, and can look ugly in certain setups Change-Id: I3d0a6774f660a58ce697c1072065c3801629945e Fixes: QTCREATORBUG-22132 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* UI Tour: Fix pluralRobert Loehning2019-02-151-1/+1
| | | | | Change-Id: Ib84f8acda7701c5fb8efc29035c31ab047573e40 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* UI Introduction: Allow left cursor key for "back"Eike Ziller2019-02-131-2/+12
| | | | | | | Or right cursor in case of right-to-left layout direction Change-Id: I058ad4ecc5e07f572cf16abc8a94da430b65fda3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Help: Avoid multiple lookups of help id for context helpEike Ziller2019-01-291-1/+1
| | | | | | | | | | | Context help would first query the database with potential IDs, and afterwards the help plugin would look up the links for the resulting ID again. Pass the HelpItem (which potentially contains the cached links) directly to context help. Change-Id: I73bddcd3cd4eacaea412b98d53c5e5354a31f3d5 Reviewed-by: David Schulz <david.schulz@qt.io>
* UI Tour: Another GCC 5 fixEike Ziller2018-12-201-1/+1
| | | | | | | GCC 5 doesn't want to convert "const char *" to QString in these cases. Change-Id: I706a5d79932409a57992d3b13f28db3336cfb71f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Welcome: Fix qbs buildChristian Kandeler2018-12-191-0/+2
| | | | | | | | Amends 8770d83fc8. Change-Id: I45809354d3562c9360e014270d0e1570f54cf7e6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Drop unneeded indirectionhjk2018-12-182-3/+3
| | | | | Change-Id: I6ab30110eb9b490a36c1a213438761a761173ebc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* UI Tour: Fix build with GCC 5Eike Ziller2018-12-181-14/+17
| | | | | Change-Id: If41e7e0e8b2fa7aaab8abd34d95f516f7b87675d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Add general UI introductionEike Ziller2018-12-186-1/+502
| | | | | | | | | | | | | | | | Adds a Help > UI Introduction, which highlights basic aspects of the Qt Creator UI. The pages to show are defined in a format that can later move into a text based configuration file like JSON. It specifies an optional object name of a widget to highlight, a title, a brief description and a longer description (potentially with tables, lists and other simple HTML). Fixes: QTCREATORBUG-21585 Change-Id: Idb64c87e1d752bc24437588278093a96be0eeddb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Show examples page in welcome mode on first startEike Ziller2018-07-091-2/+6
| | | | | | | | | This change might help first-time users getting started. Task-number: QTCREATORBUG-20674 Change-Id: If55402160bf6b1515142bb64f281654fe4c68134 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Plugins: Re-categorize plugins which are in "Qt Creator" categoryRazi Alavizadeh2018-03-201-1/+1
| | | | | | | | | | | | | Category of DiffEditor, ImageViewer, Macros and UpdateInfo was removed, i.e., they were moved to "Utilities" category. Category of other plugins that were in "Qt Creator" category, changed to "Core". By this patch, forks of QtCreator don't need to change *.json.in files locally. Change-Id: I243c6b1831c0b880d32b2118db71f0b281590b7b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Detach Welcome page registration for global object poolhjk2018-02-071-6/+0
| | | | | | | We require individual pages to be provided in Plugin::initialize() Change-Id: I431112b523ed4cc803c07e5c6df8aa8d4ed1663b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Remove one unneeded usage of global object poolhjk2018-02-061-2/+1
| | | | | Change-Id: Iaf94a26eb49c49648ac89f7e463b8849e86cba9e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Relax the SideBar spacings a bitAlessandro Portale2018-01-031-5/+16
| | | | | | | | | | | I got a new Laptop with 720px screen height (actually 1440px with 200% scaling). That causes an unpleasant scrollbar in the SideBar, even with fullscreen maximized Qt Creator. This makes the spaces between the three content blocks shrinkable. Change-Id: I188a38580cc59b410ecf25fa2422a8d94a44b9f0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* De-emphasize PluginManager::getObjects<Type>()hjk2017-12-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... by additionally keeping local (currently non-owning) pools per "interesting" type. Current situation: - The global object pool does not scale well for looking up objects, as iteration plus qobject_cast typically iterates over all pooled objects. - User code that can use typed results from the object pool need to have access to the full type definition anyway, i.e. depend on the plugin of the target class anyway. The patch here solves the scaling problem is to have local type-specific pools to which objects register in their constructors and deregister in their destructors. This patch here does *not* change the ownership model of the pooled objects, however, it opens the possibility to change the ownership model per type (e.g. by not putting things into the global pool at all anymore and make the local pool 'owning') and the intent is to handle that in later patchs. Even without the follow-up patches this here is a performance improvement for the cases that access the local pools instead the global one, i.e. "practically all". Change-Id: Ib11a42df2c4ecf5e1155534730083a520dd1995b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Welcome: Use https-linksRobert Loehning2017-12-061-2/+2
| | | | | | Change-Id: I6eec438e5c881da8e6946b3d167e1e71f49ba574 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Show the url of link buttons as tool tipAlessandro Portale2017-10-161-1/+2
| | | | | | | Less secretiveness about what these buttons do. Change-Id: I145e5a3e62ccaffd2d1cb97614154a0ef43e1369 Reviewed-by: hjk <hjk@qt.io>
* Welcome: Remove unused imageAlessandro Portale2017-09-202-1/+0
| | | | | | | mode_edit_mask.png must have been added there by mistake Change-Id: I94c0380f267f473c1ae1347f567ea959f0752496 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Unify the dimensions for all mode/action bar iconsAlessandro Portale2017-09-194-0/+0
| | | | | | | | | | | | | | Having icons of all different kinds of sizes makes it difficult to get the painting right in all cases. It definitely fails when the szsytem is running in multi-monitor mode with different scaling factors. Unifying the dimensions makes it possible. This change should not cause any visual difference in a purely scaled or unscaled screen. Task-number: QTCREATORBUG-18869 Change-Id: I3a864c9a86036b4f4f3b350a489077b247ca85b7 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Drop unused variables and lambda capturesUlf Hermann2017-09-081-1/+1
| | | | | | | | | Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/4.4'Eike Ziller2017-09-061-1/+8
|\ | | | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: I9620928b431cefa995a06db85ecfcb92f225f732
| * Welcome: Squish: Assign object name to fix Squish testsChristian Stenger2017-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | Latest change of adding QScrollArea around Welcome's sidebar made the objects lookup fragile. Using the QScrollArea inside Squish tests helped for some but not all lookups. Simplify the lookup by assigning an object name. Change-Id: I5f37ee69bf20eaf02c9717cbaa5ba541d8ffbc17 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
| * Welcome: Remove the big minimal height requirementAlessandro Portale2017-09-051-1/+7
| | | | | | | | | | | | | | | | | | | | The SideBar in the QtWidgets based Welcome mode had a high minimal height which cause whole Qt Creator not to fit on my HD(720) screen. This change wraps the SideBar into a vertical scroll area. Change-Id: I1d70ced1bbe803fb866159dd557a401c3ab6a9b2 Reviewed-by: hjk <hjk@qt.io>
* | Fix qbs build regarding app_version.hNikolai Kosjar2017-09-061-0/+1
| | | | | | | | | | Change-Id: I2b6bd8bf10221dc3d08ada30701d5b39cc763251 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | app_version.h: Make IDE name configurableTobias Hunger2017-09-051-1/+4
|/ | | | | | Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* 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>
* Work around slow painting on macOSEike Ziller2017-06-141-0/+7
| | | | | | | | | | | | | | | | | | | | This got prominent by removing the OpenGL based QQuickWidget from the Welcome mode. Basically painting is very slow to the point of unusable when there is no OpenGL widget in a window. The moment an OpenGL widget is in the widget hierarchy of a window, painting is much faster. This is especially notable on HiDPI screens, e.g. using 1.5x or 1x scaling on 4k monitors. This is also reproducible with older versions of Qt Creator when using additional editor windows or diabling Welcome mode. Restore the status quo by adding a dummy OpenGL widget to welcome mode on macOS. Task-number: QTBUG-61384 Change-Id: Ia1a4738dd2070d70d8be42d4d717099d3933248b Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* WelcomeMode: Remove screenDependHeightDistance()Alessandro Portale2017-03-241-4/+2
| | | | | | | | That function always returns 16. Change-Id: I65cb0c62c5e553791f25e964de9eaf23a0f65687 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-221-1/+1
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Welcome: Readjust link buttons to Diana's metricsAlessandro Portale2017-02-171-1/+2
| | | | | | | The hover area is 30px high and the spacing 5px Change-Id: I252f87b1961768d54a65ddf69c8106e87790b2a3 Reviewed-by: hjk <hjk@qt.io>
* Welcome: Fix qbs buildChristian Kandeler2017-01-161-2/+2
| | | | | Change-Id: I00628699b09d7586307c8160987a170876fbac79 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Welcome: Start some performance improvementshjk2017-01-136-308/+268
| | | | | | | | | | | | | | | | | | This is essentially a widgets based re-implementation of the current design. It is still using the QAIM based interface layer between to the real data and display even though this is not needed with this approach. Removal of this layer would further reduce code size and cycle counts. For now: old new Load time 215ms 182ms delete 22ms 2ms Change-Id: I90d779a60a47a78399eaad0f1bc032d39f3ae3c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Welcome: beautify codeTim Jenssen2016-11-251-17/+11
| | | | | Change-Id: I1dff086e7fb7839aa44383f80214a4543de916d1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: set import pathes only one timeTim Jenssen2016-11-241-3/+3
| | | | | Change-Id: Ie398a8fdbea44498d03870f42a89e2b185bf51be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix that files could not be dropped onto welcome screenEike Ziller2016-11-161-0/+15
| | | | | | | | Needs to be implemented in Qt Quick itself nowadays. Task-number: QTCREATORBUG-14194 Change-Id: I0456dc5d86c03672d8b6b8f9c45799851db1b059 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Theme: Use QVariantMap for theme propertiesUlf Hermann2016-11-081-11/+1
| | | | | | | | | | | | QML can directly mirror this into a JavaScript object, so there is no need to manually copy the values into a different container. Also, QQmlPropertyMap is very expensive as it will listen to changes to any value in the map. We never use this. It would be entirely enough to update the whole map at once if we ever want to update the theme at runtime. Change-Id: Ie2b549e9af51d620801808c87d6f659cc7a06c04 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Remove all QT_VERSION_CHECKOrgad Shaneh2016-08-123-34/+8
| | | | | | | We only support Qt 5.6 now. Change-Id: If94864400545b057623e3af0743c55ea1e84e33b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Fix shortcuts in tool tipsEike Ziller2016-08-101-4/+4
| | | | | | | | They need to show the native shortcuts, not portable Change-Id: I5fbc1704c4908596aaf9cdbecf056a50e33f8fe6 Reviewed-by: Serhii Moroz <frost.asm@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Simplify Utils::sort calls that sort by memberOrgad Shaneh2016-08-091-3/+1
| | | | | Change-Id: I0937e98014f223f42fbf1c6b2bd94fb109bc8870 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Welcome: Added keyboard hotkeys to open sessions and recent projectsSerhii Moroz2016-07-281-0/+53
| | | | | | Change-Id: Ia7c1ec11b2fa3e4b61b842fd1e9e4df7aa6f7be3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Wholesale conversion to #pragma oncehjk2016-03-301-4/+1
| | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Welcome: Implement part of Diana's designAlessandro Portale2016-03-1720-0/+59
| | | | | | | | | | | Removing font variations, colors, roundings and gaps. And it is now better themable. The examlpes and tutorial selection still needs to be done. Change-Id: I520814ba9e8ce4fa1d1ca7ec14329955e8a0609a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-193-37/+27
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>