forked from qt-creator/qt-creator
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:
75
.github/workflows/build_cmake.yml
vendored
75
.github/workflows/build_cmake.yml
vendored
@@ -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,31 +459,33 @@ 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")
|
||||||
foreach(idx RANGE 0 ${artifacts_length})
|
if(${artifacts_length} GREATER_EQUAL 0)
|
||||||
string(JSON artifact_js GET "${artifacts_json}" "artifacts" ${idx})
|
foreach(idx RANGE 0 ${artifacts_length})
|
||||||
string(JSON name GET "${artifact_js}" "name")
|
string(JSON artifact_js GET "${artifacts_json}" "artifacts" ${idx})
|
||||||
if ("${name}" STREQUAL "${{ steps.ccache.outputs.archive_name }}")
|
string(JSON name GET "${artifact_js}" "name")
|
||||||
string(JSON download_url GET "${artifact_js}" "archive_download_url")
|
if ("${name}" STREQUAL "${{ steps.ccache.outputs.archive_name }}")
|
||||||
|
string(JSON download_url GET "${artifact_js}" "archive_download_url")
|
||||||
|
|
||||||
foreach(retry RANGE 10)
|
foreach(retry RANGE 10)
|
||||||
file(DOWNLOAD "${download_url}"
|
file(DOWNLOAD "${download_url}"
|
||||||
"${{ steps.ccache.outputs.archive_name }}.zip"
|
"${{ steps.ccache.outputs.archive_name }}.zip"
|
||||||
NETRC_FILE "$ENV{GITHUB_WORKSPACE}/netrc.txt"
|
NETRC_FILE "$ENV{GITHUB_WORKSPACE}/netrc.txt"
|
||||||
NETRC REQUIRED
|
NETRC REQUIRED
|
||||||
SHOW_PROGRESS)
|
SHOW_PROGRESS)
|
||||||
file(SIZE "${{ steps.ccache.outputs.archive_name }}.zip" fileSize)
|
file(SIZE "${{ steps.ccache.outputs.archive_name }}.zip" fileSize)
|
||||||
if (fileSize GREATER 0)
|
if (fileSize GREATER 0)
|
||||||
break()
|
break()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf "${{ steps.ccache.outputs.archive_name }}.zip")
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf "${{ steps.ccache.outputs.archive_name }}.zip")
|
||||||
file(MAKE_DIRECTORY .ccache)
|
file(MAKE_DIRECTORY .ccache)
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "../${{ steps.ccache.outputs.archive_name }}.tar" WORKING_DIRECTORY .ccache)
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "../${{ steps.ccache.outputs.archive_name }}.tar" WORKING_DIRECTORY .ccache)
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user