Merge remote-tracking branch 'origin/9.0' into 10.0

Conflicts:
	src/plugins/texteditor/codestyleselectorwidget.cpp
	src/plugins/updateinfo/updateinfoplugin.cpp

Change-Id: Iac33b852ccef6018bd81188716526aa70c3f5a2d
This commit is contained in:
Eike Ziller
2023-02-10 10:29:14 +01:00
6 changed files with 68 additions and 29 deletions

View File

@@ -123,7 +123,8 @@ jobs:
) )
execute_process( execute_process(
COMMAND COMMAND
sudo apt install libgl1-mesa-dev libvulkan-dev libxcb-xinput-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev sudo apt install chrpath
libgl1-mesa-dev libvulkan-dev libxcb-xinput-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev
libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxcb-randr0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxcb-randr0 libxcb-icccm4
xvfb xvfb
RESULT_VARIABLE result RESULT_VARIABLE result
@@ -458,6 +459,7 @@ jobs:
string(JSON artifacts_length LENGTH "${artifacts_json}" "artifacts") string(JSON artifacts_length LENGTH "${artifacts_json}" "artifacts")
math(EXPR artifacts_length "${artifacts_length} - 1") math(EXPR artifacts_length "${artifacts_length} - 1")
if(${artifacts_length} GREATER_EQUAL 0)
foreach(idx RANGE 0 ${artifacts_length}) foreach(idx RANGE 0 ${artifacts_length})
string(JSON artifact_js GET "${artifacts_json}" "artifacts" ${idx}) string(JSON artifact_js GET "${artifacts_json}" "artifacts" ${idx})
string(JSON name GET "${artifact_js}" "name") string(JSON name GET "${artifact_js}" "name")
@@ -483,6 +485,7 @@ jobs:
return() return()
endif() endif()
endforeach() endforeach()
endif()
endforeach() endforeach()
- name: Build - name: Build
@@ -578,6 +581,7 @@ jobs:
--add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA} --add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA}
--zip-infix=-${{ matrix.config.artifact }}-${{ github.run_id }} --zip-infix=-${{ matrix.config.artifact }}-${{ github.run_id }}
--no-qbs --no-qbs
--with-cpack
RESULT_VARIABLE result RESULT_VARIABLE result
COMMAND_ECHO STDOUT COMMAND_ECHO STDOUT
OUTPUT_VARIABLE output OUTPUT_VARIABLE output
@@ -665,6 +669,13 @@ jobs:
path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
- name: Upload Debian package
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
path: build/build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb
- name: Upload disk image - name: Upload disk image
if: runner.os == 'macOS' && contains(github.ref, 'tags/v') if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@@ -761,6 +772,13 @@ jobs:
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
path: ./ path: ./
- name: Download Debian package artifact
if: matrix.config.artifact == 'Linux'
uses: actions/download-artifact@v3
with:
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb
path: ./
- name: Download disk image artifact - name: Download disk image artifact
if: matrix.config.artifact == 'macOS' if: matrix.config.artifact == 'macOS'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@@ -820,6 +838,17 @@ jobs:
asset_name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z asset_name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
asset_content_type: application/x-gtar asset_content_type: application/x-gtar
- name: Upload Debian package to Release
if: matrix.config.artifact == 'Linux'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
asset_path: ./qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb
asset_name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.deb
asset_content_type: application/x-gtar
- name: Upload disk image to Release - name: Upload disk image to Release
if: matrix.config.artifact == 'macOS' if: matrix.config.artifact == 'macOS'
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1

View File

@@ -61,8 +61,9 @@ static std::vector<std::unique_ptr<CMakeTool>> autoDetectCMakeTools()
if (HostOsInfo::isMacHost()) { if (HostOsInfo::isMacHost()) {
path.append("/Applications/CMake.app/Contents/bin"); path.append("/Applications/CMake.app/Contents/bin");
path.append("/usr/local/bin"); path.append("/usr/local/bin"); // homebrew intel
path.append("/opt/local/bin"); path.append("/opt/homebrew/bin"); // homebrew arm
path.append("/opt/local/bin"); // macports
} }
FilePaths suspects; FilePaths suspects;

View File

@@ -95,7 +95,7 @@ void ConfigModelItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *
if (data.type == ConfigModel::DataItem::FILE || data.type == ConfigModel::DataItem::DIRECTORY) { if (data.type == ConfigModel::DataItem::FILE || data.type == ConfigModel::DataItem::DIRECTORY) {
auto edit = static_cast<PathChooser *>(editor); auto edit = static_cast<PathChooser *>(editor);
if (edit->rawFilePath().toString() != data.value) if (edit->rawFilePath().toString() != data.value)
model->setData(index, edit->filePath().toString(), Qt::EditRole); model->setData(index, edit->rawFilePath().toString(), Qt::EditRole);
return; return;
} else if (!data.values.isEmpty()) { } else if (!data.values.isEmpty()) {
auto edit = static_cast<QComboBox *>(editor); auto edit = static_cast<QComboBox *>(editor);

View File

@@ -207,8 +207,10 @@ void CodeStyleSelectorWidget::slotImportClicked()
if (importedStyle) if (importedStyle)
m_codeStyle->setCurrentDelegate(importedStyle); m_codeStyle->setCurrentDelegate(importedStyle);
else else
QMessageBox::warning(this, Tr::tr("Import Code Style"), QMessageBox::warning(this,
Tr::tr("Cannot import code style from %1"), fileName.toUserOutput()); Tr::tr("Import Code Style"),
Tr::tr("Cannot import code style from %1")
.arg(fileName.toUserOutput()));
} }
} }

View File

@@ -56,7 +56,7 @@ def waitForCompile(timeout=60000):
def dumpBuildIssues(listModel): def dumpBuildIssues(listModel):
issueDump = [] issueDump = []
for index in dumpIndices(listModel): for index in dumpIndices(listModel):
issueDump.extend([[index.data(role).toString() for role issueDump.extend([[str(index.data(role).toString()) for role
in range(Qt.UserRole, Qt.UserRole + 6)]]) in range(Qt.UserRole, Qt.UserRole + 6)]])
return issueDump return issueDump

View File

@@ -85,6 +85,13 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles):
except: except:
test.fatal("Missing dialog regarding missing permission on read only files.") test.fatal("Missing dialog regarding missing permission on read only files.")
exitCanceled = False exitCanceled = False
# workaround crashing test
# (AUT stopped responding / AUT '' did not respond to network communication)
__shutdownDone__ = lambda : not currentApplicationContext().isRunning
if test.verify(waitFor(__shutdownDone__, 1000), "Clean exit of Qt Creator."):
return
try: try:
mBoxStr = "{type='QMessageBox' unnamed='1' visible='1' text?='*Could not save the files.'}" mBoxStr = "{type='QMessageBox' unnamed='1' visible='1' text?='*Could not save the files.'}"
msgBox = waitForObject(mBoxStr, 3000) msgBox = waitForObject(mBoxStr, 3000)