summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpphoverhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge CppTools into CppEditorChristian Kandeler2021-09-011-74/+0
| | | | | | | | | | | | | | | | There was no proper separation of responsibilities between these plugins. In particular, CppTools had lots of editor-related functionality, so it's not clear why it was separated out in the first place. In fact, for a lot of code, it seemed quite arbitrary where it was put (just one example: switchHeaderSource() was in CppTools, wheras switchDeclarationDefinition() was in CppEditor). Merging the plugins will enable us to get rid of various convoluted pseudo-abstractions that were only introduced to keep up the artificial separation. Change-Id: Iafc3bce625b4794f6d4aa03df6cddc7f2d26716a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: Do not change the text format for tool tipsEike Ziller2019-11-061-1/+1
| | | | | | | | | We should not force the tool tip text to HTML when help content is available or when adding the F1 icon. Instead add help content and F1 icon into the tool tip layout. Change-Id: Ibe2d4fa2fb81bcda4e5aeb0d7d86dbf63fcf3ce6 Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: Privatize BaseHoverHandler::decorateToolTip()hjk2019-07-241-1/+1
| | | | | | | | Never overridden, and does not look safe to invoke more than once. Change-Id: If5f3830f3fbf26badb6335443defd628c05cf65a Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: David Schulz <david.schulz@qt.io>
* Add fallback help IDs to built-in modelEike Ziller2019-02-121-3/+6
| | | | | | Task-number: QTCREATORBUG-15959 Change-Id: I1e022450d09cb0e8565573079e412b26d09ce662 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Help: Move resolution of help from multiple candidate IDs to HelpItemEike Ziller2019-02-011-14/+3
| | | | | | | | No need for code duplication. Change-Id: I3d2c795d072b8de5818e1844b8126e526339c0da Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* CppHoverHandler: Remove unused functionEike Ziller2019-01-281-27/+0
| | | | | | Change-Id: I76aad25e16424e0d0dad16732b7562a90819c407 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Try harder to get context help in presence of diagnosticsEike Ziller2019-01-211-27/+12
| | | | | | | | | | | | | - even if there are diagnostics still try to retrieve symbol info and help - fall back to text based keyword extraction in case code model info fails - if both a code model tool tip (e.g. function signature or type) and help are available, show both Task-number: QTCREATORBUG-15959 Change-Id: Id85a223c24849ead1b25d63776d64a7da1cc73ef Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* TextEditor: Return hover handler priority by callbackNikolai Kosjar2018-01-191-1/+4
| | | | | | | ...to get rid of the asynchronous code path. Change-Id: I56377510440631b0be712333b2a4018717c86389 Reviewed-by: David Schulz <david.schulz@qt.io>
* Clang: Provide tooltipsNikolai Kosjar2018-01-161-92/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes also the query data for the help system (F1) for an identifier under cursor. Regressions (libclang changes necessary): - Function signatures do not contain default values. - Aliases are not resolved for/at: - template types - qualified name of a type Fixes/Improvements: - Resolve "auto" - On a template type, show also the template parameter. - For a typedef like typedef long long superlong; the tooltip was "long long superlong", which was confusing. Now, "long long" is shown. New: - Show first or \brief paragraph of a documentation comment. - Show size of a class at definition. - Show size of a field member in class definition. Task-number: QTCREATORBUG-11259 Change-Id: Ie1a07930d0e882015d07dc43e35bb81a685cdeb8 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* CppTools: Fix showing main help sentence in tooltipNikolai Kosjar2018-01-161-1/+1
| | | | | | | | | | | | | | | Mouse hover on e.g. "QString" is supposed to show QString The QString class provides... The sentence was removed unintentionally by commit a7e8406ced48818682e52ca208af94c18c8c837e TextEditor: Remove unneeded functions in BaseHoverHandler Change-Id: I356e66c0c21c528822c0f2e37f8058fa7b7d89bf Reviewed-by: David Schulz <david.schulz@qt.io>
* CppTools: Move CppHoverHandler to CppToolsNikolai Kosjar2018-01-161-0/+187
| | | | | | | | This is in preparation for clang code model to provide its own hover handler. Change-Id: Ifbdd96f427989bd5d1fbc4badb9c38108485c2f2 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Moved the CppHoverHandler to the CppEditor pluginThorbjørn Lindeijer2008-12-161-270/+0
| | | | | It used to be in CppTools, but since the hover handler only makes sense in the context of the C++ editor, this is a better place.
* check for !docmae2008-12-121-7/+7
|
* Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's ↵Roberto Raggi2008-12-121-2/+4
| | | | | | current state. This change removes a number of wrong usages of the CppModelManager::documents()/document().
* Implemented tooltip and lookat for #include directives.Roberto Raggi2008-12-101-0/+10
|
* Set the help id for macros to their nameThorbjørn Lindeijer2008-12-101-0/+1
| | | | Enables F1 for opening their help pages. Seems to work nicely.
* Fixed macro tooltip overriding type informationThorbjørn Lindeijer2008-12-101-10/+11
| | | | | | | The macro tooltip is supposed to be a fallback, since otherwise you won't be able to see type information for macro parameters. Reviewed-by: Roberto Raggi
* tooltip for macro definitions.Roberto Raggi2008-12-091-10/+15
|
* Fixes: - missing F1 in tooltip on first IDE startPatrick Star2008-12-041-1/+8
|
* more file cosmeticshjk2008-12-021-0/+1
|
* off-by-one in headershjk2008-12-021-1/+0
|
* end-of-line whitespace correction of the new headershjk2008-12-021-10/+11
|
* Initial importcon2008-12-021-0/+243