diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index fa7f3d9a9f9..49b81ef2b52 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -32643,7 +32643,7 @@ Určuje chování odsazení se zřetelem k navazujícím řádkům. - Valgrind::Internal::SuppressionDialog + Valgrind Dialog Dialog @@ -32666,7 +32666,7 @@ Určuje chování odsazení se zřetelem k navazujícím řádkům. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Obecná nastavení @@ -42913,11 +42913,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Internal::CallgrindEngine - - Profiling - Profiler - + Valgrind Profiling %1 @@ -42926,11 +42922,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Internal::CallgrindTool - - Valgrind Function Profiler - Profilování funkcí pomocí Valgrind - + Valgrind Valgrind Profile uses the "callgrind" tool to record function calls when a program runs. Profilování Valgrind používá nástroj "callgrind" pro záznam volání funkcí během spuštění programu. @@ -42941,7 +42933,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Internal::CallgrindToolPrivate + Valgrind Callers Volající @@ -43034,14 +43026,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. XML Files (*.xml);;All Files (*) Soubory XML (*.xml);;Všechny soubory (*) - - Internal Error - Vnitřní chyba - - - Failed to open file for reading: %1 - Nepodařilo se otevřít soubor pro čtení: %1 - Parsing Profile Data... Zpracovávají se data profilování... @@ -43096,38 +43080,21 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Všechny funkce s poměrem zahrnutým nákladů větším než %1 (%2 jsou skryty) - - - Valgrind::Internal::MemcheckEngine - - Analyzing Memory - Provádí se rozbor paměti - Analyzing memory of %1 Provádí se rozbor paměti %1 - - - Valgrind::Internal - - %1 in %2 - %1 v %2 - in %1 v %1 - - - Valgrind::Internal::MemcheckErrorView Copy Selection Kopírovat výběr @@ -43136,9 +43103,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Suppress Error Potlačit chybu - - - Valgrind::Internal::MemcheckTool External Errors Externí chyby @@ -43191,10 +43155,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Memory Issues Potíže s pamětí - - Load External XML Log File - Nahrát externí soubor se záznamem XML - Go to previous leak. Jít na předchozí únik. @@ -43211,10 +43171,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Open Memcheck XML Log File Otevřít soubor se záznamem XML Memcheck - - XML Files (*.xml);;All Files (*) - Soubory XML (*.xml);;Všechny soubory (*) - Internal Error Vnitřní chyba @@ -43225,7 +43181,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::CallModel + Valgrind Callee Volaná funkce @@ -43244,7 +43200,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Předchozí příkaz ještě není ukončen. @@ -43283,7 +43239,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::DataModel + Valgrind Function: Funkce: @@ -43292,10 +43248,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. File: Soubor: - - Object: - Objekt: - Called: Voláno: @@ -43344,10 +43296,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Function Funkce - - Location - Umístění - Called Voláno @@ -43362,7 +43310,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 v %2 @@ -43373,7 +43321,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::ParseData + Valgrind Last-level Poslední úroveň @@ -43432,14 +43380,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Callgrind::CallgrindRunner - - Parsing Profile Data... - Zpracovávají se data profilování... - - - - Valgrind::Memcheck::MemcheckRunner + Valgrind No network interface found for remote analysis. Nebylo nalezeno žádné síťové rozhraní pro vzdálenou analýzu. @@ -43474,14 +43415,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::RemoteValgrindProcess - - Could not determine remote PID. - Nepodařilo se určit PID vzdáleného procesu. - - - - Valgrind::XmlProtocol::ErrorListModel + Valgrind No errors found Nenalezeny žádné chyby @@ -43494,10 +43428,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Location Umístění - - File - Soubor - Line Řádek @@ -43528,11 +43458,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::XmlProtocol - - Function: - Funkce: - + Valgrind Location: Umístění: @@ -43547,7 +43473,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Nepodařilo se zpracovat šestnáctkové číslo (hexadecimální) z "%1" (%2); není platné @@ -43602,7 +43528,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::XmlProtocol::StackModel + Valgrind Description Popis @@ -43615,10 +43541,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Object Objekt - - Function - Funkce - Directory Adresář @@ -43627,21 +43549,9 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. File Soubor - - Line - Řádek - - Valgrind::Internal::ValgrindEngine - - Valgrind options: %1 - Obecné volby pro Valgrind: %1 - - - Working directory: %1 - Pracovní adresář: %1 - + Valgrind Command-line arguments: %1 Argumenty příkazového řádku: %1 @@ -43680,19 +43590,12 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - Valgrind::Internal::ValgrindRunControlFactory + Valgrind Analyzer Analyzátor - - Valgrind::Internal::ValgrindBaseSettings - - Valgrind - Valgrind - - VcsBase::Internal::CommonSettingsWidget @@ -66404,7 +66307,7 @@ se vyskytla chyba - Valgrind::Internal::CallgrindRunControl + Valgrind Profiling Profiler @@ -66415,7 +66318,7 @@ se vyskytla chyba - Valgrind::Internal::MemcheckRunControl + Valgrind Analyzing Memory Provádí se rozbor paměti @@ -66473,7 +66376,7 @@ se vyskytla chyba - Valgrind::Internal::ValgrindRunControl + Valgrind Valgrind options: %1 Obecné volby pro Valgrind: %1 @@ -66504,14 +66407,14 @@ se vyskytla chyba - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::Internal::ValgrindPlugin + Valgrind Valgrind Function Profile uses the "callgrind" tool to record function calls when a program runs. Profilování funkcí s Valgrind používá nástroj "callgrind" pro záznam volání funkcí během spuštění programu. @@ -66520,10 +66423,6 @@ se vyskytla chyba Valgrind Analyze Memory uses the "memcheck" tool to find memory leaks. Rozbor paměti s Valgrind používá nástroj "memcheck" pro nalezení úniků paměti. - - Valgrind Memory Analyzer - Rozbor paměti s Valgrind - Valgrind Function Profiler Profilování funkcí pomocí Valgrind @@ -66542,14 +66441,14 @@ se vyskytla chyba - Valgrind::ValgrindProcess + Valgrind Could not determine remote PID. Nepodařilo se určit PID vzdáleného procesu. - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Nastavení Valgrind diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index 29bc4ed90eb..d8d6da8f0fc 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -41688,7 +41688,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Callgrind::CallModel + Valgrind Callee Modtager @@ -41707,7 +41707,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Forrige kommando er endnu ikke færdig. @@ -41742,7 +41742,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Callgrind::DataModel + Valgrind Function: Funktion: @@ -41816,7 +41816,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 i %2 @@ -41827,7 +41827,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Callgrind::ParseData + Valgrind Last-level Sidste-niveau @@ -41886,7 +41886,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Internal + Valgrind %1%2 %1%2 @@ -41897,7 +41897,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. Valgrind funktion-profilering bruger Callgrind-værktøjet til at optage funktionskald når et program kører. @@ -42064,7 +42064,7 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling Profilerer @@ -42073,20 +42073,16 @@ Put dens navn på en linje for sig selv, for at rydde en variabel. Profiling %1 Profilerer %1 - - Parsing Profile Data... - Parser profildata... - - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error Undertryk fejl - Valgrind::Internal::MemcheckTool + Valgrind External Errors Eksterne fejl @@ -42245,14 +42241,14 @@ Når et problem detekteres, afbrydes programmet og kan fejlrettes. - Valgrind::Internal::MemcheckToolRunner + Valgrind Analyzing Memory Analyserer hukommelse - Valgrind::Internal::SuppressionDialog + Valgrind Save Suppression Gem undertrykkelse @@ -42271,7 +42267,7 @@ Når et problem detekteres, afbrydes programmet og kan fejlrettes. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Generiske indstillinger @@ -42442,21 +42438,21 @@ Med mellemlager-simulation aktiveres begivenhedstællere: - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Valgrind-indstillinger - Valgrind::Internal::ValgrindToolRunner + Valgrind Valgrind options: %1 Valgrind-valgmuligheder: %1 @@ -42493,14 +42489,14 @@ Med mellemlager-simulation aktiveres begivenhedstællere: - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Alle funktioner med en inkluderende "cost ratio" højere end %1 (%2 er skjult) - Valgrind::ValgrindRunner + Valgrind XmlServer on %1: XmlServer på %1: @@ -42511,11 +42507,7 @@ Med mellemlager-simulation aktiveres begivenhedstællere: - Valgrind::XmlProtocol - - Function: - Funktion: - + Valgrind Location: Placering: @@ -42524,28 +42516,20 @@ Med mellemlager-simulation aktiveres begivenhedstællere: Instruction pointer: Instruktionspeger: - - Object: - Objekt: - - Valgrind::XmlProtocol::ErrorListModel + Valgrind Issue Problemstilling - - Location - Placering - %1 in function %2 %1 i funktionen %2 - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Kunne ikke parse heks-tal fra "%1" (%2) @@ -42600,7 +42584,7 @@ Med mellemlager-simulation aktiveres begivenhedstællere: - Valgrind::XmlProtocol::StackModel + Valgrind Description Beskrivelse @@ -42613,10 +42597,6 @@ Med mellemlager-simulation aktiveres begivenhedstællere: Object Objekt - - Function - Funktion - Directory Mappe diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index a847269b722..070394f2e77 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -13991,11 +13991,7 @@ Aktivieren Sie dies, wenn Sie 32bit-x86-Binärdateien erstellen wollen, ohne ein - Valgrind::XmlProtocol::ErrorListModel - - Location - Ort - + Valgrind Issue Problem @@ -14006,11 +14002,7 @@ Aktivieren Sie dies, wenn Sie 32bit-x86-Binärdateien erstellen wollen, ohne ein - Valgrind::XmlProtocol - - Function: - Funktion: - + Valgrind Location: Ort: @@ -14019,13 +14011,9 @@ Aktivieren Sie dies, wenn Sie 32bit-x86-Binärdateien erstellen wollen, ohne ein Instruction pointer: Instruktionszeiger: - - Object: - Objekt: - - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) "%1" (%2) ist keine gültige Hexadezimalzahl @@ -14080,7 +14068,7 @@ Aktivieren Sie dies, wenn Sie 32bit-x86-Binärdateien erstellen wollen, ohne ein - Valgrind::XmlProtocol::StackModel + Valgrind Description Beschreibung @@ -14093,10 +14081,6 @@ Aktivieren Sie dies, wenn Sie 32bit-x86-Binärdateien erstellen wollen, ohne ein Object Objekt - - Function - Funktion - Directory Verzeichnis @@ -14548,7 +14532,7 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. - Valgrind::Internal::SuppressionDialog + Valgrind Suppression File: Ausschluss-Datei: @@ -14567,7 +14551,7 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Allgemeine Einstellungen @@ -15122,7 +15106,7 @@ Bei vollständiger Cache-Simulation werden weitere Ereigniszähler aktiviert: - Valgrind::Callgrind::CallModel + Valgrind Callee Aufgerufene Funktion @@ -15141,7 +15125,7 @@ Bei vollständiger Cache-Simulation werden weitere Ereigniszähler aktiviert: - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Das vorangegangene Kommando ist noch nicht beendet. @@ -15176,7 +15160,7 @@ Bei vollständiger Cache-Simulation werden weitere Ereigniszähler aktiviert: - Valgrind::Callgrind::DataModel + Valgrind Function: Funktion: @@ -15748,7 +15732,7 @@ Wollen Sie die Daten vorher speichern? - Valgrind::Internal + Valgrind %1%2 %1%2 @@ -15759,14 +15743,14 @@ Wollen Sie die Daten vorher speichern? - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error Fehler unterdrücken - Valgrind::Internal::MemcheckTool + Valgrind External Errors Externe Fehler @@ -15937,7 +15921,7 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch - Valgrind::Callgrind::ParseData + Valgrind Last-level Letzte Ebene @@ -16067,7 +16051,7 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 in %2 @@ -23872,7 +23856,7 @@ Bitte schließen Sie alle laufenden Instanzen Ihrer Anwendung vor dem Erstellen. - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Einstellungen von Valgrind @@ -35785,7 +35769,7 @@ Sie werden erhalten. - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. Das Profiling von Funktionen mit Valgrind verwendet das Programm "callgrind", um Funktionsaufrufe während der Programmausführung aufzuzeichnen. @@ -40880,7 +40864,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten. - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling Profiling @@ -40889,13 +40873,9 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten. Profiling %1 Profiling von %1 - - Parsing Profile Data... - Werte Profilerdaten aus... - - Valgrind::Internal::ValgrindToolRunner + Valgrind Valgrind options: %1 Valgrind-Optionen: %1 @@ -40932,7 +40912,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten. - Valgrind::ValgrindRunner + Valgrind XmlServer on %1: XmlServer an %1: @@ -43535,7 +43515,7 @@ Die Dateien aus dem Quellverzeichnis des Android-Pakets werden in das Verzeichni - Valgrind::Internal::Visualization + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Alle Funktionen mit einem einschließlichen Kostenfaktor größer als %1 (%2 nicht gezeigt) diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index cb57eecaa38..abe016023a2 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -10168,10 +10168,6 @@ Ajouter, modifier et supprimer des filtres de documents, lesquels déterminent l Files Fichiers - - File - Fichier - Debug Déboguer @@ -36122,15 +36118,11 @@ Specifie comment retour arrière se comporte avec l'indentation. - ValgrindConfigWidget + Valgrind Common Valgrind Options Options communes de Valgrind - - Valgrind executable: - Exécutable Valgrind : - QmlJS::TypeDescriptionReader @@ -36503,7 +36495,7 @@ Specifie comment retour arrière se comporte avec l'indentation. - Valgrind::XmlProtocol::ErrorListModel + Valgrind No errors found Aucune erreur trouvée @@ -36516,14 +36508,6 @@ Specifie comment retour arrière se comporte avec l'indentation. Location Emplacement - - File - Fichier - - - Line - Ligne - Unique Unique @@ -36550,11 +36534,7 @@ Specifie comment retour arrière se comporte avec l'indentation. - Valgrind::XmlProtocol - - Function: - Fonction : - + Valgrind Location: Emplacement : @@ -36563,13 +36543,9 @@ Specifie comment retour arrière se comporte avec l'indentation. Instruction pointer: Pointeur d'instruction : - - Object: - Objet : - - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Impossible de parser le nombre hexadécimal depuis "%1" (%2) @@ -36624,7 +36600,7 @@ Specifie comment retour arrière se comporte avec l'indentation. - Valgrind::XmlProtocol::StackModel + Valgrind Description Description @@ -36637,10 +36613,6 @@ Specifie comment retour arrière se comporte avec l'indentation. Object Objet - - Function - Fonction - Directory Répertoire @@ -38431,126 +38403,6 @@ Do you want to retry? Sauvegarder la dernière macro - - Analyzer::Internal::MemcheckConfigWidget - - Valgrind Suppression File (*.supp);;All Files (*) - Fichier de suppression de Valgind (*.supp);;Tous les fichiers (*) - - - - Analyzer::Internal::MemcheckEngine - - Analyzing Memory - Peut être ajouter "en cours..." - Analyse de la mémoire - - - Analyzing memory of %1 - Analyse de la mémoire de %1 - - - - Analyzer::Internal - - %1 in %2 - %1 dans %2 - - - in %1 - dans %1 - - - - Analyzer::Internal::MemcheckErrorView - - Copy Selection - Copier la sélection - - - Suppress Error - Cacher les erreurs - - - - Analyzer::Internal::AbstractMemcheckSettings - - Memory Analysis - Analyse de la mémoire - - - - Analyzer::Internal::MemcheckTool - - External Errors - Erreurs externe - - - Suppressions - erreur cachées ? - Suppressions - - - Definite Memory Leaks - Fuites mémoire trouvées - - - Possible Memory Leaks - Fuites mémoire possibles - - - Use of Uninitialized Memory - Utilisation de mémoire non initialisée - - - Invalid Frees - peut être mettre au pluriel? - Libération mémoire invalide - - - Show issues originating outside currently opened projects. - Afficher les problèmes provenant de l'extérieur des projets actuellement ouvert. - - - These suppression files were used in the last memory analyzer run. - Ces listes "d'erreur cachées" ont été utilisées pendant la dernière analyse mémoire. - Ces fichiers de suppression ont été utilisés pendant la dernière analyse mémoire. - - - These suppression files where used in the last memory analyzer run. - Ces listes "d'erreur cachées" ont été utilisées pendant la dernière analyse mémoire. - Ces fichiers de suppression ont été utilisés pendant la dernière analyse mémoire. - - - Analyze Memory - Analyser la mémoire - - - Error Filter - Filtre d'erreur - - - Internal Error - Erreur interne - - - Error occurred parsing valgrind output: %1 - Erreur d'analyse de la sortie de Valgring : "%1" - - - - Analyzer::Internal::SuppressionDialog - - Select Suppression File - ?? - Sélectionner le fichier de suppresion - - - Save Suppression - ?? - Sauvegarder la suppression - - ProjectExplorer::Internal::GccToolChainFactory @@ -40941,41 +40793,6 @@ Voys pouvez compiler l'application et la déployer sur desktop et mobile. P Commande Valgrind - - Analyzer::Internal::ValgrindEngine - - Valgrind options: %1 - Options de Valgrind : %1 - - - Working directory: %1 - Répertoire de travail : %1 - - - Command-line arguments: %1 - Arguments de la commande : %1 - - - ** Analysing finished ** - ** Analyse terminée ** - - - ** Error: "%1" could not be started: %2 ** - ** Erreur: "%1" ne peux pas démarrer: %2 ** - - - ** Error: no valgrind executable set ** - ** Erreur : acun éxécutable de Valgring défini ** - - - ** Process Terminated ** - ** Processus terminé ** - - - Application Output - Sortie de l'application - - Analyzer::Internal::ValgrindSettings @@ -42203,7 +42020,7 @@ Influence l'indentation des lignes de continuation. - Valgrind::Internal::SuppressionDialog + Valgrind Dialog Boîte de dialogue @@ -42226,7 +42043,7 @@ Influence l'indentation des lignes de continuation. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Paramètres génériques @@ -46524,7 +46341,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::CallgrindEngine + Valgrind Profiling Profilage @@ -46536,7 +46353,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler Profileur de fonction de Valgrind @@ -46551,7 +46368,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::CallgrindToolPrivate + Valgrind Callers ou -ants ? @@ -46629,18 +46446,10 @@ Voulez-vous les ajouter au projet ?</html> Open Callgrind XML Log File Ouvrir un fichier de log XML de Callgrind - - XML Files (*.xml);;All Files (*) - Fichiers XML (*.xml);;Tous les fichiers (*) - Internal Error Erreur interne - - Failed to open file for reading: %1 - Échec lors de l'ouverture en écriture du fichier : %1 - Parsing Profile Data... Analyse des données du profil... @@ -46696,18 +46505,14 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Toutes les fonctions avec un ratio de coût inclusif supérieur à %1 (%2 sont cachés) - Valgrind::Internal::MemcheckEngine - - Analyzing Memory - Analyse de la mémoire - + Valgrind Analyzing memory of %1 @@ -46716,18 +46521,14 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal - - %1 in %2 - %1 dans %2 - + Valgrind in %1 dans %1 - Valgrind::Internal::MemcheckErrorView + Valgrind Copy Selection Copier la sélection @@ -46738,7 +46539,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::MemcheckTool + Valgrind External Errors Erreurs externe @@ -46779,10 +46580,6 @@ Voulez-vous les ajouter au projet ?</html> Error occurred parsing Valgrind output: %1 Erreur d'analyse de la sortie de Valgring : %1 - - Valgrind Memory Analyzer - Analyseur de mémoire Valgrind - Valgrind Analyze Memory uses the "memcheck" tool to find memory leaks L'analyseur de mémoire Valgrind utilise l'outil "memcheck" pour trouver les fuites mémoires @@ -46791,10 +46588,6 @@ Voulez-vous les ajouter au projet ?</html> Memory Issues Problème de mémoire - - Load External XML Log File - Charger un fichier de log XML externe - Go to previous leak. Aller à la fuite précédente. @@ -46815,17 +46608,13 @@ Voulez-vous les ajouter au projet ?</html> XML Files (*.xml);;All Files (*) Fichiers XML (*.xml);;Tous les fichiers (*) - - Internal Error - Erreur interne - Error occurred parsing valgrind output: %1 Erreur d'analyse de la sortie de Valgring : %1 - Valgrind::Callgrind::CallModel + Valgrind Callee Appelé @@ -46844,7 +46633,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. La commande précédente n'a pas fini. @@ -46883,7 +46672,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Callgrind::DataModel + Valgrind Function: Fonction : @@ -46940,10 +46729,6 @@ Voulez-vous les ajouter au projet ?</html> Function Fonction - - Location - Emplacement - Called Appelé @@ -46959,7 +46744,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 dans %2 @@ -46970,7 +46755,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Callgrind::ParseData + Valgrind Last-level Dernier niveau @@ -47029,14 +46814,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Callgrind::CallgrindRunner - - Parsing Profile Data... - Analyse des données du profil... - - - - Valgrind::Memcheck::MemcheckRunner + Valgrind No network interface found for remote analysis. Pas d'interface réseau trouvée pour l'analyse à distance. @@ -47071,14 +46849,7 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::RemoteValgrindProcess - - Could not determine remote PID. - Impossible de déterminer le PID distant. - - - - Valgrind::Internal::ValgrindEngine + Valgrind Valgrind options: %1 Options de Valgrind : %1 @@ -47121,19 +46892,12 @@ Voulez-vous les ajouter au projet ?</html> - Valgrind::Internal::ValgrindRunControlFactory + Valgrind Analyzer Analyseur - - Valgrind::Internal::ValgrindBaseSettings - - Valgrind - Valgrind - - VcsBase::Internal::CommonSettingsWidget @@ -67195,18 +66959,14 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu - Valgrind::Internal::CallgrindRunControl - - Profiling - Profilage - + Valgrind Profiling %1 Profilage de %1 - Valgrind::Internal::MemcheckRunControl + Valgrind Analyzing Memory Analyse de la mémoire @@ -67262,15 +67022,7 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu - Valgrind::Internal::ValgrindRunControl - - Valgrind options: %1 - Options de Valgrind : %1 - - - Working directory: %1 - Répertoire de travail : %1 - + Valgrind Command line arguments: %1 Arguments de la commande : %1 @@ -67293,14 +67045,14 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::Internal::ValgrindPlugin + Valgrind Valgrind Function Profile uses the "callgrind" tool to record function calls when a program runs. Le profileur Valgrind utilise l'outil "callgrind" pour enregistrer les appels de fonction quand un programme est lancé. @@ -67313,10 +67065,6 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu Valgrind Memory Analyzer Analyseur de mémoire Valgrind - - Valgrind Function Profiler - Profileur de fonction de Valgrind - Valgrind Memory Analyzer (Remote) Analyseur de mémoire Valgrind (distant) @@ -67331,14 +67079,14 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu - Valgrind::ValgrindProcess + Valgrind Could not determine remote PID. Impossible de déterminer le PID distant. - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Paramètres de Valgrind diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index b56ec747992..3e218d49288 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -9284,7 +9284,7 @@ Utječe na uvlačenje neprekinutih redaka. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Opće postavke @@ -41835,7 +41835,7 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Callgrind::CallModel + Valgrind Callee Koga se zove @@ -41854,7 +41854,7 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Prethodna naredba još nije gotova. @@ -41889,19 +41889,11 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Callgrind::DataModel - - Function: - Funkcija: - + Valgrind File: Datoteka: - - Object: - Objekt: - Called: Pozvano: @@ -41946,10 +41938,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.Function Funkcija - - Location - Mjesto - Called Pozvano @@ -41964,7 +41952,7 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 u %2 @@ -41975,7 +41963,7 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Callgrind::ParseData + Valgrind Last-level Zadnja-razina @@ -42034,7 +42022,7 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling Profiliranje @@ -42043,13 +42031,9 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.Profiling %1 Profiliranje %1 - - Parsing Profile Data... - Obrada podataka profila … - - Valgrind::Internal::CallgrindTool + Valgrind Callgrind Callgrind @@ -42220,28 +42204,28 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima. - Valgrind::Internal::Visualization + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Sve funkcije s uključenim omjerom troškova većim od %1 (%2 su skrivene) - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error Potisni grešku - Valgrind::Internal::MemcheckToolRunner + Valgrind Analyzing Memory Analiziranje memorije - Valgrind::Internal::MemcheckTool + Valgrind Memcheck @@ -42579,7 +42563,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::SuppressionDialog + Valgrind Save Suppression Spremi potiskivanje @@ -42598,7 +42582,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::ValgrindToolRunner + Valgrind Valgrind options: %1 Valgrind opcije: %1 @@ -42635,21 +42619,21 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Valgrind postavke - Valgrind::ValgrindRunner + Valgrind XmlServer on %1: XmlPoslužitelj na %1: @@ -42660,7 +42644,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol::ErrorListModel + Valgrind Issue Problem @@ -42675,7 +42659,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal + Valgrind %1%2 %1%2 @@ -42686,7 +42670,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol + Valgrind Function: Funkcija: @@ -42705,7 +42689,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) @@ -42760,7 +42744,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol::StackModel + Valgrind Description Opis @@ -42773,10 +42757,6 @@ When a problem is detected, the application is interrupted and can be debugged.< Object Objekt - - Function - Funkcija - Directory Direktorij diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 3b8ba34d318..e2950814d4a 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -7289,7 +7289,7 @@ Influences the indentation of continuation lines. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings 一般設定 @@ -33740,7 +33740,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallModel + Valgrind Callee 呼び出し先 @@ -33759,7 +33759,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. 前のコマンドが完了していません。 @@ -33798,7 +33798,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::DataModel + Valgrind Function: 関数: @@ -33871,7 +33871,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %2 の %1 @@ -33882,7 +33882,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::ParseData + Valgrind Last-level 最終レベル @@ -33941,32 +33941,14 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallgrindRunner - - Parsing Profile Data... - プロファイルデータを解析中... - - - - Valgrind::Internal::CallgrindRunControl - - Profiling - プロファイル中 - - - Profiling %1 - %1 のプロファイル中 - - - - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) 全体のコスト率が %1 より高いすべての関数 (%2 個の関数が非表示) - Valgrind::Memcheck::MemcheckRunner + Valgrind XmlServer on %1: %1 の XmlServer: @@ -33977,18 +33959,14 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Internal::MemcheckRunControl - - Analyzing Memory - メモリ解析中 - + Valgrind Analyzing memory of %1 %1 のメモリ解析中 - Valgrind::Internal + Valgrind in %1 %1 @@ -33999,14 +33977,14 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error エラーを抑制 - Valgrind::Internal::MemcheckTool + Valgrind External Errors 外部エラー @@ -34131,7 +34109,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::SuppressionDialog + Valgrind Save Suppression 抑制ファイルの保存 @@ -34150,7 +34128,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::ValgrindRunControl + Valgrind Valgrind options: %1 Valgrind オプション: %1 @@ -34163,10 +34141,6 @@ When a problem is detected, the application is interrupted and can be debugged.< Command line arguments: %1 コマンドライン引数: %1 - - Analyzing finished. - 解析が終了しました。 - Error: "%1" could not be started: %2 エラー: "%1" を開始できませんでした: %2 @@ -34180,13 +34154,6 @@ When a problem is detected, the application is interrupted and can be debugged.< プロセスが終了しました。 - - Valgrind::Internal::ValgrindOptionsPage - - Valgrind - Valgrind - - Analyzer @@ -34195,25 +34162,21 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::ValgrindProcess + Valgrind Could not determine remote PID. リモートの PID が取得できませんでした。 - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Valgrind の設定 - Valgrind::XmlProtocol::ErrorListModel - - Location - パス - + Valgrind Issue 問題 @@ -34224,11 +34187,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol - - Function: - 関数: - + Valgrind Location: パス: @@ -34237,13 +34196,9 @@ When a problem is detected, the application is interrupted and can be debugged.< Instruction pointer: 命令ポインタ: - - Object: - オブジェクト: - - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) "%1" (%2) からの16進数を解析できません @@ -34298,7 +34253,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::XmlProtocol::StackModel + Valgrind Description 説明 @@ -34311,10 +34266,6 @@ When a problem is detected, the application is interrupted and can be debugged.< Object オブジェクト - - Function - 関数 - Directory ディレクトリ @@ -46463,7 +46414,7 @@ Android パッケージソースディレクトリのファイルはビルドデ - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. Valgrind 関数プロファイラでは Callgrind ツールを使用してプログラム実行時の関数呼び出しを記録します。 @@ -57756,7 +57707,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling プロファイル中 @@ -57766,13 +57717,6 @@ Will not be applied to whitespace in comments and strings. %1 のプロファイル中 - - Valgrind::Internal::Visualization - - All functions with an inclusive cost ratio higher than %1 (%2 are hidden) - 全体のコスト率が %1 より高いすべての関数 (%2 個の関数が非表示) - - HeobDialog @@ -57804,19 +57748,6 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Internal::ValgrindToolRunner - - Valgrind options: %1 - Valgrind オプション: %1 - - - Working directory: %1 - 作業ディレクトリ: %1 - - - Command line arguments: %1 - コマンドライン引数: %1 - Analyzing finished. 解析が終了しました。 @@ -57834,17 +57765,6 @@ Will not be applied to whitespace in comments and strings. プロセスが終了しました。 - - Valgrind::ValgrindRunner - - XmlServer on %1: - %1 の XmlServer: - - - LogServer on %1: - %1 の LogServer: - - VcsBase::VcsSubmitEditorFactory diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 62140871230..46610e12266 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -14840,7 +14840,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol::ErrorListModel + Valgrind Location Położenie @@ -14855,11 +14855,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol - - Function: - Funkcja: - + Valgrind Location: Położenie: @@ -14868,13 +14864,9 @@ Local pulls are not applied to the master branch. Instruction pointer: Wskaźnik do instrukcji: - - Object: - Obiekt: - - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Błąd parsowania liczby szesnastkowej z "%1" (%2) @@ -14929,7 +14921,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol::StackModel + Valgrind Description Opis @@ -14942,10 +14934,6 @@ Local pulls are not applied to the master branch. Object Obiekt - - Function - Funkcja - Directory Katalog @@ -16799,7 +16787,7 @@ if (a && - Valgrind::Internal::SuppressionDialog + Valgrind Suppression File: Plik tłumienia: @@ -16818,7 +16806,7 @@ if (a && - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Ustawienia ogólne @@ -17400,7 +17388,7 @@ With cache simulation, further event counters are enabled: - Valgrind::Callgrind::CallModel + Valgrind Callee Zawołana @@ -17419,7 +17407,7 @@ With cache simulation, further event counters are enabled: - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Poprzednia komenda jeszcze się nie zakończyła. @@ -17454,7 +17442,7 @@ With cache simulation, further event counters are enabled: - Valgrind::Callgrind::DataModel + Valgrind Function: Funkcja: @@ -17511,10 +17499,6 @@ With cache simulation, further event counters are enabled: Function Funkcja - - Location - Położenie - Called Zawołano @@ -17529,7 +17513,7 @@ With cache simulation, further event counters are enabled: - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 w %2 @@ -17540,7 +17524,7 @@ With cache simulation, further event counters are enabled: - Valgrind::Callgrind::ParseData + Valgrind Last-level Ostatni poziom @@ -18133,14 +18117,14 @@ Do you want to save the data first? - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Wszystkie funkcje ze współczynnikiem łącznego kosztu wyższym niż %1 (ilość ukrytych: %2) - Valgrind::Internal + Valgrind %1%2 %1%2 @@ -18151,14 +18135,14 @@ Do you want to save the data first? - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error Wytłum błąd - Valgrind::Internal::MemcheckTool + Valgrind External Errors Błędy zewnętrzne @@ -28787,14 +28771,14 @@ Proszę zamknąć wszystkie instancje tej aplikacji przed uruchomieniem budowani - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Ustawienia Valgrinda @@ -39047,7 +39031,7 @@ Czy nadpisać go? - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. Valgrind Function Profiler używa narzędzia Callgrind do śledzenia wywołań funkcji w trakcie działania programu. @@ -44257,7 +44241,7 @@ Błąd: %5 - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling Profilowanie @@ -44266,20 +44250,16 @@ Błąd: %5 Profiling %1 Profilowanie %1 - - Parsing Profile Data... - Parsowanie danych profilera... - - Valgrind::Internal::MemcheckToolRunner + Valgrind Analyzing Memory Analiza pamięci - Valgrind::Internal::ValgrindToolRunner + Valgrind Valgrind options: %1 Opcje valgrinda: %1 @@ -44310,7 +44290,7 @@ Błąd: %5 - Valgrind::ValgrindRunner + Valgrind XmlServer on %1: XmlServer na %1: diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index 0aafb09209e..219484fa0ab 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -52276,7 +52276,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Callgrind::CallModel + Valgrind Callee Вызываемое @@ -52295,7 +52295,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Предыдущая команда ещё не завершена. @@ -52330,7 +52330,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Callgrind::DataModel + Valgrind Function: Функция: @@ -52405,7 +52405,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 в %2 @@ -52416,7 +52416,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Callgrind::ParseData + Valgrind Last-level Последний уровень @@ -52475,7 +52475,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Internal + Valgrind %1%2 %1%2 @@ -52486,7 +52486,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. Профайлер функций Valgrind использует утилиту Callgrind для записи вызовов функций при работе программы. @@ -52657,7 +52657,7 @@ To disable a variable, prefix the line with "#". - Valgrind::Internal::CallgrindToolRunner + Valgrind Profiling Профилирование @@ -52666,20 +52666,16 @@ To disable a variable, prefix the line with "#". Profiling %1 Профилирование %1 - - Parsing Profile Data... - Обработка данных профилирования... - - Valgrind::Internal::MemcheckErrorView + Valgrind Suppress Error Игнорировать ошибку - Valgrind::Internal::MemcheckTool + Valgrind External Errors Внешние ошибки @@ -52844,7 +52840,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::SuppressionDialog + Valgrind Suppression File: Список исключений: @@ -52863,7 +52859,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Общие настройки @@ -53043,14 +53039,14 @@ With cache simulation, further event counters are enabled: - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Настройки Valgrind - Valgrind::Internal::ValgrindToolRunner + Valgrind Valgrind options: %1 Параметры Valgrind: %1 @@ -53087,14 +53083,14 @@ With cache simulation, further event counters are enabled: - Valgrind::Internal::Visualization + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Все функции с полной ценой более %1 (%2 скрыто) - Valgrind::ValgrindRunner + Valgrind XmlServer on %1: XmlServer на %1: @@ -53105,11 +53101,7 @@ With cache simulation, further event counters are enabled: - Valgrind::XmlProtocol - - Function: - Функция: - + Valgrind Location: Размещение: @@ -53118,17 +53110,9 @@ With cache simulation, further event counters are enabled: Instruction pointer: Указатель инструкций: - - Object: - Объект: - - Valgrind::XmlProtocol::ErrorListModel - - Location - Размещение - + Valgrind Issue Проблема @@ -53139,7 +53123,7 @@ With cache simulation, further event counters are enabled: - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Не удалось разобрать шестнадцатеричное число из «%1» (%2) @@ -53194,7 +53178,7 @@ With cache simulation, further event counters are enabled: - Valgrind::XmlProtocol::StackModel + Valgrind Description Описание @@ -53207,10 +53191,6 @@ With cache simulation, further event counters are enabled: Object Объект - - Function - Функция - Directory Каталог diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index f9063edfef6..3d9e3fadfe3 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -21776,7 +21776,7 @@ Vpliva na zamik nadaljevalnih vrstic. - Valgrind::Internal::SuppressionDialog + Valgrind Dialog Pogovorno okno @@ -21801,7 +21801,7 @@ Vpliva na zamik nadaljevalnih vrstic. - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings Splošne nastavitve @@ -30254,7 +30254,7 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::CallgrindEngine + Valgrind Profiling Profiliranje @@ -30267,7 +30267,7 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler Valgrindov profilirnik funkcij @@ -30282,7 +30282,7 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::CallgrindToolPrivate + Valgrind Callers Klicatelji @@ -30397,14 +30397,14 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) Vse funkcije, ki imajo razmerje skupnega stroška višje kot %1 (%2 je skritih) - Valgrind::Internal::MemcheckEngine + Valgrind Analyzing Memory Analiziranje pomnilnika @@ -30417,18 +30417,14 @@ Preverite pravice za dostop do mape. - Valgrind::Internal - - %1 in %2 - %1 v %2 - + Valgrind in %1 v %1 - Valgrind::Internal::MemcheckErrorView + Valgrind Copy Selection Skopiraj izbor @@ -30439,7 +30435,7 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::MemcheckTool + Valgrind External Errors Zunanje napake @@ -30506,7 +30502,7 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::CallModel + Valgrind Callee Klicani @@ -30525,7 +30521,7 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Predhodni ukaz še ni zaključil. @@ -30560,19 +30556,11 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::DataModel - - Function: - Funkcija: - + Valgrind File: Datoteka: - - Object: - Objekt: - Called: Klicana: @@ -30640,7 +30628,7 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 v %2 @@ -30651,7 +30639,7 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::ParseData + Valgrind Last-level Zadnja-stopnja @@ -30710,14 +30698,14 @@ Preverite pravice za dostop do mape. - Valgrind::Callgrind::CallgrindRunner + Valgrind Parsing Profile Data... Razčlenjevanje podatkov profiliranja ... - Valgrind::Memcheck::MemcheckRunner + Valgrind No network interface found for remote analysis. Za oddaljeno analiziranje ni bil najden noben omrežni vmesnik. @@ -30732,30 +30720,18 @@ Preverite pravice za dostop do mape. - Valgrind::RemoteValgrindProcess + Valgrind Could not determine remote PID. Oddaljenega PID-a ni bilo moč ugotoviti. - Valgrind::XmlProtocol::ErrorListModel + Valgrind What Kaj - - Location - Mesto - - - File - Datoteka - - - Line - Vrstica - Unique Edinstveno @@ -30782,7 +30758,7 @@ Preverite pravice za dostop do mape. - Valgrind::XmlProtocol + Valgrind Function: Funkcija: @@ -30801,7 +30777,7 @@ Preverite pravice za dostop do mape. - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) Šestnajstiškega števila iz »%1« (%2) ni bilo moč razčleniti @@ -30856,7 +30832,7 @@ Preverite pravice za dostop do mape. - Valgrind::XmlProtocol::StackModel + Valgrind Description Opis @@ -30869,10 +30845,6 @@ Preverite pravice za dostop do mape. Object Objekt - - Function - Funkcija - Directory Mapa @@ -30887,7 +30859,7 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::ValgrindEngine + Valgrind Valgrind options: %1 Možnosti za Valgrind: %1 @@ -30930,14 +30902,14 @@ Preverite pravice za dostop do mape. - Valgrind::Internal::ValgrindRunControlFactory + Valgrind Analyzer Analizator - Valgrind::Internal::ValgrindBaseSettings + Valgrind Valgrind Valgrind diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index e271c2df4ec..faeee0c782f 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -26166,7 +26166,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallModel + Valgrind Callee @@ -26185,7 +26185,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. Попередня команда ще не завершилась. @@ -26224,26 +26224,18 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::CallgrindRunner + Valgrind Parsing Profile Data... Розбір даних профілювання... - Valgrind::Callgrind::DataModel - - Function: - Функція: - + Valgrind File: Файл: - - Object: - Об'єкт: - Called: @@ -26306,7 +26298,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::Function + Valgrind %1 in %2 %1 в %2 @@ -26317,7 +26309,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Callgrind::ParseData + Valgrind Last-level @@ -26330,83 +26322,23 @@ Will not be applied to whitespace in comments and strings. Cache Кеш - - Conditional branches - - - - Indirect branches - - - - level %1 - - - - read - - - - write - - - - mispredicted - - - - executed - - - - miss - - - - access - - - - Line: - Рядок: - - - Position: - - - Valgrind::Internal - - %1 in %2 - %1 в %2 - - - %1%2 - %1%2% - + Valgrind in %1 в %1 - Valgrind::Internal::CallgrindToolPrivate - - Functions - Функції - + Valgrind Filter... Фільтр... - - Parsing Profile Data... - Розбір даних профілювання... - - Valgrind::Internal::MemcheckErrorView + Valgrind Copy Selection Копіювати обране @@ -26417,7 +26349,7 @@ Will not be applied to whitespace in comments and strings. - Valgrind::Internal::MemcheckTool + Valgrind External Errors @@ -26541,7 +26473,7 @@ When a problem is detected, the application is interrupted and can be debugged.< - Valgrind::Internal::SuppressionDialog + Valgrind Suppression File: @@ -26558,16 +26490,6 @@ When a problem is detected, the application is interrupted and can be debugged.< Save Suppression - - - Valgrind::Internal::ValgrindBaseSettings - - Valgrind - Valgrind - - - - Valgrind::Internal::ValgrindConfigWidget Generic Settings Загальні налаштування @@ -26722,22 +26644,14 @@ With cache simulation, further event counters are enabled: - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) - Valgrind::XmlProtocol - - Function: - Функція: - - - Location: - Розташування: - + Valgrind Instruction pointer: @@ -26748,11 +26662,7 @@ With cache simulation, further event counters are enabled: - Valgrind::XmlProtocol::ErrorListModel - - Location - Розташування - + Valgrind Issue @@ -26761,21 +26671,13 @@ With cache simulation, further event counters are enabled: %1 in function %2 - - File - Файл - - - Line - Рядок - Thread ID ID нитки - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) @@ -26830,7 +26732,7 @@ With cache simulation, further event counters are enabled: - Valgrind::XmlProtocol::StackModel + Valgrind Description Опис @@ -26843,10 +26745,6 @@ With cache simulation, further event counters are enabled: Object Об'єкт - - Function - Функція - Directory Тека @@ -43124,7 +43022,7 @@ Please close all running instances of your application before starting a build.< - Valgrind::Internal::CallgrindRunControl + Valgrind Profiling @@ -43135,7 +43033,7 @@ Please close all running instances of your application before starting a build.< - Valgrind::Memcheck::MemcheckRunner + Valgrind XmlServer on %1: XmlServer на %1: @@ -43146,7 +43044,7 @@ Please close all running instances of your application before starting a build.< - Valgrind::Internal::MemcheckRunControl + Valgrind Analyzing Memory Аналіз пам'яті @@ -43204,7 +43102,7 @@ Please close all running instances of your application before starting a build.< - Valgrind::Internal::ValgrindRunControl + Valgrind Valgrind options: %1 @@ -43235,21 +43133,21 @@ Please close all running instances of your application before starting a build.< - Valgrind::Internal::ValgrindOptionsPage + Valgrind Valgrind Valgrind - Valgrind::ValgrindProcess + Valgrind Could not determine remote PID. Не вдалось визначити віддалений PID. - Valgrind::Internal::ValgrindRunConfigurationAspect + Valgrind Valgrind Settings Налаштування Valgrind @@ -56412,7 +56310,7 @@ references to elements in other files, loops, and so on.) - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler uses the Callgrind tool to record function calls when a program runs. @@ -56517,10 +56415,6 @@ references to elements in other files, loops, and so on.) Show only profiling info that originated from this project source. - - Filter... - Фільтр... - Callgrind Callgrind @@ -56569,9 +56463,5 @@ references to elements in other files, loops, and so on.) Callgrind: Failed to open file for reading: %1 - - Parsing Profile Data... - Розбір даних профілювання... - diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index f6efb91e5f1..528f6193138 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -33440,15 +33440,11 @@ Specifies how backspace interacts with indentation. - ValgrindConfigWidget + Valgrind Common Valgrind Options 常用Valgrind 命令 - - Valgrind executable: - Valgrind 可执行: - QmlJS::TypeDescriptionReader @@ -33673,7 +33669,7 @@ Specifies how backspace interacts with indentation. - Valgrind::XmlProtocol::ErrorListModel + Valgrind No errors found 没有找到错误 @@ -33682,18 +33678,6 @@ Specifies how backspace interacts with indentation. What 什么 - - Location - 位置 - - - File - 文件 - - - Line - 行号 - Unique 独一无二 @@ -33720,7 +33704,7 @@ Specifies how backspace interacts with indentation. - Valgrind::XmlProtocol + Valgrind Function: 函数: @@ -33739,7 +33723,7 @@ Specifies how backspace interacts with indentation. - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) 无法从"%1" (%2) 解析出十六进制数字 @@ -33794,7 +33778,7 @@ Specifies how backspace interacts with indentation. - Valgrind::XmlProtocol::StackModel + Valgrind Description 说明 @@ -33807,10 +33791,6 @@ Specifies how backspace interacts with indentation. Object 对象 - - Function - 函数 - Directory 目录 @@ -35492,17 +35472,6 @@ Do you want to retry? 内存分析中%1 - - Analyzer::Internal - - %1 in %2 - %1 在 %2 - - - in %1 - 在 %1 - - Analyzer::Internal::MemcheckErrorView @@ -38637,34 +38606,7 @@ Influences the indentation of continuation lines. - Valgrind::Internal::MemcheckConfigWidget - - Memory Analysis Options - 内存分析选项 - - - Backtrace frame count: - 回溯帧数: - - - Add... - 添加... - - - Remove - 删除 - - - Track origins of uninitialized memory - 跟踪原始未初始化的内存 - - - Valgrind Suppression File (*.supp);;All Files (*) - Valgrind 配置文件 (*.supp);;所有文件 (*) - - - - Valgrind::Internal::SuppressionDialog + Valgrind Dialog 对话框 @@ -38687,11 +38629,7 @@ Influences the indentation of continuation lines. - Valgrind::Internal::ValgrindConfigWidget - - Generic Settings - 一般设置 - + Valgrind Valgrind executable: Valgrind 执行档: @@ -41849,7 +41787,7 @@ Remote error output was: %1 - Valgrind::Internal::CallgrindEngine + Valgrind Profiling 正在分析 @@ -41862,7 +41800,7 @@ Remote error output was: %1 - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler Valgrind 功能分析器 @@ -41877,7 +41815,7 @@ Remote error output was: %1 - Valgrind::Internal::CallgrindToolPrivate + Valgrind Callers 调用者 @@ -41996,14 +41934,14 @@ Remote error output was: %1 - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) 包含成本比%1高的所有函数 (%2 被隐藏) - Valgrind::Internal::MemcheckEngine + Valgrind Analyzing Memory 内存分析中 @@ -42016,7 +41954,7 @@ Remote error output was: %1 - Valgrind::Internal + Valgrind %1 in %2 %1 function, %2 path @@ -42028,7 +41966,7 @@ Remote error output was: %1 - Valgrind::Internal::MemcheckErrorView + Valgrind Copy Selection 复制选择 @@ -42039,14 +41977,14 @@ Remote error output was: %1 - Valgrind::Internal::AbstractMemcheckSettings + Valgrind Memory Analysis 内存分析 - Valgrind::Internal::MemcheckTool + Valgrind External Errors 外部错误 @@ -42113,7 +42051,7 @@ Remote error output was: %1 - Valgrind::Callgrind::CallModel + Valgrind Callee 被调用者 @@ -42132,7 +42070,7 @@ Remote error output was: %1 - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. 之前的命令还没有完成。 @@ -42167,19 +42105,11 @@ Remote error output was: %1 - Valgrind::Callgrind::DataModel - - Function: - 函数: - + Valgrind File: 文件: - - Object: - 对象: - Called: 被调用: @@ -42244,18 +42174,14 @@ Remote error output was: %1 - Valgrind::Callgrind::Function - - %1 in %2 - 在 %2 中的%1 - + Valgrind %1:%2 in %3 %1: 在 %3 中的%2 - Valgrind::Callgrind::ParseData + Valgrind Last-level 最后一级 @@ -42314,14 +42240,14 @@ Remote error output was: %1 - Valgrind::Callgrind::CallgrindRunner + Valgrind Parsing Profile Data... 解析分析数据... - Valgrind::Memcheck::MemcheckRunner + Valgrind No network interface found for remote analysis. 没有找到用于远程分析的网络接口. @@ -42332,14 +42258,14 @@ Remote error output was: %1 - Valgrind::RemoteValgrindProcess + Valgrind Could not determine remote PID. 无法确定远程的PID。 - Valgrind::Internal::ValgrindEngine + Valgrind Valgrind options: %1 Valgrind 选项: %1 @@ -42382,14 +42308,14 @@ Remote error output was: %1 - Valgrind::Internal::ValgrindRunControlFactory + Valgrind Analyzer 分析器 - Valgrind::Internal::ValgrindSettings + Valgrind Generic Settings 一般设置 @@ -42514,7 +42440,7 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi - Valgrind::Internal::ValgrindBaseSettings + Valgrind Valgrind Valgrind diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 020bf6e0d9b..e412c67e693 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -11757,102 +11757,6 @@ Reason: %2 不支援在一個專案中 (%3) 建立多個元件函式庫 (%1, %2)。 - - QmakeProjectManager::Internal::S60DeviceRunConfigurationWidget - - Arguments: - 參數: - - - - QmakeProjectManager::Internal::S60DeviceDebugRunControl - - Warning: Cannot locate the symbol file belonging to %1. - - 警告:無法定位屬於 %1 的符號檔案。 - - - Launching debugger... - - 啟動除錯工具中... - - - - Debugger for Symbian Platform - Symbian 平台的除錯工具 - - - Debug on Device - 在裝置上除錯 - - - - QmakeProjectManager::Internal::S60EmulatorRunConfigurationWidget - - Executable: - 執行檔: - - - - QmakeProjectManager::Internal::S60EmulatorRunConfiguration - - %1 in Symbian Emulator - S60 emulator run configuration default display name, %1 is base pro-File name ----------- -S60 emulator run configuration default display name, %1 is base pro-File name - %1 於 Symbian 模擬器中 - - - Run on Symbian Emulator - S60 emulator run configuration default display name (no pro-file name) - 在 Symbian 模擬器中執行 - - - The .pro file is currently being parsed. - .pro 檔案正在被剖析中。 - - - The .pro file could not be parsed. - 無法剖析 .pro 檔案。 - - - - QmakeProjectManager::Internal::S60EmulatorRunConfigurationFactory - - %1 in Symbian Emulator - %1 於 Symbian 模擬器中 - - - - QmakeProjectManager::Internal::S60EmulatorRunControl - - Starting %1... - - %1 啟動中... - - - - [Qt Message] - [Qt 訊息] - - - %1 exited with code %2 - - %1 已離開,離開代碼為 %2 - - - - - QmakeProjectManager::Internal::S60Manager - - Run in Emulator - 在模擬器中執行 - - - Run on Device - 在裝置上執行 - - QmakeProjectManager::QmakeBuildConfigurationFactory @@ -19360,7 +19264,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol::ErrorListModel + Valgrind No errors found 沒有找到錯誤 @@ -19369,18 +19273,6 @@ Local pulls are not applied to the master branch. What 什麼 - - Location - 位置 - - - File - 檔案 - - - Line - 行號 - Unique 唯一 @@ -19407,11 +19299,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol - - Function: - 函式: - + Valgrind Location: 位置: @@ -19420,13 +19308,9 @@ Local pulls are not applied to the master branch. Instruction pointer: 指令指標: - - Object: - 物件: - - Valgrind::XmlProtocol::Parser + Valgrind Could not parse hex number from "%1" (%2) 無法剖析從"%1" (%2) 來的十六進位數 @@ -19481,7 +19365,7 @@ Local pulls are not applied to the master branch. - Valgrind::XmlProtocol::StackModel + Valgrind Description 描述 @@ -19494,10 +19378,6 @@ Local pulls are not applied to the master branch. Object 物件 - - Function - 函式 - Directory 目錄 @@ -22815,7 +22695,7 @@ if (a && - Valgrind::Internal::SuppressionDialog + Valgrind Suppression File: Suppression 檔案: @@ -22834,7 +22714,7 @@ if (a && - Valgrind::Internal::ValgrindConfigWidget + Valgrind Generic Settings 一般設定 @@ -24562,7 +24442,7 @@ In addition, device connectivity will be tested. - Valgrind::Internal::CallgrindEngine + Valgrind Profiling 效能分析中 @@ -24575,7 +24455,7 @@ In addition, device connectivity will be tested. - Valgrind::Internal::CallgrindTool + Valgrind Valgrind Function Profiler Valgrind 函式效能分析器 @@ -24590,7 +24470,7 @@ In addition, device connectivity will be tested. - Valgrind::Internal::CallgrindToolPrivate + Valgrind Callers 呼叫者 @@ -24709,14 +24589,14 @@ In addition, device connectivity will be tested. - Valgrind::Internal::Visualisation + Valgrind All functions with an inclusive cost ratio higher than %1 (%2 are hidden) 所有功能包含一個成本比%1高的 (%2 被隱藏) - Valgrind::Internal::MemcheckEngine + Valgrind Analyzing Memory 記憶體分析中 @@ -24729,18 +24609,14 @@ In addition, device connectivity will be tested. - Valgrind::Internal - - %1 in %2 - 於 %2 中的 %1 - + Valgrind in %1 於 %1 - Valgrind::Internal::MemcheckErrorView + Valgrind Copy Selection 複製選擇 @@ -24751,7 +24627,7 @@ In addition, device connectivity will be tested. - Valgrind::Internal::MemcheckTool + Valgrind External Errors 外部錯誤 @@ -24818,7 +24694,7 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::CallModel + Valgrind Callee 被呼叫者 @@ -24837,7 +24713,7 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::CallgrindController + Valgrind Previous command has not yet finished. 之前的命令還沒有完成. @@ -24872,7 +24748,7 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::DataModel + Valgrind Function: 函式: @@ -24949,7 +24825,7 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::Function + Valgrind %1 in %2 於 %2 中的 %1 @@ -24960,7 +24836,7 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::ParseData + Valgrind Last-level 最後等級 @@ -25019,14 +24895,14 @@ In addition, device connectivity will be tested. - Valgrind::Callgrind::CallgrindRunner + Valgrind Parsing Profile Data... 正在剖析效能分析資料... - Valgrind::Memcheck::MemcheckRunner + Valgrind No network interface found for remote analysis. 找不到用於遠端分析的網路介面。 @@ -25045,14 +24921,14 @@ In addition, device connectivity will be tested. - Valgrind::RemoteValgrindProcess + Valgrind Could not determine remote PID. 無法決定遠端的行程代碼。 - Valgrind::Internal::ValgrindEngine + Valgrind Valgrind options: %1 Valgrind 選項:%1 @@ -25179,13 +25055,6 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi - - Valgrind::Internal::ValgrindBaseSettings - - Valgrind - Valgrind - - text diff --git a/src/plugins/valgrind/callgrind/callgrindabstractmodel.h b/src/plugins/valgrind/callgrind/callgrindabstractmodel.h index 4730308c08c..105c8ed7c8c 100644 --- a/src/plugins/valgrind/callgrind/callgrindabstractmodel.h +++ b/src/plugins/valgrind/callgrind/callgrindabstractmodel.h @@ -27,8 +27,7 @@ #include -namespace Valgrind { -namespace Callgrind { +namespace Valgrind::Callgrind { class ParseData; @@ -40,5 +39,4 @@ enum AbstractModelRoles NextCustomRole }; -} // Callgrind -} // Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/callgrind/callgrindcallmodel.cpp b/src/plugins/valgrind/callgrind/callgrindcallmodel.cpp index 28add4b4256..cb4ef188889 100644 --- a/src/plugins/valgrind/callgrind/callgrindcallmodel.cpp +++ b/src/plugins/valgrind/callgrind/callgrindcallmodel.cpp @@ -28,13 +28,13 @@ #include "callgrindfunctioncall.h" #include "callgrindfunction.h" #include "callgrindparsedata.h" +#include "valgrindtr.h" #include #include -namespace Valgrind { -namespace Callgrind { +namespace Valgrind::Callgrind { class CallModel::Private { @@ -205,16 +205,15 @@ QVariant CallModel::headerData(int section, Qt::Orientation orientation, int rol } if (section == CalleeColumn) - return tr("Callee"); + return Tr::tr("Callee"); else if (section == CallerColumn) - return tr("Caller"); + return Tr::tr("Caller"); else if (section == CostColumn) - return tr("Cost"); + return Tr::tr("Cost"); else if (section == CallsColumn) - return tr("Calls"); + return Tr::tr("Calls"); return QVariant(); } -} // namespace Callgrind -} // namespace Valgrind +} // Valgrind::Callgrind diff --git a/src/plugins/valgrind/callgrind/callgrindcallmodel.h b/src/plugins/valgrind/callgrind/callgrindcallmodel.h index b10e872844b..4cf8a5977df 100644 --- a/src/plugins/valgrind/callgrind/callgrindcallmodel.h +++ b/src/plugins/valgrind/callgrind/callgrindcallmodel.h @@ -25,12 +25,11 @@ #pragma once -#include - #include "callgrindabstractmodel.h" -namespace Valgrind { -namespace Callgrind { +#include + +namespace Valgrind::Callgrind { class FunctionCall; class Function; @@ -83,5 +82,4 @@ private: Private *d; }; -} // namespace Callgrind -} // namespace Valgrind +} // Valgrind::Callgrind diff --git a/src/plugins/valgrind/callgrind/callgrindcostitem.cpp b/src/plugins/valgrind/callgrind/callgrindcostitem.cpp index 91d3eba74cd..2e82f171d1f 100644 --- a/src/plugins/valgrind/callgrind/callgrindcostitem.cpp +++ b/src/plugins/valgrind/callgrind/callgrindcostitem.cpp @@ -25,19 +25,17 @@ #include "callgrindcostitem.h" +#include "callgrindparsedata.h" +#include "callgrindfunctioncall.h" + #include #include #include -#include "callgrindparsedata.h" -#include "callgrindfunctioncall.h" +namespace Valgrind::Callgrind { -namespace Valgrind { -namespace Callgrind { - -//BEGIN CostItem::Private - -class CostItem::Private { +class CostItem::Private +{ public: Private(ParseData *data); ~Private(); @@ -132,5 +130,4 @@ void CostItem::setDifferingFile(qint64 fileId) d->m_differingFileId = fileId; } -} // namespace Callgrind -} // namespace Valgrind +} // Valgrind::Callgrind diff --git a/src/plugins/valgrind/callgrind/callgrindcostitem.h b/src/plugins/valgrind/callgrind/callgrindcostitem.h index 6f0f6792e81..4e95ca9dee2 100644 --- a/src/plugins/valgrind/callgrind/callgrindcostitem.h +++ b/src/plugins/valgrind/callgrind/callgrindcostitem.h @@ -27,8 +27,7 @@ #include -namespace Valgrind { -namespace Callgrind { +namespace Valgrind::Callgrind { class FunctionCall; class ParseData; @@ -84,5 +83,4 @@ private: Private *d; }; -} // namespace Callgrind -} // namespace Valgrind +} // Valgrind::Callgrind diff --git a/src/plugins/valgrind/callgrind/callgrindcycledetection.cpp b/src/plugins/valgrind/callgrind/callgrindcycledetection.cpp index 79443aa5b65..e513fe34d16 100644 --- a/src/plugins/valgrind/callgrind/callgrindcycledetection.cpp +++ b/src/plugins/valgrind/callgrind/callgrindcycledetection.cpp @@ -34,9 +34,7 @@ #include -namespace Valgrind { -namespace Callgrind { -namespace Internal { +namespace Valgrind::Callgrind::Internal { CycleDetection::CycleDetection(ParseData *data) : m_data(data) @@ -110,6 +108,4 @@ void CycleDetection::tarjanForChildNode(Node *node, Node *childNode) } } -} // namespace Internal -} // namespace Callgrind -} // namespace Valgrind +} // namespace Valgrind::Callgrind::Internal diff --git a/src/plugins/valgrind/callgrind/callgrindcycledetection.h b/src/plugins/valgrind/callgrind/callgrindcycledetection.h index eddc6fee0a3..b858916a98d 100644 --- a/src/plugins/valgrind/callgrind/callgrindcycledetection.h +++ b/src/plugins/valgrind/callgrind/callgrindcycledetection.h @@ -28,8 +28,7 @@ #include #include -namespace Valgrind { -namespace Callgrind { +namespace Valgrind::Callgrind { class Function; class ParseData; @@ -72,5 +71,4 @@ private: } // namespace Internal -} // namespace Callgrind -} // namespace Valgrind +} // namespace Valgrind::Callgrind diff --git a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp index b64ee8764d0..4a4acb14e79 100644 --- a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp +++ b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp @@ -28,6 +28,7 @@ #include "callgrindparsedata.h" #include "callgrindfunction.h" #include "callgrindcostitem.h" +#include "valgrindtr.h" #include #include @@ -230,8 +231,8 @@ QVariant DataModel::data(const QModelIndex &index, int role) const QString entry = "
%1
%2
\n"; // body, function info first - ret += entry.arg(tr("Function:")).arg(func->name().toHtmlEscaped()); - ret += entry.arg(tr("File:")).arg(func->file()); + ret += entry.arg(Tr::tr("Function:")).arg(func->name().toHtmlEscaped()); + ret += entry.arg(Tr::tr("File:")).arg(func->file()); if (!func->costItems().isEmpty()) { const CostItem *firstItem = func->costItems().constFirst(); for (int i = 0; i < d->m_data->positions().size(); ++i) { @@ -239,17 +240,17 @@ QVariant DataModel::data(const QModelIndex &index, int role) const .arg(firstItem->position(i)); } } - ret += entry.arg(tr("Object:")).arg(func->object()); - ret += entry.arg(tr("Called:")).arg(tr("%n time(s)", nullptr, func->called())); + ret += entry.arg(Tr::tr("Object:")).arg(func->object()); + ret += entry.arg(Tr::tr("Called:")).arg(Tr::tr("%n time(s)", nullptr, func->called())); ret += "

"; // self/inclusive costs entry = "%1%2"; ret += ""; ret += ""; - ret += ""; - ret += entry.arg(tr("Self costs")).arg(tr("(%)")); - ret += entry.arg(tr("Incl. costs")).arg(tr("(%)")); + ret += ""; + ret += entry.arg(Tr::tr("Self costs")).arg(Tr::tr("(%)")); + ret += entry.arg(Tr::tr("Incl. costs")).arg(Tr::tr("(%)")); ret += ""; ret += ""; for (int i = 0; i < d->m_data->events().size(); ++i) { @@ -264,8 +265,8 @@ QVariant DataModel::data(const QModelIndex &index, int role) const ret += ""; - ret += entry.arg(selfCost).arg(tr("(%1%)").arg(relSelfCost)); - ret += entry.arg(inclCost).arg(tr("(%1%)").arg(relInclCost)); + ret += entry.arg(selfCost).arg(Tr::tr("(%1%)").arg(relSelfCost)); + ret += entry.arg(inclCost).arg(Tr::tr("(%1%)").arg(relInclCost)); ret += ""; } ret += "
" + tr("Events") + "" + Tr::tr("Events") + "
" + noWrap(ParseData::prettyStringForEvent(d->m_data->events().at(i))) + "
"; @@ -317,22 +318,22 @@ QVariant DataModel::headerData(int section, Qt::Orientation orientation, int rol const QString prettyCostStr = ParseData::prettyStringForEvent(d->m_data->events().at(d->m_event)); if (section == SelfCostColumn) - return tr("%1 cost spent in a given function excluding costs from called functions.").arg(prettyCostStr); + return Tr::tr("%1 cost spent in a given function excluding costs from called functions.").arg(prettyCostStr); if (section == InclusiveCostColumn) - return tr("%1 cost spent in a given function including costs from called functions.").arg(prettyCostStr); + return Tr::tr("%1 cost spent in a given function including costs from called functions.").arg(prettyCostStr); return QVariant(); } if (section == NameColumn) - return tr("Function"); + return Tr::tr("Function"); if (section == LocationColumn) - return tr("Location"); + return Tr::tr("Location"); if (section == CalledColumn) - return tr("Called"); + return Tr::tr("Called"); if (section == SelfCostColumn) - return tr("Self Cost: %1").arg(d->m_data ? d->m_data->events().value(d->m_event) : QString()); + return Tr::tr("Self Cost: %1").arg(d->m_data ? d->m_data->events().value(d->m_event) : QString()); if (section == InclusiveCostColumn) - return tr("Incl. Cost: %1").arg(d->m_data ? d->m_data->events().value(d->m_event) : QString()); + return Tr::tr("Incl. Cost: %1").arg(d->m_data ? d->m_data->events().value(d->m_event) : QString()); return QVariant(); } diff --git a/src/plugins/valgrind/callgrind/callgrindfunction.cpp b/src/plugins/valgrind/callgrind/callgrindfunction.cpp index 9a7f4fe81bc..e8bf79f26db 100644 --- a/src/plugins/valgrind/callgrind/callgrindfunction.cpp +++ b/src/plugins/valgrind/callgrind/callgrindfunction.cpp @@ -203,9 +203,9 @@ QString Function::location() const if (f.isEmpty() || f == "???") return o; if (pos.isEmpty()) - return QCoreApplication::translate("Valgrind::Callgrind::Function", "%1 in %2").arg(f, o); + return QCoreApplication::translate("Valgrind", "%1 in %2").arg(f, o); - return QCoreApplication::translate("Valgrind::Callgrind::Function", "%1:%2 in %3").arg(f, pos, o); + return QCoreApplication::translate("Valgrind", "%1:%2 in %3").arg(f, pos, o); } int Function::lineNumber() const diff --git a/src/plugins/valgrind/callgrind/callgrindparsedata.cpp b/src/plugins/valgrind/callgrind/callgrindparsedata.cpp index ba1e4258023..d2a72f2741c 100644 --- a/src/plugins/valgrind/callgrind/callgrindparsedata.cpp +++ b/src/plugins/valgrind/callgrind/callgrindparsedata.cpp @@ -28,6 +28,7 @@ #include "callgrindfunction.h" #include "callgrindcycledetection.h" #include "callgrindfunctioncycle.h" +#include "valgrindtr.h" #include @@ -39,10 +40,8 @@ namespace Valgrind { namespace Callgrind { -//BEGIN ParseData::Private - -class ParseData::Private { - Q_DECLARE_TR_FUNCTIONS(Valgrind::Callgrind::ParseData) +class ParseData::Private +{ public: Private(ParseData *q, const QString &fileName) : m_fileName(fileName) @@ -177,27 +176,27 @@ QString ParseData::prettyStringForEvent(const QString &event) QString type; if (event.contains('L')) - type = ParseData::Private::tr("Last-level"); // first, "L" overwrites the others + type = Tr::tr("Last-level"); // first, "L" overwrites the others else if (event.at(0) == 'I') - type = ParseData::Private::tr("Instruction"); + type = Tr::tr("Instruction"); else if (event.at(0) == 'D') - type = ParseData::Private::tr("Cache"); + type = Tr::tr("Cache"); else if (event.left(2) == "Bc") - type = ParseData::Private::tr("Conditional branches"); + type = Tr::tr("Conditional branches"); else if (event.left(2) == "Bi") - type = ParseData::Private::tr("Indirect branches"); + type = Tr::tr("Indirect branches"); QStringList prettyString; prettyString << type; if (event.at(1).isNumber()) - prettyString << ParseData::Private::tr("level %1").arg(event.at(1)); - prettyString << (isRead ? ParseData::Private::tr("read") : ParseData::Private::tr("write")); + prettyString << Tr::tr("level %1").arg(event.at(1)); + prettyString << (isRead ? Tr::tr("read") : Tr::tr("write")); if (event.at(0) == 'B') - prettyString << (isMiss ? ParseData::Private::tr("mispredicted") : ParseData::Private::tr("executed")); + prettyString << (isMiss ? Tr::tr("mispredicted") : Tr::tr("executed")); else - prettyString << (isMiss ? ParseData::Private::tr("miss") : ParseData::Private::tr("access")); + prettyString << (isMiss ? Tr::tr("miss") : Tr::tr("access")); // add original abbreviation prettyString << '(' + event + ')'; @@ -218,10 +217,10 @@ void ParseData::setEvents(const QStringList &events) QString ParseData::prettyStringForPosition(const QString &position) { if (position == "line") - return ParseData::Private::tr("Line:"); // as in: "line number" - else if (position == "instr") - return ParseData::Private::tr("Instruction"); // as in: "instruction address" - return ParseData::Private::tr("Position:"); // never reached, in theory + return Tr::tr("Line:"); // as in: "line number" + if (position == "instr") + return Tr::tr("Instruction"); // as in: "instruction address" + return Tr::tr("Position:"); // never reached, in theory } QStringList ParseData::positions() const diff --git a/src/plugins/valgrind/callgrindcostdelegate.cpp b/src/plugins/valgrind/callgrindcostdelegate.cpp index 921c9e3164b..c403f8ebb3e 100644 --- a/src/plugins/valgrind/callgrindcostdelegate.cpp +++ b/src/plugins/valgrind/callgrindcostdelegate.cpp @@ -25,11 +25,9 @@ #include "callgrindcostdelegate.h" -#include "callgrindcostview.h" #include "callgrindhelper.h" #include "callgrind/callgrindabstractmodel.h" -#include "callgrind/callgrindparsedata.h" #include diff --git a/src/plugins/valgrind/callgrindengine.cpp b/src/plugins/valgrind/callgrindengine.cpp index 8aafa076ae7..4874ec05889 100644 --- a/src/plugins/valgrind/callgrindengine.cpp +++ b/src/plugins/valgrind/callgrindengine.cpp @@ -29,6 +29,7 @@ #include #include +#include #include @@ -113,13 +114,13 @@ QStringList CallgrindToolRunner::toolArguments() const QString CallgrindToolRunner::progressTitle() const { - return tr("Profiling"); + return Tr::tr("Profiling"); } void CallgrindToolRunner::start() { const FilePath executable = runControl()->commandLine().executable(); - appendMessage(tr("Profiling %1").arg(executable.toUserOutput()), NormalMessageFormat); + appendMessage(Tr::tr("Profiling %1").arg(executable.toUserOutput()), NormalMessageFormat); return ValgrindToolRunner::start(); } @@ -188,7 +189,7 @@ static QString toOptionString(CallgrindToolRunner::Option option) void CallgrindToolRunner::run(Option option) { if (m_controllerProcess) { - showStatusMessage(tr("Previous command has not yet finished.")); + showStatusMessage(Tr::tr("Previous command has not yet finished.")); return; } @@ -199,16 +200,16 @@ void CallgrindToolRunner::run(Option option) switch (option) { case CallgrindToolRunner::Dump: - showStatusMessage(tr("Dumping profile data...")); + showStatusMessage(Tr::tr("Dumping profile data...")); break; case CallgrindToolRunner::ResetEventCounters: - showStatusMessage(tr("Resetting event counters...")); + showStatusMessage(Tr::tr("Resetting event counters...")); break; case CallgrindToolRunner::Pause: - showStatusMessage(tr("Pausing instrumentation...")); + showStatusMessage(Tr::tr("Pausing instrumentation...")); break; case CallgrindToolRunner::UnPause: - showStatusMessage(tr("Unpausing instrumentation...")); + showStatusMessage(Tr::tr("Unpausing instrumentation...")); break; default: break; @@ -236,7 +237,7 @@ void CallgrindToolRunner::controllerProcessDone() m_controllerProcess.release()->deleteLater(); if (result != ProcessResult::FinishedWithSuccess) { - showStatusMessage(tr("An error occurred while trying to run %1: %2").arg(CALLGRIND_CONTROL_BINARY).arg(error)); + showStatusMessage(Tr::tr("An error occurred while trying to run %1: %2").arg(CALLGRIND_CONTROL_BINARY).arg(error)); qWarning() << "Controller exited abnormally:" << error; return; } @@ -251,12 +252,12 @@ void CallgrindToolRunner::controllerProcessDone() m_paused = true; break; case Dump: - showStatusMessage(tr("Callgrind dumped profiling info")); + showStatusMessage(Tr::tr("Callgrind dumped profiling info")); triggerParse(); break; case UnPause: m_paused = false; - showStatusMessage(tr("Callgrind unpaused.")); + showStatusMessage(Tr::tr("Callgrind unpaused.")); break; default: break; @@ -271,7 +272,7 @@ void CallgrindToolRunner::triggerParse() { TemporaryFile dataFile("callgrind.out"); if (!dataFile.open()) { - showStatusMessage(tr("Failed opening temp file...")); + showStatusMessage(Tr::tr("Failed opening temp file...")); return; } m_hostOutputFile = FilePath::fromString(dataFile.fileName()); @@ -280,7 +281,7 @@ void CallgrindToolRunner::triggerParse() const auto afterCopy = [this](bool res) { QTC_CHECK(res); QTC_ASSERT(m_hostOutputFile.exists(), return); - showStatusMessage(tr("Parsing Profile Data...")); + showStatusMessage(Tr::tr("Parsing Profile Data...")); m_parser.parse(m_hostOutputFile); }; m_valgrindOutputFile.asyncCopyFile(afterCopy, m_hostOutputFile); diff --git a/src/plugins/valgrind/callgrindtextmark.cpp b/src/plugins/valgrind/callgrindtextmark.cpp index 32418ce92cc..a35ace1e1bd 100644 --- a/src/plugins/valgrind/callgrindtextmark.cpp +++ b/src/plugins/valgrind/callgrindtextmark.cpp @@ -29,14 +29,15 @@ #include "callgrind/callgrinddatamodel.h" #include "callgrind/callgrindfunction.h" +#include "valgrindtr.h" + +#include #include #include #include #include -#include - using namespace Utils; using namespace Valgrind::Internal; using namespace Valgrind::Callgrind; @@ -51,7 +52,7 @@ CallgrindTextMark::CallgrindTextMark(const QPersistentModelIndex &index, setPriority(TextEditor::TextMark::HighPriority); const Function *f = function(); const QString inclusiveCost = QLocale::system().toString(f->inclusiveCost(0)); - setLineAnnotation(tr("%1 (Called: %2; Incl. Cost: %3)") + setLineAnnotation(Tr::tr("%1 (Called: %2; Incl. Cost: %3)") .arg(CallgrindHelper::toPercent(costs() * 100.0f)) .arg(f->called()) .arg(inclusiveCost)); diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index 4819d356f06..3f2afc1f02a 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -30,6 +30,7 @@ #include "callgrindengine.h" #include "callgrindtextmark.h" #include "callgrindvisualisation.h" +#include "valgrindtr.h" #include #include @@ -215,7 +216,7 @@ public: QString m_toggleCollectFunction; bool m_toolBusy = false; - Perspective m_perspective{"Callgrind.Perspective", CallgrindTool::tr("Callgrind")}; + Perspective m_perspective{"Callgrind.Perspective", Tr::tr("Callgrind")}; RunWorkerFactory callgrindRunWorkerFactory{ RunWorkerFactory::make(), @@ -248,11 +249,11 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_stopAction = Debugger::createStopAction(); ActionContainer *menu = ActionManager::actionContainer(Debugger::Constants::M_DEBUG_ANALYZER); - QString toolTip = CallgrindTool::tr("Valgrind Function Profiler uses the " + QString toolTip = Tr::tr("Valgrind Function Profiler uses the " "Callgrind tool to record function calls when a program runs."); if (!Utils::HostOsInfo::isWindowsHost()) { - auto action = new QAction(CallgrindTool::tr("Valgrind Function Profiler"), this); + auto action = new QAction(Tr::tr("Valgrind Function Profiler"), this); action->setToolTip(toolTip); menu->addAction(ActionManager::registerAction(action, CallgrindLocalActionId), Debugger::Constants::G_ANALYZER_TOOLS); @@ -268,7 +269,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() }); } - auto action = new QAction(CallgrindTool::tr("Valgrind Function Profiler (External Application)"), this); + auto action = new QAction(Tr::tr("Valgrind Function Profiler (External Application)"), this); action->setToolTip(toolTip); menu->addAction(ActionManager::registerAction(action, CallgrindRemoteActionId), Debugger::Constants::G_ANALYZER_REMOTE_TOOLS); @@ -296,7 +297,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() Context analyzerContext = Context(Debugger::Constants::C_DEBUGMODE); editorContextMenu->addSeparator(analyzerContext); - auto action = new QAction(CallgrindTool::tr("Profile Costs of This Function and Its Callees"), this); + auto action = new QAction(Tr::tr("Profile Costs of This Function and Its Callees"), this); action->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL.icon()); connect(action, &QAction::triggered, this, &CallgrindToolPrivate::handleShowCostsOfFunction); @@ -315,14 +316,14 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_visualization = new Visualization; m_visualization->setFrameStyle(QFrame::NoFrame); m_visualization->setObjectName("Valgrind.CallgrindTool.Visualisation"); - m_visualization->setWindowTitle(CallgrindTool::tr("Visualization")); + m_visualization->setWindowTitle(Tr::tr("Visualization")); m_visualization->setModel(&m_dataModel); connect(m_visualization, &Visualization::functionActivated, this, &CallgrindToolPrivate::visualisationFunctionSelected); m_callersView = new CostView; m_callersView->setObjectName("Valgrind.CallgrindTool.CallersView"); - m_callersView->setWindowTitle(CallgrindTool::tr("Callers")); + m_callersView->setWindowTitle(Tr::tr("Callers")); m_callersView->setSettings(coreSettings, "Valgrind.CallgrindTool.CallersView"); m_callersView->sortByColumn(CallModel::CostColumn, Qt::DescendingOrder); m_callersView->setFrameStyle(QFrame::NoFrame); @@ -335,7 +336,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_calleesView = new CostView; m_calleesView->setObjectName("Valgrind.CallgrindTool.CalleesView"); - m_calleesView->setWindowTitle(CallgrindTool::tr("Callees")); + m_calleesView->setWindowTitle(Tr::tr("Callees")); m_calleesView->setSettings(coreSettings, "Valgrind.CallgrindTool.CalleesView"); m_calleesView->sortByColumn(CallModel::CostColumn, Qt::DescendingOrder); m_calleesView->setFrameStyle(QFrame::NoFrame); @@ -348,7 +349,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_flatView = new CostView; m_flatView->setObjectName("Valgrind.CallgrindTool.FlatView"); - m_flatView->setWindowTitle(CallgrindTool::tr("Functions")); + m_flatView->setWindowTitle(Tr::tr("Functions")); m_flatView->setSettings(coreSettings, "Valgrind.CallgrindTool.FlatView"); m_flatView->sortByColumn(DataModel::SelfCostColumn, Qt::DescendingOrder); m_flatView->setFrameStyle(QFrame::NoFrame); @@ -368,7 +369,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() // load external log file action = m_loadExternalLogFile = new QAction(this); action->setIcon(Utils::Icons::OPENFILE_TOOLBAR.icon()); - action->setToolTip(CallgrindTool::tr("Load External Log File")); + action->setToolTip(Tr::tr("Load External Log File")); connect(action, &QAction::triggered, this, &CallgrindToolPrivate::loadExternalLogFile); action = m_startKCachegrind = new QAction(this); @@ -376,7 +377,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() const Utils::Icon kCachegrindIcon({{":/valgrind/images/kcachegrind.png", Theme::IconsBaseColor}}); action->setIcon(kCachegrindIcon.icon()); - action->setToolTip(CallgrindTool::tr("Open results in KCachegrind.")); + action->setToolTip(Tr::tr("Open results in KCachegrind.")); connect(action, &QAction::triggered, this, [this, settings] { QtcProcess::startDetached({FilePath::fromString(settings->kcachegrindExecutable.value()), { m_lastFileName }}); }); @@ -385,30 +386,30 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_dumpAction = action = new QAction(this); action->setDisabled(true); action->setIcon(Utils::Icons::REDO.icon()); - //action->setText(CallgrindTool::tr("Dump")); - action->setToolTip(CallgrindTool::tr("Request the dumping of profile information. This will update the Callgrind visualization.")); + //action->setText(Tr::tr("Dump")); + action->setToolTip(Tr::tr("Request the dumping of profile information. This will update the Callgrind visualization.")); connect(action, &QAction::triggered, this, &CallgrindToolPrivate::slotRequestDump); // reset action m_resetAction = action = new QAction(this); action->setDisabled(true); action->setIcon(Utils::Icons::RELOAD_TOOLBAR.icon()); - //action->setText(CallgrindTool::tr("Reset")); - action->setToolTip(CallgrindTool::tr("Reset all event counters.")); + //action->setText(Tr::tr("Reset")); + action->setToolTip(Tr::tr("Reset all event counters.")); connect(action, &QAction::triggered, this, &CallgrindToolPrivate::resetRequested); // pause action m_pauseAction = action = new QAction(this); action->setCheckable(true); action->setIcon(Utils::Icons::INTERRUPT_SMALL_TOOLBAR.icon()); - //action->setText(CallgrindTool::tr("Ignore")); - action->setToolTip(CallgrindTool::tr("Pause event logging. No events are counted which will speed up program execution during profiling.")); + //action->setText(Tr::tr("Ignore")); + action->setToolTip(Tr::tr("Pause event logging. No events are counted which will speed up program execution during profiling.")); connect(action, &QAction::toggled, this, &CallgrindToolPrivate::pauseToggled); // discard data action m_discardAction = action = new QAction(this); action->setIcon(Utils::Icons::CLEAN_TOOLBAR.icon()); - action->setToolTip(CallgrindTool::tr("Discard Data")); + action->setToolTip(Tr::tr("Discard Data")); connect(action, &QAction::triggered, this, [this](bool) { clearTextMarks(); doClear(true); @@ -419,19 +420,19 @@ CallgrindToolPrivate::CallgrindToolPrivate() m_goBack = action = new QAction(this); action->setDisabled(true); action->setIcon(Utils::Icons::PREV_TOOLBAR.icon()); - action->setToolTip(CallgrindTool::tr("Go back one step in history. This will select the previously selected item.")); + action->setToolTip(Tr::tr("Go back one step in history. This will select the previously selected item.")); connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goBack); // go forward m_goNext = action = new QAction(this); action->setDisabled(true); action->setIcon(Utils::Icons::NEXT_TOOLBAR.icon()); - action->setToolTip(CallgrindTool::tr("Go forward one step in history.")); + action->setToolTip(Tr::tr("Go forward one step in history.")); connect(action, &QAction::triggered, &m_stackBrowser, &StackBrowser::goNext); // event selection m_eventCombo = new QComboBox; - m_eventCombo->setToolTip(CallgrindTool::tr("Selects which events from the profiling data are shown and visualized.")); + m_eventCombo->setToolTip(Tr::tr("Selects which events from the profiling data are shown and visualized.")); connect(m_eventCombo, QOverload::of(&QComboBox::currentIndexChanged), this, &CallgrindToolPrivate::setCostEvent); updateEventCombo(); @@ -455,23 +456,23 @@ CallgrindToolPrivate::CallgrindToolPrivate() auto group = new QActionGroup(this); // Show costs as absolute numbers - m_costAbsolute = new QAction(CallgrindTool::tr("Absolute Costs"), this); - m_costAbsolute->setToolTip(CallgrindTool::tr("Show costs as absolute numbers.")); + m_costAbsolute = new QAction(Tr::tr("Absolute Costs"), this); + m_costAbsolute->setToolTip(Tr::tr("Show costs as absolute numbers.")); m_costAbsolute->setCheckable(true); m_costAbsolute->setChecked(true); connect(m_costAbsolute, &QAction::toggled, this, &CallgrindToolPrivate::updateCostFormat); group->addAction(m_costAbsolute); // Show costs in percentages - m_costRelative = new QAction(CallgrindTool::tr("Relative Costs"), this); - m_costRelative->setToolTip(CallgrindTool::tr("Show costs relative to total inclusive cost.")); + m_costRelative = new QAction(Tr::tr("Relative Costs"), this); + m_costRelative->setToolTip(Tr::tr("Show costs relative to total inclusive cost.")); m_costRelative->setCheckable(true); connect(m_costRelative, &QAction::toggled, this, &CallgrindToolPrivate::updateCostFormat); group->addAction(m_costRelative); // Show costs relative to parent - m_costRelativeToParent = new QAction(CallgrindTool::tr("Relative Costs to Parent"), this); - m_costRelativeToParent->setToolTip(CallgrindTool::tr("Show costs relative to parent function's inclusive cost.")); + m_costRelativeToParent = new QAction(Tr::tr("Relative Costs to Parent"), this); + m_costRelativeToParent->setToolTip(Tr::tr("Show costs relative to parent function's inclusive cost.")); m_costRelativeToParent->setCheckable(true); connect(m_costRelativeToParent, &QAction::toggled, this, &CallgrindToolPrivate::updateCostFormat); group->addAction(m_costRelativeToParent); @@ -480,7 +481,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() button->addActions(group->actions()); button->setPopupMode(QToolButton::InstantPopup); button->setText("$"); - button->setToolTip(CallgrindTool::tr("Cost Format")); + button->setToolTip(Tr::tr("Cost Format")); m_perspective.addToolBarWidget(button); } @@ -490,7 +491,7 @@ CallgrindToolPrivate::CallgrindToolPrivate() // Filter m_searchFilter = new QLineEdit; - m_searchFilter->setPlaceholderText(CallgrindTool::tr("Filter...")); + m_searchFilter->setPlaceholderText(Tr::tr("Filter...")); connect(m_searchFilter, &QLineEdit::textChanged, &m_updateTimer, QOverload<>::of(&QTimer::start)); @@ -784,10 +785,10 @@ void CallgrindToolPrivate::updateRunActions() if (m_toolBusy) { m_startAction->setEnabled(false); m_startKCachegrind->setEnabled(false); - m_startAction->setToolTip(CallgrindTool::tr("A Valgrind Callgrind analysis is still in progress.")); + m_startAction->setToolTip(Tr::tr("A Valgrind Callgrind analysis is still in progress.")); m_stopAction->setEnabled(true); } else { - QString whyNot = CallgrindTool::tr("Start a Valgrind Callgrind analysis."); + QString whyNot = Tr::tr("Start a Valgrind Callgrind analysis."); bool canRun = ProjectExplorerPlugin::canRunStartupProject(CALLGRIND_RUN_MODE, &whyNot); m_startAction->setToolTip(whyNot); m_startAction->setEnabled(canRun); @@ -814,7 +815,7 @@ void CallgrindToolPrivate::engineFinished() if (data) showParserResults(data); else - Debugger::showPermanentStatusMessage(CallgrindTool::tr("Profiling aborted.")); + Debugger::showPermanentStatusMessage(Tr::tr("Profiling aborted.")); setBusyCursor(false); } @@ -825,14 +826,14 @@ void CallgrindToolPrivate::showParserResults(const ParseData *data) if (data) { // be careful, the list of events might be empty if (data->events().isEmpty()) { - msg = CallgrindTool::tr("Parsing finished, no data."); + msg = Tr::tr("Parsing finished, no data."); } else { const QString costStr = QString::fromLatin1("%1 %2") .arg(QString::number(data->totalCost(0)), data->events().constFirst()); - msg = CallgrindTool::tr("Parsing finished, total cost of %1 reported.").arg(costStr); + msg = Tr::tr("Parsing finished, total cost of %1 reported.").arg(costStr); } } else { - msg = CallgrindTool::tr("Parsing failed."); + msg = Tr::tr("Parsing failed."); } Debugger::showPermanentStatusMessage(msg); } @@ -851,7 +852,7 @@ void CallgrindToolPrivate::requestContextMenu(TextEditorWidget *widget, int line for (CallgrindTextMark *textMark : qAsConst(m_textMarks)) { if (textMark->fileName() == widget->textDocument()->filePath() && textMark->lineNumber() == line) { const Function *func = textMark->function(); - QAction *action = menu->addAction(CallgrindTool::tr("Select This Function in the Analyzer Output")); + QAction *action = menu->addAction(Tr::tr("Select This Function in the Analyzer Output")); connect(action, &QAction::triggered, this, [this, func] { selectFunction(func); }); break; } @@ -877,7 +878,7 @@ void CallgrindToolPrivate::handleShowCostsOfFunction() void CallgrindToolPrivate::slotRequestDump() { //setBusy(true); - m_visualization->setText(CallgrindTool::tr("Populating...")); + m_visualization->setText(Tr::tr("Populating...")); emit dumpRequested(); } @@ -885,22 +886,22 @@ void CallgrindToolPrivate::loadExternalLogFile() { const FilePath filePath = FileUtils::getOpenFilePath( nullptr, - CallgrindTool::tr("Open Callgrind Log File"), + Tr::tr("Open Callgrind Log File"), {}, - CallgrindTool::tr("Callgrind Output (callgrind.out*);;All Files (*)")); + Tr::tr("Callgrind Output (callgrind.out*);;All Files (*)")); if (filePath.isEmpty()) return; QFile logFile(filePath.toString()); if (!logFile.open(QIODevice::ReadOnly | QIODevice::Text)) { - QString msg = CallgrindTool::tr("Callgrind: Failed to open file for reading: %1") + QString msg = Tr::tr("Callgrind: Failed to open file for reading: %1") .arg(filePath.toUserOutput()); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); return; } - Debugger::showPermanentStatusMessage(CallgrindTool::tr("Parsing Profile Data...")); + Debugger::showPermanentStatusMessage(Tr::tr("Parsing Profile Data...")); QCoreApplication::processEvents(); Parser parser; diff --git a/src/plugins/valgrind/callgrindtool.h b/src/plugins/valgrind/callgrindtool.h index 6b614248c66..91d69a50148 100644 --- a/src/plugins/valgrind/callgrindtool.h +++ b/src/plugins/valgrind/callgrindtool.h @@ -25,20 +25,16 @@ #pragma once -#include - namespace Valgrind { namespace Internal { class ValgrindGlobalSettings; -class CallgrindTool final : public QObject +class CallgrindTool final { - Q_OBJECT - public: CallgrindTool(); - ~CallgrindTool() final; + ~CallgrindTool(); }; } // namespace Internal diff --git a/src/plugins/valgrind/callgrindvisualisation.cpp b/src/plugins/valgrind/callgrindvisualisation.cpp index e159b153b3b..27f27a72db4 100644 --- a/src/plugins/valgrind/callgrindvisualisation.cpp +++ b/src/plugins/valgrind/callgrindvisualisation.cpp @@ -26,11 +26,13 @@ #include "callgrindvisualisation.h" #include "callgrindhelper.h" +#include "valgrindtr.h" #include #include #include #include + #include #include @@ -387,7 +389,7 @@ void Visualization::populateScene() QString ratioPercentString = QString::number(ratioPercent); ratioPercentString.append(QLocale::system().percent()); const int hiddenFunctions = d->m_model->sourceModel()->rowCount() - d->m_model->rowCount(); - text = tr("All functions with an inclusive cost ratio higher than %1 (%2 are hidden)") + text = Tr::tr("All functions with an inclusive cost ratio higher than %1 (%2 are hidden)") .arg(ratioPercentString, hiddenFunctions); } diff --git a/src/plugins/valgrind/memcheckerrorview.cpp b/src/plugins/valgrind/memcheckerrorview.cpp index 951136f8c6e..f7c7b81052d 100644 --- a/src/plugins/valgrind/memcheckerrorview.cpp +++ b/src/plugins/valgrind/memcheckerrorview.cpp @@ -28,18 +28,17 @@ #include "suppressiondialog.h" #include "valgrindsettings.h" +#include "valgrindtr.h" #include "xmlprotocol/error.h" #include "xmlprotocol/errorlistmodel.h" -#include "xmlprotocol/frame.h" -#include "xmlprotocol/stack.h" -#include "xmlprotocol/modelhelpers.h" #include "xmlprotocol/suppression.h" #include #include #include #include + #include #include #include @@ -56,7 +55,7 @@ MemcheckErrorView::MemcheckErrorView(QWidget *parent) : Debugger::DetailedErrorView(parent) { m_suppressAction = new QAction(this); - m_suppressAction->setText(tr("Suppress Error")); + m_suppressAction->setText(Tr::tr("Suppress Error")); const QIcon icon = Icon({ {":/utils/images/eye_open.png", Theme::TextColorNormal}, {":/valgrind/images/suppressoverlay.png", Theme::IconsErrorColor}}, diff --git a/src/plugins/valgrind/memcheckerrorview.h b/src/plugins/valgrind/memcheckerrorview.h index 888140fc45e..972da686b63 100644 --- a/src/plugins/valgrind/memcheckerrorview.h +++ b/src/plugins/valgrind/memcheckerrorview.h @@ -39,8 +39,6 @@ class ValgrindBaseSettings; class MemcheckErrorView : public Debugger::DetailedErrorView { - Q_OBJECT - public: MemcheckErrorView(QWidget *parent = nullptr); ~MemcheckErrorView() override; diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 1cd50e2a19b..89922c8cd7e 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -27,10 +27,11 @@ #include "memchecktool.h" #include "memcheckerrorview.h" -#include "valgrindsettings.h" #include "valgrindengine.h" -#include "valgrindsettings.h" #include "valgrindrunner.h" +#include "valgrindsettings.h" +#include "valgrindsettings.h" +#include "valgrindtr.h" #include "xmlprotocol/error.h" #include "xmlprotocol/error.h" @@ -188,7 +189,7 @@ private: QString MemcheckToolRunner::progressTitle() const { - return MemcheckTool::tr("Analyzing Memory"); + return Tr::tr("Analyzing Memory"); } void MemcheckToolRunner::start() @@ -454,7 +455,7 @@ private: bool m_toolBusy = false; QString m_exitMsg; - Perspective m_perspective{"Memcheck.Perspective", MemcheckTool::tr("Memcheck")}; + Perspective m_perspective{"Memcheck.Perspective", Tr::tr("Memcheck")}; RunWorkerFactory memcheckToolRunnerFactory{ RunWorkerFactory::make(), @@ -544,31 +545,31 @@ MemcheckToolPrivate::MemcheckToolPrivate() setObjectName("MemcheckTool"); - m_filterProjectAction = new QAction(MemcheckTool::tr("External Errors"), this); + m_filterProjectAction = new QAction(Tr::tr("External Errors"), this); m_filterProjectAction->setToolTip( - MemcheckTool::tr("Show issues originating outside currently opened projects.")); + Tr::tr("Show issues originating outside currently opened projects.")); m_filterProjectAction->setCheckable(true); - m_suppressionSeparator = new QAction(MemcheckTool::tr("Suppressions"), this); + m_suppressionSeparator = new QAction(Tr::tr("Suppressions"), this); m_suppressionSeparator->setSeparator(true); m_suppressionSeparator->setToolTip( - MemcheckTool::tr("These suppression files were used in the last memory analyzer run.")); + Tr::tr("These suppression files were used in the last memory analyzer run.")); - QAction *a = new QAction(MemcheckTool::tr("Definite Memory Leaks"), this); + QAction *a = new QAction(Tr::tr("Definite Memory Leaks"), this); initKindFilterAction(a, {Leak_DefinitelyLost, Leak_IndirectlyLost}); m_errorFilterActions.append(a); - a = new QAction(MemcheckTool::tr("Possible Memory Leaks"), this); + a = new QAction(Tr::tr("Possible Memory Leaks"), this); initKindFilterAction(a, {Leak_PossiblyLost, Leak_StillReachable}); m_errorFilterActions.append(a); - a = new QAction(MemcheckTool::tr("Use of Uninitialized Memory"), this); + a = new QAction(Tr::tr("Use of Uninitialized Memory"), this); initKindFilterAction(a, {InvalidRead, InvalidWrite, InvalidJump, Overlap, InvalidMemPool, UninitCondition, UninitValue, SyscallParam, ClientCheck}); m_errorFilterActions.append(a); - a = new QAction(MemcheckTool::tr("Invalid Calls to \"free()\""), this); + a = new QAction(Tr::tr("Invalid Calls to \"free()\""), this); initKindFilterAction(a, { InvalidFree, MismatchedFree }); m_errorFilterActions.append(a); @@ -586,7 +587,7 @@ MemcheckToolPrivate::MemcheckToolPrivate() m_errorView->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); m_errorView->setAutoScroll(false); m_errorView->setObjectName("Valgrind.MemcheckTool.ErrorView"); - m_errorView->setWindowTitle(MemcheckTool::tr("Memory Issues")); + m_errorView->setWindowTitle(Tr::tr("Memory Issues")); m_perspective.addWindow(m_errorView, Perspective::SplitVertical, nullptr); @@ -604,7 +605,7 @@ MemcheckToolPrivate::MemcheckToolPrivate() // Load external XML log file auto action = new QAction(this); action->setIcon(Icons::OPENFILE_TOOLBAR.icon()); - action->setToolTip(MemcheckTool::tr("Load External XML Log File")); + action->setToolTip(Tr::tr("Load External XML Log File")); connect(action, &QAction::triggered, this, &MemcheckToolPrivate::loadExternalXmlLogFile); m_loadExternalLogFile = action; @@ -612,7 +613,7 @@ MemcheckToolPrivate::MemcheckToolPrivate() action = new QAction(this); action->setDisabled(true); action->setIcon(Icons::PREV_TOOLBAR.icon()); - action->setToolTip(MemcheckTool::tr("Go to previous leak.")); + action->setToolTip(Tr::tr("Go to previous leak.")); connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goBack); m_goBack = action; @@ -620,13 +621,13 @@ MemcheckToolPrivate::MemcheckToolPrivate() action = new QAction(this); action->setDisabled(true); action->setIcon(Icons::NEXT_TOOLBAR.icon()); - action->setToolTip(MemcheckTool::tr("Go to next leak.")); + action->setToolTip(Tr::tr("Go to next leak.")); connect(action, &QAction::triggered, m_errorView, &MemcheckErrorView::goNext); m_goNext = action; auto filterButton = new QToolButton; filterButton->setIcon(Icons::FILTER.icon()); - filterButton->setText(MemcheckTool::tr("Error Filter")); + filterButton->setText(Tr::tr("Error Filter")); filterButton->setPopupMode(QToolButton::InstantPopup); filterButton->setProperty("noArrow", true); @@ -640,11 +641,11 @@ MemcheckToolPrivate::MemcheckToolPrivate() filterButton->setMenu(m_filterMenu); ActionContainer *menu = ActionManager::actionContainer(Debugger::Constants::M_DEBUG_ANALYZER); - QString toolTip = MemcheckTool::tr("Valgrind Analyze Memory uses the Memcheck tool to find memory leaks."); + QString toolTip = Tr::tr("Valgrind Analyze Memory uses the Memcheck tool to find memory leaks."); if (!HostOsInfo::isWindowsHost()) { action = new QAction(this); - action->setText(MemcheckTool::tr("Valgrind Memory Analyzer")); + action->setText(Tr::tr("Valgrind Memory Analyzer")); action->setToolTip(toolTip); menu->addAction(ActionManager::registerAction(action, "Memcheck.Local"), Debugger::Constants::G_ANALYZER_TOOLS); @@ -661,8 +662,8 @@ MemcheckToolPrivate::MemcheckToolPrivate() }); action = new QAction(this); - action->setText(MemcheckTool::tr("Valgrind Memory Analyzer with GDB")); - action->setToolTip(MemcheckTool::tr("Valgrind Analyze Memory with GDB uses the " + action->setText(Tr::tr("Valgrind Memory Analyzer with GDB")); + action->setToolTip(Tr::tr("Valgrind Analyze Memory with GDB uses the " "Memcheck tool to find memory leaks.\nWhen a problem is detected, " "the application is interrupted and can be debugged.")); menu->addAction(ActionManager::registerAction(action, "MemcheckWithGdb.Local"), @@ -679,9 +680,9 @@ MemcheckToolPrivate::MemcheckToolPrivate() action->setEnabled(m_startWithGdbAction->isEnabled()); }); } else { - action = new QAction(MemcheckTool::tr("Heob"), this); + action = new QAction(Tr::tr("Heob"), this); Core::Command *cmd = Core::ActionManager::registerAction(action, "Memcheck.Local"); - cmd->setDefaultKeySequence(QKeySequence(MemcheckTool::tr("Ctrl+Alt+H"))); + cmd->setDefaultKeySequence(QKeySequence(Tr::tr("Ctrl+Alt+H"))); connect(action, &QAction::triggered, this, &MemcheckToolPrivate::heobAction); menu->addAction(cmd, Debugger::Constants::G_ANALYZER_TOOLS); connect(m_startAction, &QAction::changed, action, [action, this] { @@ -690,7 +691,7 @@ MemcheckToolPrivate::MemcheckToolPrivate() } action = new QAction(this); - action->setText(MemcheckTool::tr("Valgrind Memory Analyzer (External Application)")); + action->setText(Tr::tr("Valgrind Memory Analyzer (External Application)")); action->setToolTip(toolTip); menu->addAction(ActionManager::registerAction(action, "Memcheck.Remote"), Debugger::Constants::G_ANALYZER_REMOTE_TOOLS); @@ -752,7 +753,7 @@ void MemcheckToolPrivate::heobAction() } } if (!hasLocalRc) { - const QString msg = MemcheckTool::tr("Heob: No local run configuration available."); + const QString msg = Tr::tr("Heob: No local run configuration available."); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); return; @@ -761,7 +762,7 @@ void MemcheckToolPrivate::heobAction() || abi.os() != Abi::WindowsOS || abi.binaryFormat() != Abi::PEFormat || (abi.wordWidth() != 32 && abi.wordWidth() != 64)) { - const QString msg = MemcheckTool::tr("Heob: No toolchain available."); + const QString msg = Tr::tr("Heob: No toolchain available."); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); return; @@ -774,7 +775,7 @@ void MemcheckToolPrivate::heobAction() // target executable if (executable.isEmpty()) { - const QString msg = MemcheckTool::tr("Heob: No executable set."); + const QString msg = Tr::tr("Heob: No executable set."); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); return; @@ -782,7 +783,7 @@ void MemcheckToolPrivate::heobAction() if (!executable.exists()) executable = executable.withExecutableSuffix(); if (!executable.exists()) { - const QString msg = MemcheckTool::tr("Heob: Cannot find %1.").arg(executable.toUserOutput()); + const QString msg = Tr::tr("Heob: Cannot find %1.").arg(executable.toUserOutput()); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); return; @@ -808,8 +809,8 @@ void MemcheckToolPrivate::heobAction() if (!QFile::exists(heobPath)) { QMessageBox::critical( Core::ICore::dialogParent(), - MemcheckTool::tr("Heob"), - MemcheckTool::tr("The %1 executables must be in the appropriate location.") + Tr::tr("Heob"), + Tr::tr("The %1 executables must be in the appropriate location.") .arg("Heob")); return; } @@ -821,8 +822,8 @@ void MemcheckToolPrivate::heobAction() if (!QFile::exists(dwarfstackPath) && CheckableMessageBox::doNotShowAgainInformation( Core::ICore::dialogParent(), - MemcheckTool::tr("Heob"), - MemcheckTool::tr("Heob used with MinGW projects needs the %1 DLLs for proper " + Tr::tr("Heob"), + Tr::tr("Heob used with MinGW projects needs the %1 DLLs for proper " "stacktrace resolution.") .arg( "(workingDirectory.utf16()), &si, &pi)) { DWORD e = GetLastError(); - const QString msg = MemcheckTool::tr("Heob: Cannot create %1 process (%2).") + const QString msg = Tr::tr("Heob: Cannot create %1 process (%2).") .arg(heob) .arg(qt_error_string(e)); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); @@ -905,16 +906,16 @@ void MemcheckToolPrivate::updateRunActions() { if (m_toolBusy) { m_startAction->setEnabled(false); - m_startAction->setToolTip(MemcheckTool::tr("A Valgrind Memcheck analysis is still in progress.")); + m_startAction->setToolTip(Tr::tr("A Valgrind Memcheck analysis is still in progress.")); m_startWithGdbAction->setEnabled(false); - m_startWithGdbAction->setToolTip(MemcheckTool::tr("A Valgrind Memcheck analysis is still in progress.")); + m_startWithGdbAction->setToolTip(Tr::tr("A Valgrind Memcheck analysis is still in progress.")); m_stopAction->setEnabled(true); } else { - QString whyNot = MemcheckTool::tr("Start a Valgrind Memcheck analysis."); + QString whyNot = Tr::tr("Start a Valgrind Memcheck analysis."); bool canRun = ProjectExplorerPlugin::canRunStartupProject(MEMCHECK_RUN_MODE, &whyNot); m_startAction->setToolTip(whyNot); m_startAction->setEnabled(canRun); - whyNot = MemcheckTool::tr("Start a Valgrind Memcheck with GDB analysis."); + whyNot = Tr::tr("Start a Valgrind Memcheck with GDB analysis."); canRun = ProjectExplorerPlugin::canRunStartupProject(MEMCHECK_WITH_GDB_RUN_MODE, &whyNot); m_startWithGdbAction->setToolTip(whyNot); m_startWithGdbAction->setEnabled(canRun); @@ -1040,9 +1041,9 @@ void MemcheckToolPrivate::loadExternalXmlLogFile() { const FilePath filePath = FileUtils::getOpenFilePath( nullptr, - MemcheckTool::tr("Open Memcheck XML Log File"), + Tr::tr("Open Memcheck XML Log File"), {}, - MemcheckTool::tr("XML Files (*.xml);;All Files (*)")); + Tr::tr("XML Files (*.xml);;All Files (*)")); if (filePath.isEmpty()) return; @@ -1055,7 +1056,7 @@ void MemcheckToolPrivate::loadXmlLogFile(const QString &filePath) auto logFile = new QFile(filePath); if (!logFile->open(QIODevice::ReadOnly | QIODevice::Text)) { delete logFile; - QString msg = MemcheckTool::tr("Memcheck: Failed to open file for reading: %1").arg(filePath); + QString msg = Tr::tr("Memcheck: Failed to open file for reading: %1").arg(filePath); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); if (!m_exitMsg.isEmpty()) @@ -1093,7 +1094,7 @@ void MemcheckToolPrivate::parserError(const Error &error) void MemcheckToolPrivate::internalParserError(const QString &errorString) { - QString msg = MemcheckTool::tr("Memcheck: Error occurred parsing Valgrind output: %1").arg(errorString); + QString msg = Tr::tr("Memcheck: Error occurred parsing Valgrind output: %1").arg(errorString); TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID); TaskHub::requestPopup(); } @@ -1147,13 +1148,13 @@ void MemcheckToolPrivate::engineFinished() const int issuesFound = updateUiAfterFinishedHelper(); Debugger::showPermanentStatusMessage( - MemcheckTool::tr("Memory Analyzer Tool finished. %n issues were found.", nullptr, issuesFound)); + Tr::tr("Memory Analyzer Tool finished. %n issues were found.", nullptr, issuesFound)); } void MemcheckToolPrivate::loadingExternalXmlLogFileFinished() { const int issuesFound = updateUiAfterFinishedHelper(); - QString statusMessage = MemcheckTool::tr("Log file processed. %n issues were found.", nullptr, issuesFound); + QString statusMessage = Tr::tr("Log file processed. %n issues were found.", nullptr, issuesFound); if (!m_exitMsg.isEmpty()) statusMessage += ' ' + m_exitMsg; Debugger::showPermanentStatusMessage(statusMessage); diff --git a/src/plugins/valgrind/memchecktool.h b/src/plugins/valgrind/memchecktool.h index 1e4e245cd78..a331de3d61e 100644 --- a/src/plugins/valgrind/memchecktool.h +++ b/src/plugins/valgrind/memchecktool.h @@ -26,23 +26,16 @@ #pragma once -#include - namespace Valgrind { namespace Internal { class MemcheckToolRunner; -class MemcheckTool final : public QObject +class MemcheckTool final { - Q_OBJECT - public: MemcheckTool(); - ~MemcheckTool() final; - -private: - class MemcheckToolPrivate *d = nullptr; + ~MemcheckTool(); }; } // namespace Internal diff --git a/src/plugins/valgrind/suppressiondialog.cpp b/src/plugins/valgrind/suppressiondialog.cpp index bde173edccd..bddd22da52b 100644 --- a/src/plugins/valgrind/suppressiondialog.cpp +++ b/src/plugins/valgrind/suppressiondialog.cpp @@ -28,6 +28,7 @@ #include "memcheckerrorview.h" #include "valgrindsettings.h" +#include "valgrindtr.h" #include "xmlprotocol/suppression.h" #include "xmlprotocol/errorlistmodel.h" @@ -121,11 +122,11 @@ SuppressionDialog::SuppressionDialog(MemcheckErrorView *view, const QList m_fileChooser(new PathChooser(this)), m_suppressionEdit(new QPlainTextEdit(this)) { - setWindowTitle(tr("Save Suppression")); + setWindowTitle(Tr::tr("Save Suppression")); - auto fileLabel = new QLabel(tr("Suppression File:"), this); + auto fileLabel = new QLabel(Tr::tr("Suppression File:"), this); - auto suppressionsLabel = new QLabel(tr("Suppression:"), this); + auto suppressionsLabel = new QLabel(Tr::tr("Suppression:"), this); suppressionsLabel->setBuddy(m_suppressionEdit); QFont font; @@ -149,7 +150,7 @@ SuppressionDialog::SuppressionDialog(MemcheckErrorView *view, const QList m_fileChooser->setHistoryCompleter("Valgrind.Suppression.History"); m_fileChooser->setPath(defaultSuppFile.fileName()); m_fileChooser->setPromptDialogFilter("*.supp"); - m_fileChooser->setPromptDialogTitle(tr("Select Suppression File")); + m_fileChooser->setPromptDialogTitle(Tr::tr("Select Suppression File")); QString suppressions; for (const Error &error : qAsConst(m_errors)) diff --git a/src/plugins/valgrind/suppressiondialog.h b/src/plugins/valgrind/suppressiondialog.h index a1ca3f93f7a..0cf5b871bef 100644 --- a/src/plugins/valgrind/suppressiondialog.h +++ b/src/plugins/valgrind/suppressiondialog.h @@ -45,8 +45,6 @@ class ValgrindBaseSettings; class SuppressionDialog : public QDialog { - Q_OBJECT - public: SuppressionDialog(MemcheckErrorView *view, const QList &errors); diff --git a/src/plugins/valgrind/valgrindconfigwidget.cpp b/src/plugins/valgrind/valgrindconfigwidget.cpp index 980b04fc73d..8fa534870b3 100644 --- a/src/plugins/valgrind/valgrindconfigwidget.cpp +++ b/src/plugins/valgrind/valgrindconfigwidget.cpp @@ -26,7 +26,7 @@ #include "valgrindconfigwidget.h" #include "valgrindsettings.h" -#include "valgrindplugin.h" +#include "valgrindtr.h" #include @@ -43,8 +43,6 @@ namespace Internal { class ValgrindConfigWidget : public Core::IOptionsPageWidget { - Q_DECLARE_TR_FUNCTIONS(Valgrind::Internal::ValgrindConfigWidget) - public: explicit ValgrindConfigWidget(ValgrindBaseSettings *settings); @@ -100,9 +98,9 @@ ValgrindConfigWidget::ValgrindConfigWidget(ValgrindBaseSettings *settings) }; Column { - Group { Title(tr("Valgrind Generic Settings")), generic }, - Group { Title(tr("MemCheck Memory Analysis Options")), memcheck }, - Group { Title(tr("CallGrind Profiling Options")), callgrind }, + Group { Title(Tr::tr("Valgrind Generic Settings")), generic }, + Group { Title(Tr::tr("MemCheck Memory Analysis Options")), memcheck }, + Group { Title(Tr::tr("CallGrind Profiling Options")), callgrind }, Stretch(), }.attachTo(this); } @@ -112,9 +110,9 @@ ValgrindConfigWidget::ValgrindConfigWidget(ValgrindBaseSettings *settings) ValgrindOptionsPage::ValgrindOptionsPage() { setId(ANALYZER_VALGRIND_SETTINGS); - setDisplayName(ValgrindConfigWidget::tr("Valgrind")); + setDisplayName(Tr::tr("Valgrind")); setCategory("T.Analyzer"); - setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); + setDisplayCategory(Tr::tr("Analyzer")); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setWidgetCreator([] { return new ValgrindConfigWidget(ValgrindGlobalSettings::instance()); }); } diff --git a/src/plugins/valgrind/valgrindconfigwidget.h b/src/plugins/valgrind/valgrindconfigwidget.h index 0cef8a9d739..f165dbc5e46 100644 --- a/src/plugins/valgrind/valgrindconfigwidget.h +++ b/src/plugins/valgrind/valgrindconfigwidget.h @@ -28,8 +28,7 @@ #include -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { class ValgrindOptionsPage final : public Core::IOptionsPage { @@ -39,5 +38,4 @@ public: static QWidget *createSettingsWidget(class ValgrindBaseSettings *settings); }; -} // namespace Internal -} // namespace Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/valgrindengine.cpp b/src/plugins/valgrind/valgrindengine.cpp index fdb147e1c74..5e9a7b6aa7a 100644 --- a/src/plugins/valgrind/valgrindengine.cpp +++ b/src/plugins/valgrind/valgrindengine.cpp @@ -25,7 +25,9 @@ ****************************************************************************/ #include "valgrindengine.h" + #include "valgrindsettings.h" +#include "valgrindtr.h" #include @@ -50,8 +52,7 @@ using namespace Core; using namespace Utils; using namespace ProjectExplorer; -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl) : RunWorker(runControl) @@ -84,9 +85,9 @@ void ValgrindToolRunner::start() m_progress.reportStarted(); #if VALGRIND_DEBUG_OUTPUT - emit outputReceived(tr("Valgrind options: %1").arg(toolArguments().join(' ')), LogMessageFormat); - emit outputReceived(tr("Working directory: %1").arg(runnable().workingDirectory), LogMessageFormat); - emit outputReceived(tr("Command line arguments: %1").arg(runnable().debuggeeArgs), LogMessageFormat); + emit outputReceived(Tr::tr("Valgrind options: %1").arg(toolArguments().join(' ')), LogMessageFormat); + emit outputReceived(Tr::tr("Working directory: %1").arg(runnable().workingDirectory), LogMessageFormat); + emit outputReceived(Tr::tr("Command line arguments: %1").arg(runnable().debuggeeArgs), LogMessageFormat); #endif @@ -155,7 +156,7 @@ void ValgrindToolRunner::handleProgressFinished() void ValgrindToolRunner::runnerFinished() { - appendMessage(tr("Analyzing finished."), NormalMessageFormat); + appendMessage(Tr::tr("Analyzing finished."), NormalMessageFormat); m_progress.reportFinished(); @@ -167,13 +168,13 @@ void ValgrindToolRunner::receiveProcessError(const QString &message, QProcess::P if (error == QProcess::FailedToStart) { const QString valgrind = m_settings.valgrindExecutable.value(); if (!valgrind.isEmpty()) - appendMessage(tr("Error: \"%1\" could not be started: %2").arg(valgrind, message), ErrorMessageFormat); + appendMessage(Tr::tr("Error: \"%1\" could not be started: %2").arg(valgrind, message), ErrorMessageFormat); else - appendMessage(tr("Error: no Valgrind executable set."), ErrorMessageFormat); + appendMessage(Tr::tr("Error: no Valgrind executable set."), ErrorMessageFormat); } else if (m_isStopping && error == QProcess::Crashed) { // process gets killed on stop - appendMessage(tr("Process terminated."), ErrorMessageFormat); + appendMessage(Tr::tr("Process terminated."), ErrorMessageFormat); } else { - appendMessage(tr("Process exited with return value %1\n").arg(message), NormalMessageFormat); + appendMessage(Tr::tr("Process exited with return value %1\n").arg(message), NormalMessageFormat); } if (m_isStopping) @@ -184,5 +185,4 @@ void ValgrindToolRunner::receiveProcessError(const QString &message, QProcess::P pane->popup(IOutputPane::NoModeSwitch); } -} // namespace Internal -} // namepsace Valgrind +} // Valgrid::Internal diff --git a/src/plugins/valgrind/valgrindengine.h b/src/plugins/valgrind/valgrindengine.h index 8bb050405af..12b917be3ac 100644 --- a/src/plugins/valgrind/valgrindengine.h +++ b/src/plugins/valgrind/valgrindengine.h @@ -34,13 +34,10 @@ #include -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { class ValgrindToolRunner : public ProjectExplorer::RunWorker { - Q_OBJECT - public: explicit ValgrindToolRunner(ProjectExplorer::RunControl *runControl); @@ -68,5 +65,4 @@ private: bool m_isStopping = false; }; -} // namespace Internal -} // namespace Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/valgrindmemcheckparsertest.h b/src/plugins/valgrind/valgrindmemcheckparsertest.h index 6dff0aef57d..05094b2174b 100644 --- a/src/plugins/valgrind/valgrindmemcheckparsertest.h +++ b/src/plugins/valgrind/valgrindmemcheckparsertest.h @@ -51,7 +51,6 @@ void dumpError(const Valgrind::XmlProtocol::Error &e); class Recorder : public QObject { - Q_OBJECT public: explicit Recorder(XmlProtocol::Parser *parser) { @@ -87,8 +86,6 @@ public: class RunnerDumper : public QObject { - Q_OBJECT - public: explicit RunnerDumper(ValgrindRunner *runner) { diff --git a/src/plugins/valgrind/valgrindplugin.cpp b/src/plugins/valgrind/valgrindplugin.cpp index ee0d1378516..60688505cf8 100644 --- a/src/plugins/valgrind/valgrindplugin.cpp +++ b/src/plugins/valgrind/valgrindplugin.cpp @@ -28,8 +28,9 @@ #include "callgrindtool.h" #include "memchecktool.h" -#include "valgrindsettings.h" #include "valgrindconfigwidget.h" +#include "valgrindsettings.h" +#include "valgrindtr.h" #ifdef WITH_TESTS # include "valgrindmemcheckparsertest.h" @@ -61,8 +62,7 @@ public: setProjectSettings(new ValgrindProjectSettings); setGlobalSettings(ValgrindGlobalSettings::instance()); setId(ANALYZER_VALGRIND_SETTINGS); - setDisplayName(QCoreApplication::translate("Valgrind::Internal::ValgrindRunConfigurationAspect", - "Valgrind Settings")); + setDisplayName(Tr::tr("Valgrind Settings")); setUsingGlobalSettings(true); resetProjectToGlobalSettings(); setConfigWidgetCreator([this] { return new Debugger::AnalyzerRunConfigWidget(this); }); diff --git a/src/plugins/valgrind/valgrindplugin.h b/src/plugins/valgrind/valgrindplugin.h index d458cefffb6..0f02decc9ab 100644 --- a/src/plugins/valgrind/valgrindplugin.h +++ b/src/plugins/valgrind/valgrindplugin.h @@ -29,8 +29,7 @@ #include #include -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { class ValgrindPlugin final : public ExtensionSystem::IPlugin { @@ -49,5 +48,4 @@ private: class ValgrindPluginPrivate *d = nullptr; }; -} // namespace Internal -} // namespace Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/valgrindrunner.cpp b/src/plugins/valgrind/valgrindrunner.cpp index f606789cf11..193b2aa5e99 100644 --- a/src/plugins/valgrind/valgrindrunner.cpp +++ b/src/plugins/valgrind/valgrindrunner.cpp @@ -26,6 +26,7 @@ #include "valgrindrunner.h" +#include "valgrindtr.h" #include "xmlprotocol/threadedparser.h" #include @@ -107,14 +108,14 @@ bool ValgrindRunner::Private::startServers() const bool xmlOK = m_xmlServer.listen(m_localServerAddress); const QString ip = m_localServerAddress.toString(); if (!xmlOK) { - emit q->processErrorReceived(tr("XmlServer on %1:").arg(ip) + ' ' + emit q->processErrorReceived(Tr::tr("XmlServer on %1:").arg(ip) + ' ' + m_xmlServer.errorString(), QProcess::FailedToStart ); return false; } m_xmlServer.setMaxPendingConnections(1); const bool logOK = m_logServer.listen(m_localServerAddress); if (!logOK) { - emit q->processErrorReceived(tr("LogServer on %1:").arg(ip) + ' ' + emit q->processErrorReceived(Tr::tr("LogServer on %1:").arg(ip) + ' ' + m_logServer.errorString(), QProcess::FailedToStart ); return false; } diff --git a/src/plugins/valgrind/valgrindsettings.cpp b/src/plugins/valgrind/valgrindsettings.cpp index 4ffac890746..c2e9934255d 100644 --- a/src/plugins/valgrind/valgrindsettings.cpp +++ b/src/plugins/valgrind/valgrindsettings.cpp @@ -25,7 +25,10 @@ ****************************************************************************/ #include "valgrindsettings.h" + +#include "callgrindcostdelegate.h" #include "valgrindconfigwidget.h" +#include "valgrindtr.h" #include @@ -45,8 +48,7 @@ using namespace Utils; -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { // // SuppressionAspect @@ -54,8 +56,6 @@ namespace Internal { class SuppressionAspectPrivate : public QObject { - Q_DECLARE_TR_FUNCTIONS(Valgrind::Internal::ValgrindConfigWidget) - public: SuppressionAspectPrivate(SuppressionAspect *q, bool global) : q(q), isGlobal(global) {} @@ -86,9 +86,9 @@ void SuppressionAspectPrivate::slotAddSuppression() QTC_ASSERT(conf, return); const FilePaths files = FileUtils::getOpenFilePaths(nullptr, - tr("Valgrind Suppression Files"), + Tr::tr("Valgrind Suppression Files"), conf->lastSuppressionDirectory.filePath(), - tr("Valgrind Suppression File (*.supp);;All Files (*)")); + Tr::tr("Valgrind Suppression File (*.supp);;All Files (*)")); //dialog.setHistory(conf->lastSuppressionDialogHistory()); if (!files.isEmpty()) { for (const FilePath &file : files) @@ -159,8 +159,8 @@ void SuppressionAspect::addToLayout(LayoutBuilder &builder) using namespace Layouting; - d->addEntry = new QPushButton(tr("Add...")); - d->removeEntry = new QPushButton(tr("Remove")); + d->addEntry = new QPushButton(Tr::tr("Add...")); + d->removeEntry = new QPushButton(Tr::tr("Remove")); d->entryList = createSubWidget(); d->entryList->setModel(&d->m_model); @@ -173,7 +173,7 @@ void SuppressionAspect::addToLayout(LayoutBuilder &builder) connect(d->entryList->selectionModel(), &QItemSelectionModel::selectionChanged, d, &SuppressionAspectPrivate::slotSuppressionSelectionChanged); - builder.addItem(Column { new QLabel(tr("Suppression files:")), Stretch() }); + builder.addItem(Column { new QLabel(Tr::tr("Suppression files:")), Stretch() }); Row group { d->entryList.data(), Column { d->addEntry.data(), d->removeEntry.data(), Stretch() } @@ -233,8 +233,8 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) valgrindExecutable.setDisplayStyle(StringAspect::PathChooserDisplay); valgrindExecutable.setExpectedKind(PathChooser::Command); valgrindExecutable.setHistoryCompleter("Valgrind.Command.History"); - valgrindExecutable.setDisplayName(tr("Valgrind Command")); - valgrindExecutable.setLabelText(tr("Valgrind executable:")); + valgrindExecutable.setDisplayName(Tr::tr("Valgrind Command")); + valgrindExecutable.setLabelText(Tr::tr("Valgrind executable:")); if (Utils::HostOsInfo::isWindowsHost()) { // On Window we know that we don't have a local valgrind // executable, so having the "Browse" button in the path chooser @@ -246,7 +246,7 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) registerAspect(&valgrindArguments); valgrindArguments.setSettingsKey(base + "ValgrindArguments"); valgrindArguments.setDisplayStyle(StringAspect::LineEditDisplay); - valgrindArguments.setLabelText(tr("Valgrind arguments:")); + valgrindArguments.setLabelText(Tr::tr("Valgrind arguments:")); registerAspect(&selfModifyingCodeDetection); selfModifyingCodeDetection.setSettingsKey(base + "SelfModifyingCodeDetection"); @@ -256,46 +256,46 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) selfModifyingCodeDetection.addOption("Only on Stack"); selfModifyingCodeDetection.addOption("Everywhere"); selfModifyingCodeDetection.addOption("Everywhere Except in File-backend Mappings"); - selfModifyingCodeDetection.setLabelText(tr("Detect self-modifying code:")); + selfModifyingCodeDetection.setLabelText(Tr::tr("Detect self-modifying code:")); // Memcheck registerAspect(&memcheckArguments); memcheckArguments.setSettingsKey(base + "Memcheck.Arguments"); memcheckArguments.setDisplayStyle(StringAspect::LineEditDisplay); - memcheckArguments.setLabelText(tr("Extra MemCheck arguments:")); + memcheckArguments.setLabelText(Tr::tr("Extra MemCheck arguments:")); registerAspect(&filterExternalIssues); filterExternalIssues.setSettingsKey(base + "FilterExternalIssues"); filterExternalIssues.setDefaultValue(true); filterExternalIssues.setIcon(Icons::FILTER.icon()); filterExternalIssues.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - filterExternalIssues.setLabelText(tr("Show Project Costs Only")); - filterExternalIssues.setToolTip(tr("Show only profiling info that originated from this project source.")); + filterExternalIssues.setLabelText(Tr::tr("Show Project Costs Only")); + filterExternalIssues.setToolTip(Tr::tr("Show only profiling info that originated from this project source.")); registerAspect(&trackOrigins); trackOrigins.setSettingsKey(base + "TrackOrigins"); trackOrigins.setDefaultValue(true); trackOrigins.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - trackOrigins.setLabelText(tr("Track origins of uninitialized memory")); + trackOrigins.setLabelText(Tr::tr("Track origins of uninitialized memory")); registerAspect(&showReachable); showReachable.setSettingsKey(base + "ShowReachable"); showReachable.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - showReachable.setLabelText(tr("Show reachable and indirectly lost blocks")); + showReachable.setLabelText(Tr::tr("Show reachable and indirectly lost blocks")); registerAspect(&leakCheckOnFinish); leakCheckOnFinish.setSettingsKey(base + "LeakCheckOnFinish"); leakCheckOnFinish.setDefaultValue(LeakCheckOnFinishSummaryOnly); leakCheckOnFinish.setDisplayStyle(SelectionAspect::DisplayStyle::ComboBox); - leakCheckOnFinish.addOption(tr("No")); - leakCheckOnFinish.addOption(tr("Summary Only")); - leakCheckOnFinish.addOption(tr("Full")); - leakCheckOnFinish.setLabelText(tr("Check for leaks on finish:")); + leakCheckOnFinish.addOption(Tr::tr("No")); + leakCheckOnFinish.addOption(Tr::tr("Summary Only")); + leakCheckOnFinish.addOption(Tr::tr("Full")); + leakCheckOnFinish.setLabelText(Tr::tr("Check for leaks on finish:")); registerAspect(&numCallers); numCallers.setSettingsKey(base + "NumCallers"); numCallers.setDefaultValue(25); - numCallers.setLabelText(tr("Backtrace frame count:")); + numCallers.setLabelText(Tr::tr("Backtrace frame count:")); // Callgrind @@ -303,26 +303,26 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) kcachegrindExecutable.setSettingsKey(base + "KCachegrindExecutable"); kcachegrindExecutable.setDefaultValue("kcachegrind"); kcachegrindExecutable.setDisplayStyle(StringAspect::PathChooserDisplay); - kcachegrindExecutable.setLabelText(tr("KCachegrind executable:")); + kcachegrindExecutable.setLabelText(Tr::tr("KCachegrind executable:")); kcachegrindExecutable.setExpectedKind(Utils::PathChooser::Command); - kcachegrindExecutable.setDisplayName(tr("KCachegrind Command")); + kcachegrindExecutable.setDisplayName(Tr::tr("KCachegrind Command")); registerAspect(&callgrindArguments); callgrindArguments.setSettingsKey(base + "Callgrind.Arguments"); callgrindArguments.setDisplayStyle(StringAspect::LineEditDisplay); - callgrindArguments.setLabelText(tr("Extra CallGrind arguments:")); + callgrindArguments.setLabelText(Tr::tr("Extra CallGrind arguments:")); registerAspect(&enableEventToolTips); enableEventToolTips.setDefaultValue(true); enableEventToolTips.setSettingsKey(base + "Callgrind.EnableEventToolTips"); enableEventToolTips.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - enableEventToolTips.setLabelText(tr("Show additional information for events in tooltips")); + enableEventToolTips.setLabelText(Tr::tr("Show additional information for events in tooltips")); registerAspect(&enableCacheSim); enableCacheSim.setSettingsKey(base + "Callgrind.EnableCacheSim"); enableCacheSim.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - enableCacheSim.setLabelText(tr("Enable cache simulation")); - enableCacheSim.setToolTip("" + tr( + enableCacheSim.setLabelText(Tr::tr("Enable cache simulation")); + enableCacheSim.setToolTip("" + Tr::tr( "

Does full cache simulation.

\n" "

By default, only instruction read accesses will be counted (\"Ir\").

\n" "

\n" @@ -335,8 +335,8 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) registerAspect(&enableBranchSim); enableBranchSim.setSettingsKey(base + "Callgrind.EnableBranchSim"); enableBranchSim.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - enableBranchSim.setLabelText(tr("Enable branch prediction simulation")); - enableBranchSim.setToolTip("\n" + tr( + enableBranchSim.setLabelText(Tr::tr("Enable branch prediction simulation")); + enableBranchSim.setToolTip("\n" + Tr::tr( "

Does branch prediction simulation.

\n" "

Further event counters are enabled:

\n" "
  • Number of executed conditional branches and related predictor misses (\n" @@ -347,29 +347,29 @@ ValgrindBaseSettings::ValgrindBaseSettings(bool global) registerAspect(&collectSystime); collectSystime.setSettingsKey(base + "Callgrind.CollectSystime"); collectSystime.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); - collectSystime.setLabelText(tr("Collect system call time")); - collectSystime.setToolTip(tr("Collects information for system call times.")); + collectSystime.setLabelText(Tr::tr("Collect system call time")); + collectSystime.setToolTip(Tr::tr("Collects information for system call times.")); registerAspect(&collectBusEvents); collectBusEvents.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBoxWithoutDummyLabel); collectBusEvents.setSettingsKey(base + "Callgrind.CollectBusEvents"); - collectBusEvents.setLabelText(tr("Collect global bus events")); - collectBusEvents.setToolTip(tr("Collect the number of global bus events that are executed. " + collectBusEvents.setLabelText(Tr::tr("Collect global bus events")); + collectBusEvents.setToolTip(Tr::tr("Collect the number of global bus events that are executed. " "The event type \"Ge\" is used for these events.")); registerAspect(&minimumInclusiveCostRatio); minimumInclusiveCostRatio.setSettingsKey(base + "Callgrind.MinimumCostRatio"); minimumInclusiveCostRatio.setDefaultValue(0.01); - minimumInclusiveCostRatio.setSuffix(tr("%")); - minimumInclusiveCostRatio.setLabelText(tr("Result view: Minimum event cost:")); - minimumInclusiveCostRatio.setToolTip(tr("Limits the amount of results the profiler gives you. " + minimumInclusiveCostRatio.setSuffix(Tr::tr("%")); + minimumInclusiveCostRatio.setLabelText(Tr::tr("Result view: Minimum event cost:")); + minimumInclusiveCostRatio.setToolTip(Tr::tr("Limits the amount of results the profiler gives you. " "A lower limit will likely increase performance.")); registerAspect(&visualizationMinimumInclusiveCostRatio); visualizationMinimumInclusiveCostRatio.setSettingsKey(base + "Callgrind.VisualisationMinimumCostRatio"); visualizationMinimumInclusiveCostRatio.setDefaultValue(10.0); - visualizationMinimumInclusiveCostRatio.setLabelText(tr("Visualization: Minimum event cost:")); - visualizationMinimumInclusiveCostRatio.setSuffix(tr("%")); + visualizationMinimumInclusiveCostRatio.setLabelText(Tr::tr("Visualization: Minimum event cost:")); + visualizationMinimumInclusiveCostRatio.setSuffix(Tr::tr("%")); registerAspect(&visibleErrorKinds); visibleErrorKinds.setSettingsKey(base + "VisibleErrorKinds"); @@ -405,7 +405,7 @@ ValgrindGlobalSettings::ValgrindGlobalSettings() detectCycles.setSettingsKey(base + "Callgrind.CycleDetection"); detectCycles.setDefaultValue(true); detectCycles.setLabelText("O"); // FIXME: Create a real icon - detectCycles.setToolTip(tr("Enable cycle detection to properly handle recursive " + detectCycles.setToolTip(Tr::tr("Enable cycle detection to properly handle recursive " "or circular function calls.")); registerAspect(&costFormat); @@ -417,7 +417,7 @@ ValgrindGlobalSettings::ValgrindGlobalSettings() shortenTemplates.setSettingsKey(base + "Callgrind.ShortenTemplates"); shortenTemplates.setDefaultValue(true); shortenTemplates.setLabelText("<>"); // FIXME: Create a real icon - shortenTemplates.setToolTip(tr("Remove template parameter lists when displaying function names.")); + shortenTemplates.setToolTip(Tr::tr("Remove template parameter lists when displaying function names.")); setConfigWidgetCreator([this] { return ValgrindOptionsPage::createSettingsWidget(this); }); readSettings(); @@ -493,5 +493,4 @@ ValgrindProjectSettings::ValgrindProjectSettings() }); } -} // namespace Internal -} // namespace Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/valgrindsettings.h b/src/plugins/valgrind/valgrindsettings.h index 7d4f01f79ea..0ebed44255e 100644 --- a/src/plugins/valgrind/valgrindsettings.h +++ b/src/plugins/valgrind/valgrindsettings.h @@ -26,13 +26,10 @@ #pragma once -#include "callgrindcostdelegate.h" - #include #include -namespace Valgrind { -namespace Internal { +namespace Valgrind::Internal { const char ANALYZER_VALGRIND_SETTINGS[] = "Analyzer.Valgrind.Settings"; @@ -40,7 +37,7 @@ class SuppressionAspectPrivate; class SuppressionAspect final : public Utils::BaseAspect { - Q_DECLARE_TR_FUNCTIONS(Valgrind::Internal::SuppressionAspect) + Q_OBJECT public: explicit SuppressionAspect(bool global); @@ -176,5 +173,4 @@ public: ValgrindProjectSettings(); }; -} // namespace Internal -} // namespace Valgrind +} // Valgrind::Internal diff --git a/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp b/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp index 7431b0692cd..e1944ee62af 100644 --- a/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp +++ b/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp @@ -29,6 +29,7 @@ #include "frame.h" #include "stack.h" #include "modelhelpers.h" +#include "../valgrindtr.h" #include #include @@ -87,7 +88,7 @@ private: ErrorListModel::ErrorListModel(QObject *parent) : Utils::TreeModel<>(parent) { - setHeader(QStringList() << tr("Issue") << tr("Location")); + setHeader({Tr::tr("Issue"), Tr::tr("Location")}); } Frame ErrorListModel::findRelevantFrame(const Error &error) const @@ -126,7 +127,7 @@ static QString makeFrameName(const Frame &frame, bool withLocation) if (!fn.isEmpty()) { const QString location = withLocation || path == frame.object() ? QString::fromLatin1(" in %2").arg(path) : QString(); - return QCoreApplication::translate("Valgrind::Internal", "%1%2").arg(fn, location); + return QCoreApplication::translate("Valgrind", "%1%2").arg(fn, location); } if (!path.isEmpty()) return path; @@ -135,8 +136,8 @@ static QString makeFrameName(const Frame &frame, bool withLocation) QString ErrorListModel::errorLocation(const Error &error) const { - return QCoreApplication::translate("Valgrind::Internal", "in %1"). - arg(makeFrameName(findRelevantFrame(error), true)); + return QCoreApplication::translate("Valgrind", "in %1") + .arg(makeFrameName(findRelevantFrame(error), true)); } void ErrorListModel::addError(const Error &error) @@ -221,7 +222,7 @@ QVariant ErrorItem::data(int column, int role) const || m_error.stacks().constFirst().frames().constFirst().functionName().isEmpty()) { return m_error.what(); } - return ErrorListModel::tr("%1 in function %2") + return Tr::tr("%1 in function %2") .arg(m_error.what(), m_error.stacks().constFirst().frames().constFirst().functionName()); case Qt::ToolTipRole: return toolTipForFrame(m_model->findRelevantFrame(m_error)); diff --git a/src/plugins/valgrind/xmlprotocol/errorlistmodel.h b/src/plugins/valgrind/xmlprotocol/errorlistmodel.h index 9d4915147b9..34fc3868701 100644 --- a/src/plugins/valgrind/xmlprotocol/errorlistmodel.h +++ b/src/plugins/valgrind/xmlprotocol/errorlistmodel.h @@ -39,8 +39,6 @@ class Frame; class ErrorListModel : public Utils::TreeModel<> { - Q_OBJECT - public: enum Role { ErrorRole = Debugger::DetailedErrorView::FullTextRole + 1, diff --git a/src/plugins/valgrind/xmlprotocol/modelhelpers.cpp b/src/plugins/valgrind/xmlprotocol/modelhelpers.cpp index d2722311871..443e4ffbe15 100644 --- a/src/plugins/valgrind/xmlprotocol/modelhelpers.cpp +++ b/src/plugins/valgrind/xmlprotocol/modelhelpers.cpp @@ -26,11 +26,11 @@ #include "modelhelpers.h" #include "frame.h" +#include "../valgrindtr.h" #include #include #include -#include namespace Valgrind { namespace XmlProtocol { @@ -48,17 +48,14 @@ QString toolTipForFrame(const Frame &frame) QList lines; if (!frame.functionName().isEmpty()) - lines << qMakePair(QCoreApplication::translate("Valgrind::XmlProtocol", "Function:"), - frame.functionName()); + lines << qMakePair(Tr::tr("Function:"), frame.functionName()); if (!location.isEmpty()) - lines << qMakePair(QCoreApplication::translate("Valgrind::XmlProtocol", "Location:"), - location); + lines << qMakePair(Tr::tr("Location:"), location); if (frame.instructionPointer()) - lines << qMakePair(QCoreApplication::translate("Valgrind::XmlProtocol", - "Instruction pointer:"), - QString::fromLatin1("0x%1").arg(frame.instructionPointer(), 0, 16)); + lines << qMakePair(Tr::tr("Instruction pointer:"), + QString("0x%1").arg(frame.instructionPointer(), 0, 16)); if (!frame.object().isEmpty()) - lines << qMakePair(QCoreApplication::translate("Valgrind::XmlProtocol", "Object:"), frame.object()); + lines << qMakePair(Tr::tr("Object:"), frame.object()); QString html = "" "\n" diff --git a/src/plugins/valgrind/xmlprotocol/parser.cpp b/src/plugins/valgrind/xmlprotocol/parser.cpp index cc552859925..4afb1cbf0e5 100644 --- a/src/plugins/valgrind/xmlprotocol/parser.cpp +++ b/src/plugins/valgrind/xmlprotocol/parser.cpp @@ -31,10 +31,11 @@ #include "stack.h" #include "status.h" #include "suppression.h" +#include "../valgrindtr.h" + #include #include -#include #include #include #include @@ -173,8 +174,7 @@ static quint64 parseHex(const QString &str, const QString &context) bool ok; const quint64 v = str.toULongLong(&ok, 16); if (!ok) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Could not parse hex number from \"%1\" (%2)").arg(str, context)); + throw ParserException(Tr::tr("Could not parse hex number from \"%1\" (%2)").arg(str, context)); return v; } @@ -183,8 +183,7 @@ static qint64 parseInt64(const QString &str, const QString &context) bool ok; const quint64 v = str.toLongLong(&ok); if (!ok) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Could not parse hex number from \"%1\" (%2)").arg(str, context)); + throw ParserException(Tr::tr("Could not parse hex number from \"%1\" (%2)").arg(str, context)); return v; } @@ -242,8 +241,7 @@ QString Parser::Private::blockingReadElementText() //affects at least Qt <= 4.7.1. Reported as QTBUG-14661. if (!reader.isStartElement()) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "trying to read element text although current position is not start of element")); + throw ParserException(Tr::tr("trying to read element text although current position is not start of element")); QString result; @@ -260,12 +258,10 @@ QString Parser::Private::blockingReadElementText() case QXmlStreamReader::Comment: break; case QXmlStreamReader::StartElement: - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unexpected child element while reading element text")); + throw ParserException(Tr::tr("Unexpected child element while reading element text")); default: //TODO handle - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unexpected token type %1").arg(type)); + throw ParserException(Tr::tr("Unexpected token type %1").arg(type)); break; } } @@ -277,11 +273,9 @@ void Parser::Private::checkProtocolVersion(const QString &versionStr) bool ok; const int version = versionStr.toInt(&ok); if (!ok) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Could not parse protocol version from \"%1\"").arg(versionStr)); + throw ParserException(Tr::tr("Could not parse protocol version from \"%1\"").arg(versionStr)); if (version != 4) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "XmlProtocol version %1 not supported (supported version: 4)").arg(version)); + throw ParserException(Tr::tr("XmlProtocol version %1 not supported (supported version: 4)").arg(version)); } void Parser::Private::checkTool(const QString &reportedStr) @@ -289,8 +283,7 @@ void Parser::Private::checkTool(const QString &reportedStr) const QHash::ConstIterator reported = toolsByName.constFind(reportedStr); if (reported == toolsByName.constEnd()) - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Valgrind tool \"%1\" not supported").arg(reportedStr)); + throw ParserException(Tr::tr("Valgrind tool \"%1\" not supported").arg(reportedStr)); tool = reported.value(); } @@ -349,8 +342,7 @@ MemcheckErrorKind Parser::Private::parseMemcheckErrorKind(const QString &kind) if (it != errorKindsByName_memcheck.constEnd()) return *it; else - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unknown memcheck error kind \"%1\"").arg(kind)); + throw ParserException(Tr::tr("Unknown memcheck error kind \"%1\"").arg(kind)); } HelgrindErrorKind Parser::Private::parseHelgrindErrorKind(const QString &kind) @@ -359,8 +351,7 @@ HelgrindErrorKind Parser::Private::parseHelgrindErrorKind(const QString &kind) if (it != errorKindsByName_helgrind.constEnd()) return *it; else - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unknown helgrind error kind \"%1\"").arg(kind)); + throw ParserException(Tr::tr("Unknown helgrind error kind \"%1\"").arg(kind)); } PtrcheckErrorKind Parser::Private::parsePtrcheckErrorKind(const QString &kind) @@ -369,8 +360,7 @@ PtrcheckErrorKind Parser::Private::parsePtrcheckErrorKind(const QString &kind) if (it != errorKindsByName_ptrcheck.constEnd()) return *it; else - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unknown ptrcheck error kind \"%1\"").arg(kind)); + throw ParserException(Tr::tr("Unknown ptrcheck error kind \"%1\"").arg(kind)); } int Parser::Private::parseErrorKind(const QString &kind) @@ -386,8 +376,7 @@ int Parser::Private::parseErrorKind(const QString &kind) default: break; } - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Could not parse error kind, tool not yet set.")); + throw ParserException(Tr::tr("Could not parse error kind, tool not yet set.")); } static Status::State parseState(const QString &state) @@ -396,8 +385,7 @@ static Status::State parseState(const QString &state) return Status::Running; if (state == "FINISHED") return Status::Finished; - throw ParserException(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unknown state \"%1\"").arg(state)); + throw ParserException(Tr::tr("Unknown state \"%1\"").arg(state)); } void Parser::Private::reportInternalError(const QString &e) @@ -723,8 +711,7 @@ void Parser::Private::parse(QIODevice *device) } catch (const ParserException &e) { reportInternalError(e.message()); } catch (...) { - reportInternalError(QCoreApplication::translate("Valgrind::XmlProtocol::Parser", - "Unexpected exception caught during parsing.")); + reportInternalError(Tr::tr("Unexpected exception caught during parsing.")); } emit q->finished(); } diff --git a/src/plugins/valgrind/xmlprotocol/stackmodel.cpp b/src/plugins/valgrind/xmlprotocol/stackmodel.cpp index 00eb0a7a092..4674a2b56e1 100644 --- a/src/plugins/valgrind/xmlprotocol/stackmodel.cpp +++ b/src/plugins/valgrind/xmlprotocol/stackmodel.cpp @@ -29,6 +29,7 @@ #include "frame.h" #include "stack.h" #include "modelhelpers.h" +#include "../valgrindtr.h" #include @@ -155,19 +156,19 @@ QVariant StackModel::headerData(int section, Qt::Orientation orientation, int ro switch (section) { case NameColumn: - return tr("Description"); + return Tr::tr("Description"); case InstructionPointerColumn: - return tr("Instruction Pointer"); + return Tr::tr("Instruction Pointer"); case ObjectColumn: - return tr("Object"); + return Tr::tr("Object"); case FunctionNameColumn: - return tr("Function"); + return Tr::tr("Function"); case DirectoryColumn: - return tr("Directory"); + return Tr::tr("Directory"); case FileColumn: - return tr("File"); + return Tr::tr("File"); case LineColumn: - return tr("Line"); + return Tr::tr("Line"); } return QVariant(); diff --git a/src/plugins/valgrind/xmlprotocol/threadedparser.cpp b/src/plugins/valgrind/xmlprotocol/threadedparser.cpp index 52454855065..2712e06b84f 100644 --- a/src/plugins/valgrind/xmlprotocol/threadedparser.cpp +++ b/src/plugins/valgrind/xmlprotocol/threadedparser.cpp @@ -27,9 +27,8 @@ #include "threadedparser.h" #include "parser.h" #include "error.h" -#include "frame.h" #include "status.h" -#include "suppression.h" + #include #include