C++ settings: Don't manually break tooltip

Use automatic word-wrap instead, by making it an html tooltip. This is
also less weird when translating (though one needs the <p> tags).

Change-Id: I96f2719b46c5a0242ef6e94db38bb67a6f79ab80
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Eike Ziller
2023-02-20 15:41:43 +01:00
parent 3d65a441a0
commit 31de62fb23
3 changed files with 11 additions and 47 deletions

View File

@@ -51203,29 +51203,8 @@ in &quot;%2&quot; aus.
<translation>Codemodell</translation>
</message>
<message>
<source>If background indexing is enabled, global symbol searches will yield
more accurate results, at the cost of additional CPU load when
the project is first opened.
The indexing result is persisted in the project&apos;s build directory.
If you disable background indexing, a faster, but less accurate,
built-in indexer is used instead.
The thread priority for building the background index can be adjusted since clangd 15.
Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.
Normal Priority: Reduced priority compared to interactive work.
Low Priority: Same priority as other clangd work.</source>
<translation>Wenn sie das globale Indizieren aktivieren, liefert die globale Symbolsuche genauere Resultate,
es erhöht aber die CPU-Last beim ersten Öffnen von Projekten.
Das Resultat der Indizierung wird im Build-Verzeichnis des Projekts gespeichert.
Wenn sie das globale Indizieren deaktivieren, wird stattdessen ein schnellerer,
aber weniger genauer, integrierter Indexer benutzt.
Seit Clangd 15 können Sie die Priorität für die Indizierungs-Threads anpassen.
Hintergrund-Priorität: Niedrigste Priorität, läuft nur auf leerlaufenden CPUs. Kann &quot;Performance&quot;-Kerne ungenutzt lassen.
Normale Priorität: Geringere Priorität im Vergleich zu interaktiven Aktivitäten.
Niedrige Priorität: Dieselbe Priorität wie andere Clangd-Aktivitäten.</translation>
<source>&lt;p&gt;If background indexing is enabled, global symbol searches will yield more accurate results, at the cost of additional CPU load when the project is first opened. The indexing result is persisted in the project&apos;s build directory. If you disable background indexing, a faster, but less accurate, built-in indexer is used instead. The thread priority for building the background index can be adjusted since clangd 15.&lt;/p&gt;&lt;p&gt;Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.&lt;/p&gt;&lt;p&gt;Normal Priority: Reduced priority compared to interactive work.&lt;/p&gt;Low Priority: Same priority as other clangd work.</source>
<translation>&lt;p&gt;Wenn sie das globale Indizieren aktivieren, liefert die globale Symbolsuche genauere Resultate, es erhöht aber die CPU-Last beim ersten Öffnen von Projekten. Das Resultat der Indizierung wird im Build-Verzeichnis des Projekts gespeichert. Wenn sie das globale Indizieren deaktivieren, wird stattdessen ein schnellerer, aber weniger genauer, integrierter Indexer benutzt. Seit Clangd 15 können Sie die Priorität für die Indizierungs-Threads anpassen.&lt;/p&gt;&lt;p&gt;Hintergrund-Priorität: Niedrigste Priorität, läuft nur auf leerlaufenden CPUs. Kann &quot;Performance&quot;-Kerne ungenutzt lassen.&lt;/p&gt;&lt;p&gt;Normale Priorität: Geringere Priorität im Vergleich zu interaktiven Aktivitäten.&lt;/p&gt;Niedrige Priorität: Dieselbe Priorität wie andere Clangd-Aktivitäten.</translation>
</message>
<message>
<source>Number of worker threads used by clangd. Background indexing also uses this many worker threads.</source>

View File

@@ -11523,18 +11523,7 @@ to version control (%2)
<translation type="unfinished"></translation>
</message>
<message>
<source>If background indexing is enabled, global symbol searches will yield
more accurate results, at the cost of additional CPU load when
the project is first opened.
The indexing result is persisted in the project&apos;s build directory.
If you disable background indexing, a faster, but less accurate,
built-in indexer is used instead.
The thread priority for building the background index can be adjusted since clangd 15.
Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.
Normal Priority: Reduced priority compared to interactive work.
Low Priority: Same priority as other clangd work.</source>
<source>&lt;p&gt;If background indexing is enabled, global symbol searches will yield more accurate results, at the cost of additional CPU load when the project is first opened. The indexing result is persisted in the project&apos;s build directory. If you disable background indexing, a faster, but less accurate, built-in indexer is used instead. The thread priority for building the background index can be adjusted since clangd 15.&lt;/p&gt;&lt;p&gt;Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.&lt;/p&gt;&lt;p&gt;Normal Priority: Reduced priority compared to interactive work.&lt;/p&gt;Low Priority: Same priority as other clangd work.</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@@ -211,18 +211,14 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
{
const ClangdSettings settings(settingsData);
const QString indexingToolTip = Tr::tr(
"If background indexing is enabled, global symbol searches will yield\n"
"more accurate results, at the cost of additional CPU load when\n"
"the project is first opened.\n"
"The indexing result is persisted in the project's build directory.\n"
"\n"
"If you disable background indexing, a faster, but less accurate,\n"
"built-in indexer is used instead.\n"
"\n"
"The thread priority for building the background index can be adjusted since clangd 15.\n"
"Background Priority: Minimum priority, runs on idle CPUs. May leave 'performance' cores "
"unused.\n"
"Normal Priority: Reduced priority compared to interactive work.\n"
"<p>If background indexing is enabled, global symbol searches will yield more accurate "
"results, at the cost of additional CPU load when the project is first opened. The "
"indexing result is persisted in the project's build directory. If you disable background "
"indexing, a faster, but less accurate, built-in indexer is used instead. The thread "
"priority for building the background index can be adjusted since clangd 15.</p>"
"<p>Background Priority: Minimum priority, runs on idle CPUs. May leave 'performance' "
"cores unused.</p>"
"<p>Normal Priority: Reduced priority compared to interactive work.</p>"
"Low Priority: Same priority as other clangd work.");
const QString workerThreadsToolTip = Tr::tr(
"Number of worker threads used by clangd. Background indexing also uses this many "