From 62e9a0bec1a9811833c1194f287f30eaa7afec14 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 8 May 2023 17:18:44 +0200 Subject: CMakePM: Stretch the CMake parameters column on resize Makes sure that the CMake parameters columns are properly stretched when Qt Creator window is being resized or maximized / restored from maximized state. Fixes: QTCREATORBUG-27257 Change-Id: Ifb4d439fb758dcc5b2593be917ba35e9c79f2840 Reviewed-by: Alessandro Portale --- src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp index 494d7ee67d..1ae95c1807 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include @@ -68,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -250,7 +250,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildSystem *bs) : m_configView->setUniformRowHeights(true); m_configView->setSortingEnabled(true); m_configView->sortByColumn(0, Qt::AscendingOrder); - (void) new HeaderViewStretcher(m_configView->header(), 0); + m_configView->header()->setSectionResizeMode(QHeaderView::Stretch); m_configView->setSelectionMode(QAbstractItemView::ExtendedSelection); m_configView->setSelectionBehavior(QAbstractItemView::SelectItems); m_configView->setAlternatingRowColors(true); -- cgit v1.2.1 From 8cd00ad279e5cb9e0c392b27c52631f9935e8e95 Mon Sep 17 00:00:00 2001 From: Patrik Teivonen Date: Tue, 2 May 2023 10:07:01 +0300 Subject: Coin: Switch to the new packaging tools scripts location Script location is changed from qtsdk.git to tqtc-qtsdk.git. Adjust the coin instructions to use the new location. This change should be picked to all the branches in use. Task-number: QTQAINFRA-5506 Change-Id: I78abb36781cfaaff72870c297ba152066ac5f385 Reviewed-by: Eike Ziller Reviewed-by: Qt CI Bot --- coin/instructions/build.yaml | 6 +++--- coin/instructions/provision.yaml | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/coin/instructions/build.yaml b/coin/instructions/build.yaml index 23461dbcf4..401db50562 100644 --- a/coin/instructions/build.yaml +++ b/coin/instructions/build.yaml @@ -31,7 +31,7 @@ instructions: maxTimeBetweenOutput: 3600 userMessageOnFailure: "Failed to run build.py, check logs." - type: ChangeDirectory - directory: "{{.AgentWorkingDir}}/build/qtsdk/packaging-tools" + directory: "{{.AgentWorkingDir}}/build/tqtc-qtsdk/packaging_tools" - type: ExecuteCommand command: "python3 -m pipenv run python -u bld_sdktool.py --qt-url {{.Env.QTC_SDKTOOL_QT_BASE_URL}}{{.Env.QTC_SDKTOOL_QT_EXT}} --qt-build {{.AgentWorkingDir}}/build/sdktool/qt --src {{.AgentWorkingDir}}/qt-creator/qt-creator/src/tools/sdktool --build {{.AgentWorkingDir}}/build/sdktool/build --install {{.AgentWorkingDir}}/build/sdktool/install --make-command make" maxTimeInSeconds: 36000 @@ -65,7 +65,7 @@ instructions: maxTimeBetweenOutput: 3600 userMessageOnFailure: "Failed to run build.py, check logs." - type: ChangeDirectory - directory: "{{.AgentWorkingDir}}/build/qtsdk/packaging-tools" + directory: "{{.AgentWorkingDir}}/build/tqtc-qtsdk/packaging_tools" - type: ExecuteCommand command: "python3 -m pipenv run python -u bld_sdktool.py --qt-url {{.Env.QTC_SDKTOOL_QT_BASE_URL}}{{.Env.QTC_SDKTOOL_QT_EXT}} --qt-build {{.AgentWorkingDir}}/build/sdktool/qt --src {{.AgentWorkingDir}}/qt-creator/qt-creator/src/tools/sdktool --build {{.AgentWorkingDir}}/build/sdktool/build --install {{.AgentWorkingDir}}/build/sdktool/install --make-command make" maxTimeInSeconds: 36000 @@ -114,7 +114,7 @@ instructions: maxTimeBetweenOutput: 3600 userMessageOnFailure: "Failed to run build.py, check logs." - type: ChangeDirectory - directory: "{{.AgentWorkingDir}}\\build\\qtsdk\\packaging-tools" + directory: "{{.AgentWorkingDir}}\\build\\tqtc-qtsdk\\packaging_tools" - type: ExecuteCommand command: "python -m pipenv run python -u bld_sdktool.py --qt-url {{.Env.QTC_SDKTOOL_QT_BASE_URL}}{{.Env.QTC_SDKTOOL_QT_EXT}} --qt-build {{.AgentWorkingDir}}\\build\\sdktool\\qt --src {{.AgentWorkingDir}}\\qt-creator\\qt-creator\\src\\tools\\sdktool --build {{.AgentWorkingDir}}\\build\\sdktool\\build --install {{.AgentWorkingDir}}\\build\\sdktool\\install --make-command nmake" maxTimeInSeconds: 36000 diff --git a/coin/instructions/provision.yaml b/coin/instructions/provision.yaml index c11325d137..75fab04136 100644 --- a/coin/instructions/provision.yaml +++ b/coin/instructions/provision.yaml @@ -16,13 +16,6 @@ instructions: directory: "{{.BuildDir}}" - type: ChangeDirectory directory: "{{.BuildDir}}" - - type: InstallSourceArchive - maxTimeInSeconds: 600 - maxTimeBetweenOutput: 600 - project: qtsdk/qtsdk - ref: master - directory: "build/qtsdk" - userMessageOnFailure: "Failed to install qtsdk, check logs" - type: InstallSourceArchive maxTimeInSeconds: 600 maxTimeBetweenOutput: 600 @@ -57,7 +50,7 @@ instructions: property: host.os not_equals_value: Windows - type: ChangeDirectory - directory: "{{.BuildDir}}/qtsdk/packaging-tools" + directory: "{{.BuildDir}}/tqtc-qtsdk/packaging_tools" - type: ExecuteCommand command: "python3 -m pipenv run python -u install_qt.py --qt-path {{.BuildDir}}/qt_install_dir --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix={{.Env.QTC_QT_POSTFIX}} --icu7z http://master.qt.io/development_releases/prebuilt/icu/prebuilt/56.1/icu-linux-g++-Rhel7.2-x64.7z {{.Env.QTC_QT_MODULES}}" executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution -- cgit v1.2.1 From 7327a3bbc27566a4431c9b2d54df6f9158b6c593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Wed, 10 May 2023 21:42:59 +0200 Subject: Registryaccess: Fix defined but not used warning In file included from .../src/plugins/debugger/registerpostmortemaction.cpp:6: .../src/shared/registryaccess/registryaccess.h:26:21: warning: 'RegistryAccess::autoRegistryValueNameC' defined but not used [-Wunused-variable] 26 | static const WCHAR *autoRegistryValueNameC = L"Auto"; I don't think using static in a header is a nice thing, inline would work, but we have constexpr which implies inline. Change-Id: I7b872e65a554a9a9feb39845717c5dba7ba6777c Reviewed-by: hjk Reviewed-by: Qt CI Bot --- src/shared/registryaccess/registryaccess.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/shared/registryaccess/registryaccess.h b/src/shared/registryaccess/registryaccess.h index 21862ae4a1..b4e0c08958 100644 --- a/src/shared/registryaccess/registryaccess.h +++ b/src/shared/registryaccess/registryaccess.h @@ -20,10 +20,11 @@ enum AccessMode { Registry64Mode = 0x4 // Corresponds to QSettings::Registry64Format (5.7) }; -static const char *debuggerApplicationFileC = "qtcdebugger"; -static const WCHAR *debuggerRegistryKeyC = L"Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug"; -static const WCHAR *debuggerRegistryValueNameC = L"Debugger"; -static const WCHAR *autoRegistryValueNameC = L"Auto"; +constexpr const char debuggerApplicationFileC[] = "qtcdebugger"; +constexpr const WCHAR debuggerRegistryKeyC[] + = L"Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug"; +constexpr const WCHAR debuggerRegistryValueNameC[] = L"Debugger"; +constexpr const WCHAR autoRegistryValueNameC[] = L"Auto"; static inline QString wCharToQString(const WCHAR *w) { -- cgit v1.2.1 From c6a69023c9bfd39c023e63e8394f433105479456 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 20 Apr 2023 15:09:00 +0200 Subject: German translation: VcsBase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7b9dc7a2e6868481ab900b56acce2a084b203bd9 Reviewed-by: Robert Löhning --- share/qtcreator/translations/qtcreator_de.ts | 72 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index a49b915b5a..5b78592b19 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -29091,7 +29091,7 @@ Nicht markiert - Die Änderung ist kein Entwurf. Filter log entries by text in the commit message. - Log-Einträge nach Nachrichtentext filtern. + Log-Einträge nach Beschreibung filtern. Filter by content @@ -53075,7 +53075,7 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch Clean Repository - Repository bereinigen + Repository bereinigen Delete... @@ -53190,25 +53190,25 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch Warning: The commit subject is very short. - + Warnung: Der Titel des Commits ist sehr kurz. Warning: The commit subject is too long. - + Warnung: Der Titel des Commits ist zu lang. Hint: Aim for a shorter commit subject. - + Hinweis: Versuchen Sie, einen kürzeren Titel zu vergeben. Hint: The second line of a commit message should be empty. - + Hinweis: Die zweite Zeile der Beschreibung sollte leer sein. <p>Writing good commit messages</p><ul><li>Avoid very short commit messages.</li><li>Consider the first line as subject (like in email) and keep it shorter than %n characters.</li><li>After an empty second line, a longer description can be added.</li><li>Describe why the change was done, not how it was done.</li></ul> - - - + + <p>Gute Beschreibungen für Commits schreiben</p><ul><li>Vermeiden Sie sehr kurze Beschreibungen.</li><li>Betrachten Sie die erste Zeile als Betreff (wie in einer E-Mail) und halten Sie sie kürzer als ein Zeichen.</li><li>Eine längere Beschreibung kann nach einer leeren zweiten Zeile folgen.</li><li>Beschreiben Sie, weshalb die Änderung vorgenommen wurde, nicht wie sie vorgenommen wurde.</li></ul> + <p>Gute Beschreibungen für Commits schreiben</p><ul><li>Vermeiden Sie sehr kurze Beschreibungen.</li><li>Betrachten Sie die erste Zeile als Betreff (wie in einer E-Mail) und halten Sie sie kürzer als %n Zeichen.</li><li>Eine längere Beschreibung kann nach einer leeren zweiten Zeile folgen.</li><li>Beschreiben Sie, weshalb die Änderung vorgenommen wurde, nicht wie sie vorgenommen wurde.</li></ul> @@ -53263,11 +53263,11 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch Running: %1 - Führe aus: %1 + Führe aus: %1 Running in %1: %2 - Führe in %1 aus: %2 {1:?} + Führe in %1 aus: %2 Failed to retrieve data. @@ -53307,7 +53307,7 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch Command started... - Kommando gestartet... + Kommando gestartet... Checkout @@ -53315,15 +53315,15 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch No job running, please abort. - Kein laufender Job, bitte brechen Sie ab. + Kein laufender Job, bitte brechen Sie ab. Succeeded. - Erfolgreich beendet. + Erfolgreich beendet. Failed. - Fehlgeschlagen. + Fehlgeschlagen. "%1" (%2) not found. @@ -53404,91 +53404,91 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch User/&alias configuration file: - Nutzer/&Alias-Konfigurationsdatei: + Nutzer/&Alias-Konfigurationsdatei: A file listing nicknames in a 4-column mailmap format: 'name <email> alias <email>'. - Eine Datei, die Nutzernamen in einem vierspaltigen Format (mailmap) enthält: + Eine Datei, die Nutzernamen in einem vierspaltigen Format (mailmap) enthält: 'Name <E-Mail> Alias <E-Mail>'. User &fields configuration file: - Nutzer&feld-Konfigurationsdatei: + Nutzer&feld-Konfigurationsdatei: A simple file containing lines with field names like "Reviewed-By:" which will be added below the submit editor. - Eine Datei, die Zeilen mit Feldnamen (zum Beispiel "Reviewed-By:") enthält, die im Abgabefenster unter der Beschreibung erscheinen. + Eine Datei, die Zeilen mit Feldnamen (zum Beispiel "Reviewed-By:") enthält, die im Abgabefenster unter der Beschreibung erscheinen. Submit message &check script: - Skript zur &Überprüfung der Beschreibung: + Skript zur &Überprüfung der Beschreibung: An executable which is called with the submit message in a temporary file as first argument. It should return with an exit != 0 and a message on standard error to indicate failure. - Eine ausführbare Datei, die mit der Beschreibung in einer temporären Datei als erstem Kommandozeilenparameter aufgerufen wird. Bei Fehlschlag sollte sie einen Rückgabewert ungleich Null mit einer entsprechende Nachricht auf der Fehlerausgabe zurückgeben. + Eine ausführbare Datei, die mit der Beschreibung in einer temporären Datei als erstem Kommandozeilenparameter aufgerufen wird. Bei Fehlschlag sollte sie einen Rückgabewert ungleich Null mit einer entsprechenden Nachricht auf der Fehlerausgabe zurückgeben. &SSH prompt command: - Graphische &SSH-Passwortabfrage: + Graphische &SSH-Passwortabfrage: Specifies a command that is executed to graphically prompt for a password, should a repository require SSH-authentication (see documentation on SSH and the environment variable SSH_ASKPASS). - Kommando zur graphischen Passwortabfrage bei SSH-Authorisierung eines Repositorys + Kommando zur graphischen Passwortabfrage bei SSH-Authorisierung eines Repositorys (siehe SSH-Dokumentation zur Umgebungsvariable SSH-ASKPASS). Wrap submit message at: - Beschreibung umbrechen bei: + Beschreibung umbrechen bei: characters - Zeichen + Zeichen Reset VCS Cache - VCS-Cache zurücksetzen + VCS-Cache zurücksetzen Reset information about which version control system handles which directory. - Die Zuordnung, welches Versionsverwaltungssystem welches Verzeichnis behandelt, zurücksetzen. + Die Zuordnung zurücksetzen, welches Versionsverwaltungssystem welches Verzeichnis behandelt. Log count: - Log-Anzeige beschränken auf: + Log-Anzeige beschränken auf: Timeout: - Zeitlimit: + Zeitlimit: s - s + s &Open "%1" - + "%1" ö&ffnen &Copy to clipboard: "%1" - + In die Zwischenablage &kopieren: "%1" Fossil File Log Editor - + Fossil Datei-Log-Editor Fossil Annotation Editor - + Fossil Annotations-Editor Fossil Diff Editor - + Fossil Diff-Editor Fossil Commit Log Editor - + Fossil Commit-Log-Editor -- cgit v1.2.1 From 948dc6b37edaea86c067fe2c4750977d7272314e Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Thu, 11 May 2023 14:52:51 +0200 Subject: ClangFormat: Fix clangformat ignores configuration file Fixes: QTCREATORBUG-29145 Change-Id: I6950151aaab9df51cfdd0af0ad9cf3c7b35c0636 Reviewed-by: Christian Kandeler --- src/plugins/clangformat/clangformatglobalconfigwidget.cpp | 9 +++++++-- src/plugins/clangformat/clangformatglobalconfigwidget.h | 1 + src/plugins/clangformat/clangformatutils.cpp | 7 +------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/plugins/clangformat/clangformatglobalconfigwidget.cpp b/src/plugins/clangformat/clangformatglobalconfigwidget.cpp index 1f810c968c..5579e594e1 100644 --- a/src/plugins/clangformat/clangformatglobalconfigwidget.cpp +++ b/src/plugins/clangformat/clangformatglobalconfigwidget.cpp @@ -41,6 +41,7 @@ ClangFormatGlobalConfigWidget::ClangFormatGlobalConfigWidget( m_overrideDefault = new QCheckBox(Tr::tr("Override Clang Format configuration file")); m_useGlobalSettings = new QCheckBox(Tr::tr("Use global settings")); m_useGlobalSettings->hide(); + m_overrideDefaultFile = ClangFormatSettings::instance().overrideDefaultFile(); using namespace Layouting; @@ -180,10 +181,12 @@ void ClangFormatGlobalConfigWidget::initOverrideCheckBox() setTemporarilyReadOnly(); connect(m_overrideDefault, &QCheckBox::toggled, this, [this, setTemporarilyReadOnly](bool checked) { - if (m_project) + if (m_project) { m_project->setNamedSettings(Constants::OVERRIDE_FILE_ID, checked); - else + } else { + ClangFormatSettings::instance().setOverrideDefaultFile(checked); setTemporarilyReadOnly(); + } }); connect(m_codeStyle, @@ -202,12 +205,14 @@ void ClangFormatGlobalConfigWidget::apply() settings.setMode( static_cast(m_indentingOrFormatting->currentIndex())); settings.setOverrideDefaultFile(m_overrideDefault->isChecked()); + m_overrideDefaultFile = m_overrideDefault->isChecked(); } settings.write(); } void ClangFormatGlobalConfigWidget::finish() { + ClangFormatSettings::instance().setOverrideDefaultFile(m_overrideDefaultFile); m_codeStyle->currentPreferences()->setTemporarilyReadOnly( !ClangFormatSettings::instance().overrideDefaultFile()); } diff --git a/src/plugins/clangformat/clangformatglobalconfigwidget.h b/src/plugins/clangformat/clangformatglobalconfigwidget.h index 962a7daaf1..7b2d6fe7c9 100644 --- a/src/plugins/clangformat/clangformatglobalconfigwidget.h +++ b/src/plugins/clangformat/clangformatglobalconfigwidget.h @@ -43,6 +43,7 @@ private: ProjectExplorer::Project *m_project; TextEditor::ICodeStylePreferences *m_codeStyle; Utils::Guard m_ignoreChanges; + bool m_overrideDefaultFile; QLabel *m_projectHasClangFormat; QLabel *m_formattingModeLabel; diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp index a9f1a0d29b..95632db7a0 100644 --- a/src/plugins/clangformat/clangformatutils.cpp +++ b/src/plugins/clangformat/clangformatutils.cpp @@ -214,12 +214,7 @@ bool getCurrentOverriddenSettings(const Utils::FilePath &filePath) filePath); return getProjectUseGlobalSettings(project) - ? !TextEditor::TextEditorSettings::codeStyle("Cpp") - ->currentPreferences() - ->isTemporarilyReadOnly() - && !TextEditor::TextEditorSettings::codeStyle("Cpp") - ->currentPreferences() - ->isAdditionalTabDisabled() + ? ClangFormatSettings::instance().overrideDefaultFile() : getProjectOverriddenSettings(project); } -- cgit v1.2.1 From a820b5490c4eb09b4b957e96d56b13ebf479f0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Wed, 10 May 2023 17:28:35 +0200 Subject: SquishTests: Fix using invalid paste IDs Change-Id: Ibc48506ff1632cbfe8d662cd00ed057af7d16a6a Reviewed-by: Christian Stenger --- tests/system/suite_tools/tst_codepasting/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py index 3d4507095f..148052a804 100644 --- a/tests/system/suite_tools/tst_codepasting/test.py +++ b/tests/system/suite_tools/tst_codepasting/test.py @@ -107,7 +107,7 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting): pasteModel = waitForObject(":PasteSelectDialog.listWidget_QListWidget").model() except: closeHTTPStatusAndPasterDialog(protocol, ':PasteSelectDialog_CodePaster::PasteSelectDialog') - return -1 + return invalidPasteId(protocol) condition = "pasteModel.rowCount() > 1" if protocol == NAME_DPCOM: # no list support @@ -125,7 +125,7 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting): "window=':PasteSelectDialog_CodePaster::PasteSelectDialog'}") waitFor("pasteModel.rowCount() == 1", 1000) waitFor("pasteModel.rowCount() > 1", 20000) - if pasteId == -1: + if pasteId == invalidPasteId(protocol): try: pasteLine = filter(lambda str:description in str, dumpItems(pasteModel))[0] pasteId = pasteLine.split(" ", 1)[0] @@ -207,7 +207,7 @@ def main(): test.fatal(message) continue pasteId = fetchSnippet(protocol, description, pasteId, skippedPasting) - if pasteId == -1: + if pasteId == invalidPasteId(protocol): continue filenameCombo = waitForObject(":Qt Creator_FilenameQComboBox") waitFor("not filenameCombo.currentText.isEmpty()", 20000) -- cgit v1.2.1 From 0b241f42f186e13b70550c070d3d271c1eb9e989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Mon, 8 May 2023 18:12:33 +0200 Subject: SquishTests: Make suite_tools Python3 compatible Except for tst_designer_edit which needs a bigger update. Change-Id: I8300a9491ec34b4d8deeed39f02fc59281cc20c9 Reviewed-by: Reviewed-by: Christian Stenger --- tests/system/suite_tools/tst_codepasting/test.py | 14 ++++++++------ tests/system/suite_tools/tst_git_local/test.py | 5 +++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py index 148052a804..ec0d9ee226 100644 --- a/tests/system/suite_tools/tst_codepasting/test.py +++ b/tests/system/suite_tools/tst_codepasting/test.py @@ -72,7 +72,7 @@ def pasteFile(sourceFile, protocol): try: outputWindow = waitForObject(":Qt Creator_Core::OutputWindow") waitFor("re.search('^https://', str(outputWindow.plainText)) is not None", 20000) - output = filter(lambda x: len(x), str(outputWindow.plainText).splitlines())[-1] + output = list(filter(lambda x: len(x), str(outputWindow.plainText).splitlines()))[-1] except: output = "" if closeHTTPStatusAndPasterDialog(protocol, ':Send to Codepaster_CodePaster::PasteView'): @@ -126,10 +126,11 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting): waitFor("pasteModel.rowCount() == 1", 1000) waitFor("pasteModel.rowCount() > 1", 20000) if pasteId == invalidPasteId(protocol): - try: - pasteLine = filter(lambda str:description in str, dumpItems(pasteModel))[0] - pasteId = pasteLine.split(" ", 1)[0] - except: + for currentItem in dumpItems(pasteModel): + if description in currentItem: + pasteId = currentItem.split(" ", 1)[0] + break + if pasteId == invalidPasteId(protocol): test.fail("Could not find description line in list of pastes from %s" % protocol) clickButton(waitForObject(":PasteSelectDialog.Cancel_QPushButton")) return pasteId @@ -242,7 +243,8 @@ def main(): # QString QTextCursor::selectedText () const: # "Note: If the selection obtained from an editor spans a line break, the text will contain a # Unicode U+2029 paragraph separator character instead of a newline \n character." - selectedText = str(editor.textCursor().selectedText()).replace(unichr(0x2029), "\n") + newParagraph = chr(0x2029) if sys.version_info.major > 2 else unichr(0x2029) + selectedText = str(editor.textCursor().selectedText()).replace(newParagraph, "\n") invokeMenuItem("Tools", "Code Pasting", "Paste Snippet...") test.compare(waitForObject(":stackedWidget.plainTextEdit_QPlainTextEdit").plainText, selectedText, "Verify that dialog shows selected text from the editor") diff --git a/tests/system/suite_tools/tst_git_local/test.py b/tests/system/suite_tools/tst_git_local/test.py index 07208367fd..ab36b86b25 100644 --- a/tests/system/suite_tools/tst_git_local/test.py +++ b/tests/system/suite_tools/tst_git_local/test.py @@ -65,7 +65,8 @@ def __clickCommit__(count): # find commit try: # Commits are listed in reverse chronologic order, so we have to invert count - line = filter(lambda line: line.startswith("commit"), content.splitlines())[-count].strip() + line = list(filter(lambda line: line.startswith("commit"), + content.splitlines()))[-count].strip() commit = line.split(" ", 1)[1] except: test.fail("Could not find the %d. commit - leaving test" % count) @@ -90,7 +91,7 @@ def __clickCommit__(count): {"Committer: %s, %s" % (id, time): True}] for line, exp in zip(show.splitlines(), expected): expLine = list(exp.keys())[0] - isRegex = exp.values()[0] + isRegex = list(exp.values())[0] if isRegex: test.verify(re.match(expLine, line), "Verifying commit header line '%s'" % line) else: -- cgit v1.2.1 From e719a2b47a11cdb6c4c9ac8fe889cf8347380580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 5 May 2023 16:45:08 +0200 Subject: SquishTests: Update tst_create_proj_wizard Change-Id: Id17f5d1a68da7fe7c9f45dc5b62ab3fe1039f753 Reviewed-by: Christian Stenger Reviewed-by: --- tests/system/shared/project.py | 6 +++--- tests/system/suite_general/tst_create_proj_wizard/test.py | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index d05a3b37a8..2e541ddf92 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -125,8 +125,8 @@ def __handleBuildSystem__(buildSystem): return buildSystem def __createProjectHandleQtQuickSelection__(minimumQtVersion): - comboBox = waitForObject("{name='MinimumSupportedQtVersion' type='QComboBox' " - "visible='1' window=':New_ProjectExplorer::JsonWizard'}") + comboBox = waitForObject("{name?='*QtVersion' type='QComboBox' visible='1'" + " window=':New_ProjectExplorer::JsonWizard'}") try: selectFromCombo(comboBox, minimumQtVersion) except: @@ -505,7 +505,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False, ignoreVali version = res.group("version") else: version = None - if "Qt Quick" in templateName: + if templateName == "Qt Quick Application": result = set([Targets.DESKTOP_6_2_4]) elif 'Supported Platforms' in text: supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split("\n") diff --git a/tests/system/suite_general/tst_create_proj_wizard/test.py b/tests/system/suite_general/tst_create_proj_wizard/test.py index 5cf9365275..643e8054fa 100644 --- a/tests/system/suite_general/tst_create_proj_wizard/test.py +++ b/tests/system/suite_general/tst_create_proj_wizard/test.py @@ -53,11 +53,18 @@ def main(): template = list(current.values())[0] with TestSection("Testing project template %s -> %s" % (category, template)): displayedPlatforms = __createProject__(category, template) - if template == "Qt Quick Application": - qtVersionsForQuick = ["6.2"] + if template.startswith("Qt Quick Application"): + if "(compat)" in template: # QTCREATORBUG-29126 + qtVersionsForQuick = ["Qt 5.14", "Qt 6.2"] + else: + qtVersionsForQuick = ["6.2"] for counter, qtVersion in enumerate(qtVersionsForQuick): def additionalFunc(displayedPlatforms, qtVersion): requiredQtVersion = __createProjectHandleQtQuickSelection__(qtVersion) + if sys.version_info.major > 2: + requiredQtVersion = requiredQtVersion.removeprefix("Qt ") + else: + requiredQtVersion = requiredQtVersion.lstrip("Qt ") __modifyAvailableTargets__(displayedPlatforms, requiredQtVersion, True) handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms, additionalFunc, qtVersion) @@ -120,7 +127,7 @@ def handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms, clickButton(waitForObject(":Next_QPushButton")) if specialHandlingFunc: specialHandlingFunc(displayedPlatforms, *args) - if not ('Plain C' in template or 'Qt Quick' in template): + if not ('Plain C' in template or template == 'Qt Quick Application'): __createProjectHandleTranslationSelection__() verifyKitCheckboxes(kits, displayedPlatforms) safeClickButton("Cancel") -- cgit v1.2.1 From 8bd5c67ea8c15151e6435f6ccddd85347144864a Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 4 May 2023 11:41:51 +0200 Subject: German translation: CVS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac295e700edf365b06b01bbb3a20c2f2f190a5ab Reviewed-by: Christian Stenger Reviewed-by: Robert Löhning --- share/qtcreator/translations/qtcreator_de.ts | 160 +++++++++++++-------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 5b78592b19..65fec424e4 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -13850,315 +13850,315 @@ Stellen Sie sicher, dass der Wert der CMAKE_BUILD_TYPE-Variable derselbe wie der QtC::CVS Annotate revision "%1" - Annotation für Revision "%1" + Annotation für Revision "%1" Ignore Whitespace - Leerzeichen ignorieren + Leerzeichen ignorieren Ignore Blank Lines - Leerzeilen ignorieren + Leerzeilen ignorieren &Edit - + B&earbeiten CVS Checkout - CVS-Checkout + CVS-Checkout Triggers a CVS version control operation. - + Führt eine Aktion des CVS-Versionskontrollsystems aus. &CVS - &CVS + &CVS Diff Current File - + Diff für aktuelle Datei Diff "%1" - Diff für "%1" + Diff für "%1" Meta+C,Meta+D - Meta+C,Meta+D + Meta+C,Meta+D Alt+C,Alt+D - Alt+C,Alt+D + Alt+C,Alt+D Filelog Current File - Filelog für Datei + Filelog für aktuelle Datei Filelog "%1" - Filelog für "%1" + Filelog für "%1" Annotate Current File - Annotation für Datei + Annotation für aktuelle Datei Annotate "%1" - Annotation für "%1" + Annotation für "%1" Add - Hinzufügen + Hinzufügen Add "%1" - "%1" hinzufügen + "%1" hinzufügen Meta+C,Meta+A - Meta+C,Meta+A + Meta+C,Meta+A Alt+C,Alt+A - Alt+C,Alt+A + Alt+C,Alt+A Commit Current File - Commit der aktuellen Datei + Commit der aktuellen Datei Commit "%1" - Commit von "%1" + Commit von "%1" Meta+C,Meta+C - Meta+C,Meta+C + Meta+C,Meta+C Alt+C,Alt+C - Alt+C,Alt+C + Alt+C,Alt+C Delete... - Löschen... + Löschen... Delete "%1"... - Lösche "%1"... + Lösche "%1"... Revert... - Rückgängig machen... + Rückgängig machen... Revert "%1"... - Änderungen in "%1" rückgängig machen... + Änderungen in "%1" rückgängig machen... Edit - + Anfordern (edit) Edit "%1" - "%1" anfordern + "%1" anfordern (edit) Unedit - Anforderung zurücknehmen + Anforderung zurücknehmen (unedit) Unedit "%1" - Anforderung der Datei '%1" zurücknehmen + Anforderung der Datei '%1" zurücknehmen (unedit) Unedit Repository - Anforderung im gesamten Repository zurücknehmen + Anforderung im gesamten Repository zurücknehmen (unedit) Diff Project - Diff für Projekt + Diff für Projekt Diff Project "%1" - Diff für Projekt "%1" + Diff für Projekt "%1" Project Status - Status des Projekts (status) + Status des Projekts Status of Project "%1" - Status des Projekts "%1" + Status des Projekts "%1" Log Project - Log für Projekt + Log für Projekt Log Project "%1" - Log für Projekt "%1" + Log für Projekt "%1" Update Project - Projekt auf aktuellen Stand bringen + Projekt auf aktuellen Stand bringen Update Project "%1" - Projekt "%1"auf aktuellen Stand bringen + Projekt "%1" auf aktuellen Stand bringen Commit Project - Commit des Projekts + Commit des Projekts Commit Project "%1" - Commit des Projekts "%1" + Commit des Projekts "%1" Update Directory - Verzeichnis aktualisieren + Verzeichnis aktualisieren Update Directory "%1" - Verzeichnis "%1" aktualisieren + Verzeichnis "%1" aktualisieren Commit Directory - Commit des Verzeichnisses + Commit des Verzeichnisses Commit Directory "%1" - Commit des Verzeichnisses "%1" + Commit des Verzeichnisses "%1" Diff Repository - Diff des Repositorys + Diff des Repositorys Repository Status - Status des Repositorys + Status des Repositorys Repository Log - Log des Repositorys + Log des Repositorys Update Repository - Repository auf den aktuellen Stand bringen + Repository auf den aktuellen Stand bringen Commit All Files - Commit aller Dateien + Commit aller Dateien Revert Repository... - Änderungen im gesamten Repository rückgängig machen... + Änderungen im gesamten Repository rückgängig machen... Revert Repository - Alle Änderungen rückgängig machen + Änderungen im gesamten Repository rückgängig machen Revert all pending changes to the repository? - Möchten Sie alle ausstehenden Änderungen des Repositorys verwerfen? + Möchten Sie alle ausstehenden Änderungen des Repositorys verwerfen? Revert failed: %1 - Fehler beim Rücksetzen der Änderungen: %1 + Fehler beim Rückgängigmachen der Änderungen: %1 The file has been changed. Do you want to revert it? - + Die Datei wurde geändert. Möchten Sie die Änderungen rückgängig machen? Another commit is currently being executed. - Es läuft bereits ein Commit-Vorgang. + Es läuft bereits ein Commit-Vorgang. There are no modified files. - Es gibt keine geänderten Dateien. + Es gibt keine geänderten Dateien. Would you like to discard your changes to the repository "%1"? - Möchten Sie alle ausstehenden Änderungen des Repositorys "%1" verwerfen? + Möchten Sie alle ausstehenden Änderungen des Repositorys "%1" verwerfen? Would you like to discard your changes to the file "%1"? - Möchten Sie alle ausstehenden Änderungen in der Datei "%1" verwerfen? + Möchten Sie alle ausstehenden Änderungen in der Datei "%1" verwerfen? Project status - Status des Projekts + Status des Projekts Repository status - Status des Repositorys + Status des Repositorys Cannot find repository for "%1". - Kann das Repository für "%1" nicht finden. + Kann das Repository für "%1" nicht finden. The initial revision %1 cannot be described. - Die erste Version (%1) kann nicht weiter beschrieben werden. + Die erste Version (%1) kann nicht beschrieben werden. Parsing of the log output failed. - Die Log-Ausgabe konnte nicht ausgewertet werden. + Die Log-Ausgabe konnte nicht ausgewertet werden. Could not find commits of id "%1" on %2. - Es konnten keine Commits des Datums %2 mit der ID "%1" gefunden werden. + Es konnten keine Commits des Datums %2 mit der ID "%1" gefunden werden. No CVS executable specified. - Es wurde keine ausführbare Datei für CVS angegeben. + Es wurde keine ausführbare Datei für CVS angegeben. CVS Command - CVS-Kommando + CVS-Kommando CVS command: - CVS-Kommando: + CVS-Kommando: CVS root: - CVS-Quelle (CVSROOT): + CVS-Quelle (CVSROOT): Describe all files matching commit id - Alle zur Commit-ID gehörenden Dateien beschreiben + Alle zur Commit-ID gehörenden Dateien beschreiben When checked, all files touched by a commit will be displayed when clicking on a revision number in the annotation view (retrieved via commit ID). Otherwise, only the respective file will be displayed. - Wenn die Option aktiviert ist, werden beim Klick auf die Revisionsnummer in der Annotationsansicht alle Dateien angezeigt, die zu einem Commit gehören (mittels Commit-ID bestimmt). Ansonsten wird nur die betreffende Datei angezeigt. + Wenn die Option aktiviert ist, werden beim Klick auf die Revisionsnummer in der Annotationsansicht alle Dateien angezeigt, die zu einem Commit gehören (mittels Commit-ID bestimmt). Ansonsten wird nur die betreffende Datei angezeigt. CVS - CVS + CVS Configuration - Konfiguration + Konfiguration Miscellaneous - Sonstige Einstellungen + Sonstige Einstellungen Added - Hinzugefügt + Hinzugefügt Removed - Gelöscht + Gelöscht Modified - Geändert + Geändert @@ -34170,7 +34170,7 @@ You might find further explanations in the Application Output view. Update Project "%1" - Projekt "%1"auf aktuellen Stand bringen + Projekt "%1" auf aktuellen Stand bringen Describe... @@ -47616,7 +47616,7 @@ Failed to open file "%1" Update Project "%1" - Projekt "%1"auf aktuellen Stand bringen + Projekt "%1" auf aktuellen Stand bringen Revert Repository... -- cgit v1.2.1 From 330a30aa5b7562cf8d68f3bd870d3c9b5d15b2fc Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 16 May 2023 14:30:51 +0200 Subject: Doc: Hide text and links that only apply to Qt Creator Manual ...from the QDS manual. Change-Id: I24be3b656922b1c10643f6ef274f1fa91c8330df Reviewed-by: Mats Honkamaa --- doc/qtcreator/src/user-interface/creator-views.qdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/qtcreator/src/user-interface/creator-views.qdoc b/doc/qtcreator/src/user-interface/creator-views.qdoc index 856dfd15ee..e676ed1890 100644 --- a/doc/qtcreator/src/user-interface/creator-views.qdoc +++ b/doc/qtcreator/src/user-interface/creator-views.qdoc @@ -88,6 +88,7 @@ (\uicontrol {Synchronize with Editor}). \endlist + \if defined(qtcreator) \section1 Viewing the Class Hierarchy The \uicontrol {Class View} shows the class hierarchy of the currently @@ -144,4 +145,5 @@ To keep the view synchronized with the file currently open in the editor, select \inlineimage icons/linkicon.png (\uicontrol {Synchronize with Editor}). + \endif */ -- cgit v1.2.1